fastlane 1.23.0 → 1.24.0
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 +4 -4
- data/lib/assets/custom_action_template.rb +1 -3
- data/lib/fastlane/actions/{install_carthage.rb → carthage.rb} +0 -0
- data/lib/fastlane/actions/{install_cocoapods.rb → cocoapods.rb} +6 -0
- data/lib/fastlane/actions/download.rb +66 -0
- data/lib/fastlane/actions/hipchat.rb +20 -6
- data/lib/fastlane/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 336461764c0b6885ff9354c63b43ea624af08754
|
4
|
+
data.tar.gz: 2dc310d65dbf28a4661291fd6a649e9a9c158443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75725246d80859a2343169dc987f562725ffad36cd3255ef6966ab224bce72eb50c37f51772c017decbd1c8ad6c877e3dcab2dc446586a034d6b65ff7df03deb
|
7
|
+
data.tar.gz: 92181b49d70b81cf4b2bc515745e44f19e355a7f1baf3d6933c876f42567df7b2ff5a40b9415f259cf5f5a703804aa29d84f5edb055893ae860ba90c2a29901c
|
@@ -20,8 +20,6 @@ module Fastlane
|
|
20
20
|
# Actions.lane_context[SharedValues::[[NAME_UP]]_CUSTOM_VALUE] = "my_val"
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
23
|
#####################################################
|
26
24
|
# @!group Documentation
|
27
25
|
#####################################################
|
@@ -82,4 +80,4 @@ module Fastlane
|
|
82
80
|
end
|
83
81
|
end
|
84
82
|
end
|
85
|
-
end
|
83
|
+
end
|
File without changes
|
@@ -26,26 +26,32 @@ module Fastlane
|
|
26
26
|
FastlaneCore::ConfigItem.new(key: :clean,
|
27
27
|
env_name: "FL_COCOAPODS_CLEAN",
|
28
28
|
description: "Remove SCM directories",
|
29
|
+
is_string: false,
|
29
30
|
default_value: true),
|
30
31
|
FastlaneCore::ConfigItem.new(key: :integrate,
|
31
32
|
env_name: "FL_COCOAPODS_INTEGRATE",
|
32
33
|
description: "Integrate the Pods libraries into the Xcode project(s)",
|
34
|
+
is_string: false,
|
33
35
|
default_value: true),
|
34
36
|
FastlaneCore::ConfigItem.new(key: :repo_update,
|
35
37
|
env_name: "FL_COCOAPODS_REPO_UPDATE",
|
36
38
|
description: "Run `pod repo update` before install",
|
39
|
+
is_string: false,
|
37
40
|
default_value: true),
|
38
41
|
FastlaneCore::ConfigItem.new(key: :silent,
|
39
42
|
env_name: "FL_COCOAPODS_SILENT",
|
40
43
|
description: "Show nothing",
|
44
|
+
is_string: false,
|
41
45
|
default_value: false),
|
42
46
|
FastlaneCore::ConfigItem.new(key: :verbose,
|
43
47
|
env_name: "FL_COCOAPODS_VERBOSE",
|
44
48
|
description: "Show more debugging information",
|
49
|
+
is_string: false,
|
45
50
|
default_value: false),
|
46
51
|
FastlaneCore::ConfigItem.new(key: :ansi,
|
47
52
|
env_name: "FL_COCOAPODS_ANSI",
|
48
53
|
description: "Show output with ANSI codes",
|
54
|
+
is_string: false,
|
49
55
|
default_value: true),
|
50
56
|
FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
|
51
57
|
env_name: "FL_COCOAPODS_USE_BUNDLE_EXEC",
|
@@ -0,0 +1,66 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
DOWNLOAD_CONTENT = :DOWNLOAD_CONTENT
|
5
|
+
end
|
6
|
+
|
7
|
+
class DownloadAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
require 'net/http'
|
10
|
+
|
11
|
+
begin
|
12
|
+
result = Net::HTTP.get(URI(params[:url]))
|
13
|
+
begin
|
14
|
+
result = JSON.parse(result) # try to parse and see if it's valid JSON data
|
15
|
+
rescue
|
16
|
+
# never mind, using standard text data instead
|
17
|
+
end
|
18
|
+
Actions.lane_context[SharedValues::DOWNLOAD_CONTENT] = result
|
19
|
+
rescue => ex
|
20
|
+
raise "Error fetching remote file: #{ex}"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
#####################################################
|
25
|
+
# @!group Documentation
|
26
|
+
#####################################################
|
27
|
+
|
28
|
+
def self.description
|
29
|
+
"Download a file from a remote server (e.g. JSON file)"
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.details
|
33
|
+
[
|
34
|
+
"Specify the URL to download and get the content as a return value",
|
35
|
+
"For more advanced networking code, use the Ruby functions instead:",
|
36
|
+
"http://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html"
|
37
|
+
].join("\n")
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.available_options
|
41
|
+
[
|
42
|
+
FastlaneCore::ConfigItem.new(key: :url,
|
43
|
+
env_name: "FL_DOWNLOAD_URL",
|
44
|
+
description: "The URL that should be downloaded",
|
45
|
+
verify_block: proc do |value|
|
46
|
+
Helper.log.warn "The URL doesn't start with http or https" unless value.start_with?("http")
|
47
|
+
end)
|
48
|
+
]
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.output
|
52
|
+
[
|
53
|
+
['DOWNLOAD_CONTENT', 'The content of the file we just downloaded']
|
54
|
+
]
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.authors
|
58
|
+
["KrauseFx"]
|
59
|
+
end
|
60
|
+
|
61
|
+
def self.is_supported?(platform)
|
62
|
+
true
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -13,12 +13,15 @@ module Fastlane
|
|
13
13
|
api_host = options[:api_host]
|
14
14
|
|
15
15
|
notify_room = (options[:notify_room] ? 'true' : 'false')
|
16
|
+
message_format = options[:message_format]
|
16
17
|
|
17
18
|
channel = options[:channel]
|
18
19
|
color = (options[:success] ? 'green' : 'red')
|
19
20
|
|
20
|
-
|
21
|
-
|
21
|
+
message = options[:message]
|
22
|
+
if message_format == "html"
|
23
|
+
message = "<table><tr><td><img src='https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png' width='50' height='50'></td><td>#{message[0..9999]}</td></tr></table>"
|
24
|
+
end
|
22
25
|
|
23
26
|
if api_version.to_i == 1
|
24
27
|
########## running on V1 ##########
|
@@ -29,7 +32,7 @@ module Fastlane
|
|
29
32
|
response = Net::HTTP.post_form(uri, { 'from' => 'fastlane',
|
30
33
|
'auth_token' => api_token,
|
31
34
|
'color' => color,
|
32
|
-
'message_format' =>
|
35
|
+
'message_format' => message_format,
|
33
36
|
'room_id' => channel,
|
34
37
|
'message' => message,
|
35
38
|
'notify' => notify_room })
|
@@ -40,7 +43,7 @@ module Fastlane
|
|
40
43
|
########## running on V2 ##########
|
41
44
|
if user?(channel)
|
42
45
|
channel.slice!(0)
|
43
|
-
params = { 'message' => message, 'message_format' =>
|
46
|
+
params = { 'message' => message, 'message_format' => message_format }
|
44
47
|
json_headers = { 'Content-Type' => 'application/json',
|
45
48
|
'Accept' => 'application/json', 'Authorization' => "Bearer #{api_token}" }
|
46
49
|
|
@@ -55,7 +58,7 @@ module Fastlane
|
|
55
58
|
response = Net::HTTP.post_form(uri, { 'from' => 'fastlane',
|
56
59
|
'auth_token' => api_token,
|
57
60
|
'color' => color,
|
58
|
-
'message_format' =>
|
61
|
+
'message_format' => message_format,
|
59
62
|
'message' => message,
|
60
63
|
'notify' => notify_room })
|
61
64
|
|
@@ -128,7 +131,18 @@ module Fastlane
|
|
128
131
|
env_name: "HIPCHAT_API_HOST",
|
129
132
|
description: "The host of the HipChat-Server API",
|
130
133
|
default_value: "api.hipchat.com",
|
131
|
-
optional: true)
|
134
|
+
optional: true),
|
135
|
+
FastlaneCore::ConfigItem.new(key: :message_format,
|
136
|
+
env_name: "FL_HIPCHAT_MESSAGE_FORMAT",
|
137
|
+
description: "Format of the message to post. Must be either 'html' or 'text'",
|
138
|
+
default_value: "html",
|
139
|
+
optional: true,
|
140
|
+
verify_block: proc do |value|
|
141
|
+
unless ["html", "text"].include?(value.to_s)
|
142
|
+
Helper.log.fatal "Please specify the message format as either 'html' or 'text'.".red
|
143
|
+
raise 'Unrecognized message_format.'.red
|
144
|
+
end
|
145
|
+
end)
|
132
146
|
]
|
133
147
|
end
|
134
148
|
|
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.24.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: 2015-09-
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -587,10 +587,12 @@ files:
|
|
587
587
|
- lib/fastlane/actions/backup_file.rb
|
588
588
|
- lib/fastlane/actions/backup_xcarchive.rb
|
589
589
|
- lib/fastlane/actions/bundle_install.rb
|
590
|
+
- lib/fastlane/actions/carthage.rb
|
590
591
|
- lib/fastlane/actions/cert.rb
|
591
592
|
- lib/fastlane/actions/chatwork.rb
|
592
593
|
- lib/fastlane/actions/clean_build_artifacts.rb
|
593
594
|
- lib/fastlane/actions/clipboard.rb
|
595
|
+
- lib/fastlane/actions/cocoapods.rb
|
594
596
|
- lib/fastlane/actions/commit_version_bump.rb
|
595
597
|
- lib/fastlane/actions/crashlytics.rb
|
596
598
|
- lib/fastlane/actions/create_keychain.rb
|
@@ -598,6 +600,7 @@ files:
|
|
598
600
|
- lib/fastlane/actions/delete_keychain.rb
|
599
601
|
- lib/fastlane/actions/deliver.rb
|
600
602
|
- lib/fastlane/actions/deploygate.rb
|
603
|
+
- lib/fastlane/actions/download.rb
|
601
604
|
- lib/fastlane/actions/dsym_zip.rb
|
602
605
|
- lib/fastlane/actions/ensure_git_branch.rb
|
603
606
|
- lib/fastlane/actions/ensure_git_status_clean.rb
|
@@ -623,8 +626,6 @@ files:
|
|
623
626
|
- lib/fastlane/actions/import_from_git.rb
|
624
627
|
- lib/fastlane/actions/increment_build_number.rb
|
625
628
|
- lib/fastlane/actions/increment_version_number.rb
|
626
|
-
- lib/fastlane/actions/install_carthage.rb
|
627
|
-
- lib/fastlane/actions/install_cocoapods.rb
|
628
629
|
- lib/fastlane/actions/ipa.rb
|
629
630
|
- lib/fastlane/actions/is_ci.rb
|
630
631
|
- lib/fastlane/actions/lane_context.rb
|