fastlane-plugin-xamversion 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9eecd31acb63262fce3924fee7852b705805b6f4425b4a491fffb6dbb10796d
|
4
|
+
data.tar.gz: a1864eaab41aec98cc6b2b227281160b84e47b3376391bfc6b369d201c007576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daeada3589b16909da3c441bfe7a29684aeb331e9f7e0b3fca4d170642c3a8df8cd96dc3ced3b44bca7998aa0dcd89e3fcfce53c7022e3db374e88342a578cd0
|
7
|
+
data.tar.gz: b838e88bece23cbf59711a9bad91ad97e9020e247e782f1ea7f15a29931861eb43d1d6d45b47140b4517da03e7f190b1210d2b6291fe163320684fb8543ca6d9
|
@@ -35,13 +35,16 @@ module Fastlane
|
|
35
35
|
)
|
36
36
|
end
|
37
37
|
|
38
|
+
print_version = new_version || current_version
|
39
|
+
print_build = new_build || current_build
|
40
|
+
|
38
41
|
UI.important "Current Version is:"
|
39
|
-
UI.message " Version: #{
|
40
|
-
UI.message " Build: #{
|
42
|
+
UI.message " Version: #{print_version} #{"(was #{current_version})" if !new_version.nil? && new_version != current_version}"
|
43
|
+
UI.message " Build: #{print_build} #{"(was #{current_build})" if !new_build.nil? && new_build != current_build}"
|
41
44
|
|
42
45
|
{
|
43
|
-
version:
|
44
|
-
build:
|
46
|
+
version: print_version,
|
47
|
+
build: print_build
|
45
48
|
}
|
46
49
|
end
|
47
50
|
|
@@ -57,7 +60,6 @@ module Fastlane
|
|
57
60
|
end
|
58
61
|
|
59
62
|
semver_version = Mixlib::Versioning.parse(current_version)
|
60
|
-
|
61
63
|
increment = UI.input("How many new #{type_name} were added since last release?")
|
62
64
|
|
63
65
|
if /\A\d+\Z/.match?(increment)
|
@@ -66,13 +68,8 @@ module Fastlane
|
|
66
68
|
UI.user_error!("Not a valid integer!")
|
67
69
|
end
|
68
70
|
|
69
|
-
puts "Increment: #{increment}"
|
70
|
-
|
71
71
|
current_count = semver_version.instance_variable_get("@#{bump_type}")
|
72
|
-
puts "Current count: #{current_count}"
|
73
|
-
|
74
72
|
semver_version.instance_variable_set("@#{bump_type}", current_count + increment)
|
75
|
-
puts "Semver: #{semver_version.to_semver_string}"
|
76
73
|
semver_version.to_semver_string
|
77
74
|
end
|
78
75
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-xamversion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Barnby
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.
|
47
|
+
version: 0.1.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.
|
54
|
+
version: 0.1.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|