Class: Ive::Bump
- Inherits:
-
Object
- Object
- Ive::Bump
- Defined in:
- lib/ive/bump.rb
Class Method Summary collapse
- .build(config) ⇒ Object
- .initialize_version(config) ⇒ Object
- .major(config) ⇒ Object
- .minor(config) ⇒ Object
- .patch(config) ⇒ Object
Class Method Details
.build(config) ⇒ Object
18 19 20 |
# File 'lib/ive/bump.rb', line 18 def build(config) bumped_build_version config end |
.initialize_version(config) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ive/bump.rb', line 22 def initialize_version config version = Versionomy.parse "1.0.0" config.info_plist do |info| info.marketing_version = version.to_s info.version = build_version_from info.marketing_version, 1 info.save end puts "-- Current version #{config.info_plist.marketing_version}" puts "-- Current build version #{config.info_plist.version}" new_version = "v#{config.info_plist.marketing_version}" new_version end |
.major(config) ⇒ Object
6 7 8 |
# File 'lib/ive/bump.rb', line 6 def major(config) bumped_version config, :major end |
.minor(config) ⇒ Object
10 11 12 |
# File 'lib/ive/bump.rb', line 10 def minor(config) bumped_version config, :minor end |
.patch(config) ⇒ Object
14 15 16 |
# File 'lib/ive/bump.rb', line 14 def patch(config) bumped_version config, :tiny end |