fastlane 1.1.0 → 1.2.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/README.md +1 -0
- data/bin/fastlane +1 -1
- data/lib/fastlane/actions/chatwork.rb +74 -0
- data/lib/fastlane/actions/commit_version_bump.rb +1 -1
- data/lib/fastlane/actions/crashlytics.rb +1 -1
- data/lib/fastlane/actions/deliver.rb +1 -1
- data/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/lib/fastlane/actions/frameit.rb +7 -1
- data/lib/fastlane/actions/hipchat.rb +7 -6
- data/lib/fastlane/actions/increment_build_number.rb +1 -1
- data/lib/fastlane/actions/increment_version_number.rb +1 -1
- data/lib/fastlane/actions/install_cocapods.rb +1 -1
- data/lib/fastlane/actions/register_devices.rb +1 -1
- data/lib/fastlane/actions/xcode_select.rb +1 -1
- data/lib/fastlane/actions/xctool.rb +1 -1
- data/lib/fastlane/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c350e6249a35b24af7d49ce3fc5e2338d7b1e7d
|
4
|
+
data.tar.gz: de99ca4312f03d470d56aa6c046851d4e46fd25f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 481dac79ca57963a8395f6449e0bd27e415ce021d9b17c7a4ae1a6a6d917ec5af85e690a989bc4b94644ddd712c1c67cd4b0f72290a0d65b85b33689213e5884
|
7
|
+
data.tar.gz: 324a00d3f0e106cbab7209f4afeabaaa659aa6d1723eb959951630038c98b44bd77994fadf5cf110c041356eac7bd4a3016c5ac7d307cb808da387bae2745ec7
|
data/README.md
CHANGED
@@ -159,6 +159,7 @@ A detailed description about how ```fastlane``` stores your credentials is avail
|
|
159
159
|
Thanks to all contributors for extending and improving the `fastlane` suite:
|
160
160
|
|
161
161
|
- [Product Hunt](http://producthunt.com)
|
162
|
+
- [MindNode](https://mindnode.com)
|
162
163
|
- [Detroit Labs](http://www.detroitlabs.com/)
|
163
164
|
- Josh Holtz ([@joshdholtz](https://twitter.com/joshdholtz))
|
164
165
|
- Ash Furrow ([@ashfurrow](https://twitter.com/ashfurrow))
|
data/bin/fastlane
CHANGED
@@ -67,7 +67,7 @@ class FastlaneApplication
|
|
67
67
|
c.description = 'Lists all available lanes'
|
68
68
|
|
69
69
|
c.action do |_args, _options|
|
70
|
-
ff = Fastlane::FastFile.new(File.join(Fastlane::FastlaneFolder.path, 'Fastfile'))
|
70
|
+
ff = Fastlane::FastFile.new(File.join(Fastlane::FastlaneFolder.path || '.', 'Fastfile'))
|
71
71
|
puts "\nAvailable lanes:".green
|
72
72
|
ff.runner.available_lanes.each do |lane|
|
73
73
|
puts "- #{lane}"
|
@@ -0,0 +1,74 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
end
|
5
|
+
|
6
|
+
class ChatworkAction < Action
|
7
|
+
def self.run(options)
|
8
|
+
require 'net/http'
|
9
|
+
require 'uri'
|
10
|
+
|
11
|
+
emoticon = (options[:success] ? '(dance)' : ';(')
|
12
|
+
|
13
|
+
uri = URI.parse("https://api.chatwork.com/v1/rooms/#{options[:roomid]}/messages")
|
14
|
+
https = Net::HTTP.new(uri.host, uri.port)
|
15
|
+
https.use_ssl = true
|
16
|
+
|
17
|
+
req = Net::HTTP::Post.new(uri.request_uri)
|
18
|
+
req['X-ChatWorkToken'] = options[:api_token]
|
19
|
+
req.set_form_data({
|
20
|
+
'body' => "[info][title]Notification from fastlane[/title]#{emoticon} #{options[:message]}[/info]"
|
21
|
+
})
|
22
|
+
|
23
|
+
response = https.request(req)
|
24
|
+
case response.code.to_i
|
25
|
+
when 200..299
|
26
|
+
Helper.log.info 'Successfully sent notification to ChatWork right now 📢'.green
|
27
|
+
else
|
28
|
+
require 'json'
|
29
|
+
json = JSON.parse(response.body)
|
30
|
+
raise "HTTP Error: #{response.code} #{json['errors']}".red
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.description
|
35
|
+
"Send a success/error message to ChatWork"
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.available_options
|
39
|
+
[
|
40
|
+
FastlaneCore::ConfigItem.new(key: :api_token,
|
41
|
+
env_name: "CHATWORK_API_TOKEN",
|
42
|
+
description: "ChatWork API Token",
|
43
|
+
verify_block: Proc.new do |value|
|
44
|
+
unless value.to_s.length > 0
|
45
|
+
Helper.log.fatal "Please add 'ENV[\"CHATWORK_API_TOKEN\"] = \"your token\"' to your Fastfile's `before_all` section.".red
|
46
|
+
raise 'No CHATWORK_API_TOKEN given.'.red
|
47
|
+
end
|
48
|
+
end),
|
49
|
+
FastlaneCore::ConfigItem.new(key: :message,
|
50
|
+
env_name: "FL_CHATWORK_MESSAGE",
|
51
|
+
description: "The message to post on ChatWork"),
|
52
|
+
FastlaneCore::ConfigItem.new(key: :roomid,
|
53
|
+
env_name: "FL_CHATWORK_ROOMID",
|
54
|
+
description: "The room ID",
|
55
|
+
is_string: false),
|
56
|
+
FastlaneCore::ConfigItem.new(key: :success,
|
57
|
+
env_name: "FL_CHATWORK_SUCCESS",
|
58
|
+
description: "Was this build successful? (true/false)",
|
59
|
+
optional: true,
|
60
|
+
default_value: true,
|
61
|
+
is_string: false)
|
62
|
+
]
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.author
|
66
|
+
"ChatWork Inc."
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.is_supported?(platform)
|
70
|
+
true
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -47,7 +47,13 @@ module Fastlane
|
|
47
47
|
env_name: "FRAMEIT_FORCE_DEVICE_TYPE",
|
48
48
|
description: "Forces a given device type, useful for Mac screenshots, as their sizes vary",
|
49
49
|
default_value: '',
|
50
|
-
optional: true
|
50
|
+
optional: true,
|
51
|
+
verify_block: Proc.new do |value|
|
52
|
+
available = ['iPhone_6_Plus', 'iPhone_5s', 'iPhone_4', 'iPad_mini', 'Mac']
|
53
|
+
unless available.include?value
|
54
|
+
raise "Invalid device type '#{value}'. Available values: #{available}".red
|
55
|
+
end
|
56
|
+
end)
|
51
57
|
]
|
52
58
|
end
|
53
59
|
|
@@ -13,7 +13,9 @@ module Fastlane
|
|
13
13
|
|
14
14
|
channel = options[:channel]
|
15
15
|
color = (options[:success] ? 'green' : 'red')
|
16
|
-
|
16
|
+
|
17
|
+
the_message = options[:message]
|
18
|
+
message = "<table><tr><td><img src='https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png' width='50' height='50'></td><td>#{the_message[0..9999]}</td></tr></table>"
|
17
19
|
|
18
20
|
if api_version.to_i == 1
|
19
21
|
########## running on V1 ##########
|
@@ -66,11 +68,11 @@ module Fastlane
|
|
66
68
|
when 200, 204
|
67
69
|
true
|
68
70
|
when 404
|
69
|
-
raise "
|
71
|
+
raise "Channel `#{channel}` not found".red
|
70
72
|
when 401
|
71
|
-
raise "Access denied
|
73
|
+
raise "Access denied for channel `#{channel}`".red
|
72
74
|
else
|
73
|
-
raise "Unexpected #{response.code} for `#{channel}
|
75
|
+
raise "Unexpected #{response.code} for `#{channel}` with response: #{response.body}".red
|
74
76
|
end
|
75
77
|
end
|
76
78
|
|
@@ -86,8 +88,7 @@ module Fastlane
|
|
86
88
|
default_value: ''),
|
87
89
|
FastlaneCore::ConfigItem.new(key: :channel,
|
88
90
|
env_name: "FL_HIPCHAT_CHANNEL",
|
89
|
-
description: "The room or @username",
|
90
|
-
optional: true),
|
91
|
+
description: "The room or @username"),
|
91
92
|
FastlaneCore::ConfigItem.new(key: :api_token,
|
92
93
|
env_name: "HIPCHAT_API_TOKEN",
|
93
94
|
description: "Hipchat API Token",
|
@@ -80,7 +80,7 @@ module Fastlane
|
|
80
80
|
end),
|
81
81
|
FastlaneCore::ConfigItem.new(key: :team_id,
|
82
82
|
env_name: "FASTLANE_TEAM_ID",
|
83
|
-
description: "optional: Your team ",
|
83
|
+
description: "optional: Your team ID",
|
84
84
|
optional: true),
|
85
85
|
FastlaneCore::ConfigItem.new(key: :username,
|
86
86
|
env_name: "CUPERTINO_USERNAME",
|
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.2.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-05-
|
11
|
+
date: 2015-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -383,6 +383,7 @@ files:
|
|
383
383
|
- lib/fastlane/actions/actions_helper.rb
|
384
384
|
- lib/fastlane/actions/add_git_tag.rb
|
385
385
|
- lib/fastlane/actions/cert.rb
|
386
|
+
- lib/fastlane/actions/chatwork.rb
|
386
387
|
- lib/fastlane/actions/clean_build_artifacts.rb
|
387
388
|
- lib/fastlane/actions/commit_version_bump.rb
|
388
389
|
- lib/fastlane/actions/crashlytics.rb
|