fastlane 1.55.0 → 1.56.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/actions/badge.rb +15 -7
- data/lib/fastlane/actions/create_pull_request.rb +7 -1
- data/lib/fastlane/actions/hockey.rb +5 -1
- data/lib/fastlane/actions/jazzy.rb +10 -1
- data/lib/fastlane/actions/make_changelog_from_jenkins.rb +53 -0
- data/lib/fastlane/actions/set_github_release.rb +1 -1
- data/lib/fastlane/documentation/docs_generator.rb +3 -3
- data/lib/fastlane/version.rb +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4c20def76e6fe0472da7444245c73b8a5cbf79a
|
4
|
+
data.tar.gz: 5c292c07a24f1ca865ee96ed0e5e0fb394da3709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d662d8f4001d3b52190f7a9ab331c1d413d6c08b90ca1237efdbac6dcc656e70cc56dc0bb59a7781524ba7c02818624d134774c49abf98ebf141e44fd215438
|
7
|
+
data.tar.gz: 01838abf66f15b89dbd049975a5632b9c14f7b3ec4024b61450e64a47d0e984fc0a31241d7bf34fc6aca7499e0a732bb7af01fdc987f1d4e5292ae317d8126ef
|
@@ -3,7 +3,7 @@ module Fastlane
|
|
3
3
|
class BadgeAction < Action
|
4
4
|
def self.run(params)
|
5
5
|
require 'badge'
|
6
|
-
Badge::Runner.new.run('.', params[:dark], params[:custom], params[:no_badge], params[:shield])
|
6
|
+
Badge::Runner.new.run('.', params[:dark], params[:custom], params[:no_badge], params[:shield], params[:alpha])
|
7
7
|
end
|
8
8
|
|
9
9
|
#####################################################
|
@@ -16,7 +16,7 @@ module Fastlane
|
|
16
16
|
|
17
17
|
def self.details
|
18
18
|
[
|
19
|
-
"This action will add a light/dark
|
19
|
+
"This action will add a light/dark badge onto your app icon.",
|
20
20
|
"You can also provide your custom badge/overlay or add an shield for more customization more info:",
|
21
21
|
"https://github.com/HazAT/badge"
|
22
22
|
].join("\n")
|
@@ -26,7 +26,7 @@ module Fastlane
|
|
26
26
|
[
|
27
27
|
FastlaneCore::ConfigItem.new(key: :dark,
|
28
28
|
env_name: "FL_BADGE_DARK",
|
29
|
-
description: "
|
29
|
+
description: "Adds a dark flavored badge ontop of your icon",
|
30
30
|
optional: true,
|
31
31
|
is_string: false,
|
32
32
|
verify_block: proc do |value|
|
@@ -34,14 +34,14 @@ module Fastlane
|
|
34
34
|
end),
|
35
35
|
FastlaneCore::ConfigItem.new(key: :custom,
|
36
36
|
env_name: "FL_BADGE_CUSTOM",
|
37
|
-
description: "
|
37
|
+
description: "Add your custom overlay/badge image",
|
38
38
|
optional: true,
|
39
39
|
verify_block: proc do |value|
|
40
40
|
raise "custom should be a valid file path".red unless value and File.exist?(value)
|
41
41
|
end),
|
42
42
|
FastlaneCore::ConfigItem.new(key: :no_badge,
|
43
43
|
env_name: "FL_BADGE_NO_BADGE",
|
44
|
-
description: "
|
44
|
+
description: "Hides the beta badge",
|
45
45
|
optional: true,
|
46
46
|
is_string: false,
|
47
47
|
verify_block: proc do |value|
|
@@ -49,9 +49,17 @@ module Fastlane
|
|
49
49
|
end),
|
50
50
|
FastlaneCore::ConfigItem.new(key: :shield,
|
51
51
|
env_name: "FL_BADGE_SHIELD",
|
52
|
-
description: "
|
52
|
+
description: "Add a shield to your app icon from shield.io",
|
53
53
|
optional: true,
|
54
|
-
is_string: true)
|
54
|
+
is_string: true),
|
55
|
+
FastlaneCore::ConfigItem.new(key: :alpha,
|
56
|
+
env_name: "FL_BADGE_ALPHA",
|
57
|
+
description: "Adds and alpha badge instead of the default beta one",
|
58
|
+
optional: true,
|
59
|
+
is_string: false,
|
60
|
+
verify_block: proc do |value|
|
61
|
+
raise "alpha is only a flag and should always be true".red unless value == true
|
62
|
+
end)
|
55
63
|
]
|
56
64
|
end
|
57
65
|
|
@@ -11,7 +11,7 @@ module Fastlane
|
|
11
11
|
|
12
12
|
Helper.log.info "Creating new pull request from '#{params[:head]}' to branch '#{params[:base]}' of '#{params[:repo]}'"
|
13
13
|
|
14
|
-
url = "
|
14
|
+
url = "#{params[:api_url]}/repos/#{params[:repo]}/pulls"
|
15
15
|
headers = { 'User-Agent' => 'fastlane-create_pull_request' }
|
16
16
|
headers['Authorization'] = "Basic #{Base64.strict_encode64(params[:api_token])}" if params[:api_token]
|
17
17
|
|
@@ -78,6 +78,12 @@ module Fastlane
|
|
78
78
|
description: "The name of the branch you want your changes pulled into (defaults to `master`)",
|
79
79
|
is_string: true,
|
80
80
|
default_value: 'master',
|
81
|
+
optional: true),
|
82
|
+
FastlaneCore::ConfigItem.new(key: :api_url,
|
83
|
+
env_name: "GITHUB_PULL_REQUEST_API_URL",
|
84
|
+
description: "The URL of Github API - used when the Enterprise (default to `https://api.github.com`)",
|
85
|
+
is_string: true,
|
86
|
+
default_value: 'https://api.github.com',
|
81
87
|
optional: true)
|
82
88
|
]
|
83
89
|
end
|
@@ -54,7 +54,11 @@ module Fastlane
|
|
54
54
|
Helper.log.info "Public Download URL: #{url}" if url
|
55
55
|
Helper.log.info 'Build successfully uploaded to HockeyApp!'.green
|
56
56
|
else
|
57
|
-
|
57
|
+
if response.body.to_s.include?("App could not be created")
|
58
|
+
raise "Hockey has an issue processing this app. Please pass the :public_identifier option you can get from the Hockey website. More information https://github.com/fastlane/fastlane/issues/400"
|
59
|
+
else
|
60
|
+
raise "Error when trying to upload ipa to HockeyApp: #{response.body}".red
|
61
|
+
end
|
58
62
|
end
|
59
63
|
end
|
60
64
|
|
@@ -3,7 +3,9 @@ module Fastlane
|
|
3
3
|
class JazzyAction < Action
|
4
4
|
def self.run(params)
|
5
5
|
Actions.verify_gem!('jazzy')
|
6
|
-
|
6
|
+
command = "jazzy"
|
7
|
+
command << " --config #{params[:config]}" if params[:config]
|
8
|
+
Actions.sh(command)
|
7
9
|
end
|
8
10
|
|
9
11
|
#####################################################
|
@@ -19,6 +21,13 @@ module Fastlane
|
|
19
21
|
|
20
22
|
def self.available_options
|
21
23
|
[
|
24
|
+
FastlaneCore::ConfigItem.new(
|
25
|
+
key: :config,
|
26
|
+
env_name: 'FL_JAZZY_CONFIG',
|
27
|
+
description: 'Path to jazzy config file',
|
28
|
+
is_string: true,
|
29
|
+
optional: true
|
30
|
+
)
|
22
31
|
]
|
23
32
|
end
|
24
33
|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class MakeChangelogFromJenkinsAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
Actions.verify_gem!('nokogiri')
|
6
|
+
require 'nokogiri'
|
7
|
+
require 'net/http'
|
8
|
+
|
9
|
+
changelog = ""
|
10
|
+
|
11
|
+
if Helper.is_ci?
|
12
|
+
# The "BUILD_URL" environment variable is set automatically by Jenkins in every build
|
13
|
+
jenkins_xml_url = URI(ENV["BUILD_URL"] + "api/xml\?wrapper\=changes\&xpath\=//changeSet//comment")
|
14
|
+
doc = Nokogiri.XML(Net::HTTP.get(jenkins_xml_url))
|
15
|
+
doc.css('comment').each do |comment|
|
16
|
+
changelog << comment.text.strip + "\n"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
Actions.lane_context[SharedValues::FL_CHANGELOG] = changelog.strip.length > 0 ? changelog : params[:fallback_changelog]
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.description
|
24
|
+
"Generate a changelog using the Changes section from the current Jenkins build"
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.details
|
28
|
+
"This is useful when deploying automated builds. The changelog from Jenkins lists all the commit messages since the last build."
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.available_options
|
32
|
+
[
|
33
|
+
FastlaneCore::ConfigItem.new(key: :fallback_changelog,
|
34
|
+
description: "Fallback changelog if there is not one on Jenkins",
|
35
|
+
optional: true,
|
36
|
+
default_value: "")
|
37
|
+
]
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.output
|
41
|
+
['FL_CHANGELOG', 'The changelog generated by Jenkins']
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.authors
|
45
|
+
["mandrizzle"]
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.is_supported?(platform)
|
49
|
+
true
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -96,7 +96,7 @@ module Fastlane
|
|
96
96
|
Dir.mktmpdir do |dir|
|
97
97
|
tmpzip = File.join(dir, File.basename(absolute_path) + '.zip')
|
98
98
|
name = File.basename(tmpzip)
|
99
|
-
sh "cd \"#{File.dirname(absolute_path)}\"; zip -r \"#{tmpzip}\" \"#{File.basename(absolute_path)}\" 2>&1 >/dev/null"
|
99
|
+
sh "cd \"#{File.dirname(absolute_path)}\"; zip -r --symlinks \"#{tmpzip}\" \"#{File.basename(absolute_path)}\" 2>&1 >/dev/null"
|
100
100
|
response = self.upload_file(tmpzip, upload_url_template, api_token)
|
101
101
|
end
|
102
102
|
else
|
@@ -32,9 +32,9 @@ module Fastlane
|
|
32
32
|
output << ""
|
33
33
|
end
|
34
34
|
|
35
|
-
output << "This README.md is auto-generated and will be re-generated every time to run [fastlane](https://fastlane.tools)"
|
36
|
-
output << "More information about fastlane can be found on [https://fastlane.tools](https://fastlane.tools)."
|
37
|
-
output << "The documentation of fastlane can be found on [GitHub](https://github.com/fastlane/fastlane)"
|
35
|
+
output << "This README.md is auto-generated and will be re-generated every time to run [fastlane](https://fastlane.tools). "
|
36
|
+
output << "More information about fastlane can be found on [https://fastlane.tools](https://fastlane.tools). "
|
37
|
+
output << "The documentation of fastlane can be found on [GitHub](https://github.com/fastlane/fastlane)."
|
38
38
|
|
39
39
|
File.write(output_path, output.join("\n"))
|
40
40
|
UI.success "Successfully generated documentation to path '#{File.expand_path(output_path)}'" if $verbose
|
data/lib/fastlane/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.56.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: krausefx-shenzhen
|
@@ -134,7 +134,7 @@ dependencies:
|
|
134
134
|
requirements:
|
135
135
|
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.36.
|
137
|
+
version: 0.36.1
|
138
138
|
- - "<"
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: 1.0.0
|
@@ -144,7 +144,7 @@ dependencies:
|
|
144
144
|
requirements:
|
145
145
|
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: 0.36.
|
147
|
+
version: 0.36.1
|
148
148
|
- - "<"
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: 1.0.0
|
@@ -194,7 +194,7 @@ dependencies:
|
|
194
194
|
requirements:
|
195
195
|
- - ">="
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version: 1.
|
197
|
+
version: 1.9.0
|
198
198
|
- - "<"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: 2.0.0
|
@@ -204,7 +204,7 @@ dependencies:
|
|
204
204
|
requirements:
|
205
205
|
- - ">="
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: 1.
|
207
|
+
version: 1.9.0
|
208
208
|
- - "<"
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: 2.0.0
|
@@ -214,7 +214,7 @@ dependencies:
|
|
214
214
|
requirements:
|
215
215
|
- - ">="
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version: 1.
|
217
|
+
version: 1.6.0
|
218
218
|
- - "<"
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: 2.0.0
|
@@ -224,7 +224,7 @@ dependencies:
|
|
224
224
|
requirements:
|
225
225
|
- - ">="
|
226
226
|
- !ruby/object:Gem::Version
|
227
|
-
version: 1.
|
227
|
+
version: 1.6.0
|
228
228
|
- - "<"
|
229
229
|
- !ruby/object:Gem::Version
|
230
230
|
version: 2.0.0
|
@@ -669,6 +669,7 @@ files:
|
|
669
669
|
- lib/fastlane/actions/latest_testflight_build_number.rb
|
670
670
|
- lib/fastlane/actions/lcov.rb
|
671
671
|
- lib/fastlane/actions/mailgun.rb
|
672
|
+
- lib/fastlane/actions/make_changelog_from_jenkins.rb
|
672
673
|
- lib/fastlane/actions/match.rb
|
673
674
|
- lib/fastlane/actions/nexus_upload.rb
|
674
675
|
- lib/fastlane/actions/notification.rb
|
@@ -784,7 +785,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
784
785
|
version: '0'
|
785
786
|
requirements: []
|
786
787
|
rubyforge_project:
|
787
|
-
rubygems_version: 2.4.
|
788
|
+
rubygems_version: 2.4.0
|
788
789
|
signing_key:
|
789
790
|
specification_version: 4
|
790
791
|
summary: Connect all iOS deployment tools into one streamlined workflow
|