fastlane-plugin-sunny_project 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/sunny_project/actions/finalize_version_action.rb +14 -15
- data/lib/fastlane/plugin/sunny_project/actions/increase_version_action.rb +7 -7
- data/lib/fastlane/plugin/sunny_project/actions/sunny_release_action.rb +4 -2
- data/lib/fastlane/plugin/sunny_project/helper/sunny_project_helper.rb +1 -1
- data/lib/fastlane/plugin/sunny_project/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f9d8a4ec62de4f80f569d04503f9b22f64d942f3115c57057c2ff0a0f6e6ada
|
4
|
+
data.tar.gz: 2877a57f2f83a09512474027fbf1241cf21db2756e7eeb76d22c912ac4e73a46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e670cac6484e54b112043b6710452698d48e4113c21f7c8aaebea653590a3c3115f0e3c6df9e93f6591f37817ac4b321c93458fb5cabb46128c0bcd82965e25
|
7
|
+
data.tar.gz: 45b0e3822537868b51c0a8d5356ec6d528724b0da0ea8cd3041a087ad146396d73351e2bd71947f2db64713f393912fcf1d8e9abda0d7f04ffe310eaaf699fa3
|
@@ -8,15 +8,15 @@ module Fastlane
|
|
8
8
|
version = Sunny.current_semver
|
9
9
|
# If we got this far, let's commit the build number and update the git tags. If the rest of the pro
|
10
10
|
# process fails, we should revert this because it will mess up our commit logs
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
Sunny.run_action(GitCommitAction, path: %w[./pubspec.yaml ./pubspec.lock ./CHANGELOG.md],
|
12
|
+
allow_nothing_to_commit: true,
|
13
|
+
message: "Version bump to: #{version.major}.#{version.minor}.#{version.patch}#800#{version.build}")
|
14
|
+
Sunny.run_action(AddGitTagAction,
|
15
|
+
tag: "sunny/builds/v#{version.build}",
|
16
|
+
force: true,
|
17
|
+
sign: false,
|
18
18
|
)
|
19
|
-
|
19
|
+
Sunny.run_action(PushGitTagsAction, log: true)
|
20
20
|
if File.exist?(Sunny.release_notes_file)
|
21
21
|
File.delete(Sunny.release_notes_file)
|
22
22
|
end
|
@@ -41,13 +41,12 @@ module Fastlane
|
|
41
41
|
|
42
42
|
def self.available_options
|
43
43
|
[
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
FastlaneCore::ConfigItem.new(key: :tag_group,
|
45
|
+
env_name: "SUNNY_PROJECT_TAG_GROUP",
|
46
|
+
description: "The name of the tag group",
|
47
|
+
optional: false,
|
48
|
+
type: String,
|
49
|
+
default_value: "sunny/builds"),
|
51
50
|
|
52
51
|
]
|
53
52
|
end
|
@@ -31,13 +31,13 @@ module Fastlane
|
|
31
31
|
UI.error "Invalid option: #{value} Must be 'build' or 'patch'" unless value == "build" or value == "patch"
|
32
32
|
end
|
33
33
|
[
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
34
|
+
FastlaneCore::ConfigItem.new(key: :type,
|
35
|
+
env_name: "SUNNY_PROJECT_TYPE",
|
36
|
+
description: "Whether to make a patch or build version change",
|
37
|
+
optional: true,
|
38
|
+
verify_block: verify_type,
|
39
|
+
default_value: 'build',
|
40
|
+
type: String)
|
41
41
|
]
|
42
42
|
end
|
43
43
|
|
@@ -128,8 +128,10 @@ module Fastlane
|
|
128
128
|
UI.header "Commit pubspec.yaml, Info.plist for version updates"
|
129
129
|
# If we got this far, let's commit the build number and update the git tags. If the rest of the pro
|
130
130
|
# process fails, we should revert this because it will mess up our commit logs
|
131
|
-
Sunny.run_action(GitCommitAction,
|
132
|
-
|
131
|
+
Sunny.run_action(GitCommitAction,
|
132
|
+
allow_nothing_to_commit: true,
|
133
|
+
path: %w[./pubspec.yaml ./pubspec.lock ./Gemfile.lock ./ios/Runner/Info.plist],
|
134
|
+
message: "\"Version bump to: #{version.major}.#{version.minor}.#{version.patch}#800#{version.build}\"")
|
133
135
|
UI.header "Tagging repo v#{version.build}"
|
134
136
|
Sunny.run_action(AddGitTagAction,
|
135
137
|
grouping: "sunny-builds",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-sunny_project
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ericmartineau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|