Skip to content

Commit

Permalink
Bump version to 0.3.0 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bcylin committed Feb 13, 2020
1 parent e7d2a32 commit 82aeda2
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## Next release
## 0.3.0

* Update the markdown and plist files in `Pods/Target Support Files`.
* Support wildcard characters in the excluded filenames.
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
cocoapods-acknowledgements-addons (0.2.0)
cocoapods-acknowledgements-addons (0.3.0)
cocoapods (>= 0.36)
cocoapods-acknowledgements

Expand Down
23 changes: 23 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
desc "Bump versions"
task :bump, [:version] do |t, args|
version = args[:version]
unless version
puts %{Usage: rake "bump[version]"}
next
end

Dir.chdir("example") { sh "xcrun agvtool new-marketing-version #{version}" }

spec = "lib/version.rb"
text = File.read spec
File.write spec, text.gsub(%r(\"\d+\.\d+\.\d+\"), "\"#{version}\"")
puts "Updated #{spec} to #{version}"

changelog = "CHANGELOG.md"
text = File.read changelog
File.write changelog, text.gsub(%r(Next release), "#{version}")
puts "Updated #{changelog} to #{version}"

Rake::Task["install"].execute
end

desc "Launch the example app"
task :example do
Rake::Task["install"].execute
Expand Down
2 changes: 1 addition & 1 deletion example/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<string>0.3.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
2 changes: 1 addition & 1 deletion example/AppTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<string>0.3.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module CocoaPodsAcknowledgements
module AddOns
VERSION = "0.2.0"
VERSION = "0.3.0"
end
end

0 comments on commit 82aeda2

Please sign in to comment.