Rake tweaks

This commit is contained in:
David Jennes
2022-07-29 18:31:41 +02:00
parent 078c7a84e6
commit 2ddc039129
2 changed files with 4 additions and 0 deletions

View File

@@ -32,7 +32,9 @@ namespace :files do
/^version = .*/ => %Q(version = '#{version}'),
/^release = .*/ => %Q(release = '#{version}')
)
docs_package = Utils.first_match_in_file('docs/installation.rst', /\.package\(url: .+ from: "(.+)"/, 1)
replace("docs/installation.rst",
/\.package\(url: .+, from: "(.+)"/ => %Q(.package\(url: "https://github.com/stencilproject/Stencil.git", from: "#{version}"),
/pod 'Stencil', '.*'/ => %Q(pod 'Stencil', '~> #{version}'),
/github "stencilproject\/Stencil" ~> .*/ => %Q(github "stencilproject/Stencil" ~> #{version})
)

View File

@@ -13,6 +13,8 @@ namespace :release do
task :check_versions do
results = []
Utils.table_header('Check', 'Status')
# Check if bundler is installed first, as we'll need it for the cocoapods task (and we prefer to fail early)
`which bundler`
results << Utils.table_result(