fastlane 0.12.5 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d71f1d568a8c16d8882ecba98737bd12092d8cf7
4
- data.tar.gz: 552806b63809fc25db7e2b4f2454412b12a4e74c
3
+ metadata.gz: 04f9afecbb2d0f127fdf68aed5ed8c709b6f18ac
4
+ data.tar.gz: 56c055566f8a26614aa03e99e821af9c59f84118
5
5
  SHA512:
6
- metadata.gz: f98085e2e74d0e10c337e13baa03a89d0187be624cdae20552572232ae935434bd501653e731fab051fb44d1354a495c24b61a9abe5e099e1754c15963dabe17
7
- data.tar.gz: 1df3308a3316f7fcf8c9f0015474ef87301ab108c80c89189349eac8581c8bac8696cf3e6e5063a409e8841dcb1af6c57fe5028642b6f69bedac36806a15c15c
6
+ metadata.gz: f9ae1ffbc79c9a47db01995bb3578b2c0effb0a46323408bd96d807939776af5f6369d880ab423e6c65a17f644642ff61c6e2684356578be763a7effcafdc063
7
+ data.tar.gz: d9b67f2efbb548d477388425d95a9ed328fa28659e2450efd049e3c13e4201a59cca136b5f1dcddf5e6ba8b6b20967ef981d9961df8e4380abbdf26383d7a38e
data/bin/fastlane CHANGED
@@ -13,11 +13,11 @@ class FastlaneApplication
13
13
 
14
14
  def run
15
15
  program :version, Fastlane::VERSION
16
- program :description, 'CLI for \'fastlane\' - Connect all iOS deployment tools into one streamlined workflow'
16
+ program :description, "CLI for 'fastlane' - Connect all iOS deployment tools into one streamlined workflow.\n\nRun using fastlane [lane_name]"
17
17
  program :help, 'Author', 'Felix Krause <fastlane@krausefx.com>'
18
18
  program :help, 'Website', 'https://fastlane.tools'
19
19
  program :help, 'GitHub', 'https://github.com/krausefx/fastlane'
20
- program :help_formatter, :compact
20
+ # program :help_formatter, :compact # https://github.com/commander-rb/commander/issues/12
21
21
 
22
22
  always_trace!
23
23
 
@@ -71,7 +71,7 @@ platform :ios do
71
71
 
72
72
  error do |lane, exception|
73
73
  # slack({
74
- # message: exception.message
74
+ # message: exception.message,
75
75
  # success: false
76
76
  # })
77
77
  end
@@ -80,4 +80,4 @@ end
80
80
 
81
81
 
82
82
  # More information about multiple platforms in fastlane:
83
- # https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md
83
+ # https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md
@@ -55,15 +55,15 @@ module Fastlane
55
55
  raise 'No file changes picked up. Make sure you run the `increment_build_number` action first.'.red if git_dirty_files.empty?
56
56
 
57
57
  # check if the files changed are the ones we expected to change (these should be only the files that have version info in them)
58
- changed_files_as_expected = (Set.new(git_dirty_files) == Set.new(expected_changed_files))
58
+ changed_files_as_expected = (Set.new(git_dirty_files.map(&:downcase)) == Set.new(expected_changed_files.map(&:downcase)))
59
59
  unless changed_files_as_expected
60
60
  unless params[:force]
61
- raise "Found unexpected uncommited changes in the working directory. Expected these files to have changed: #{expected_changed_files}. But found these actual changes: #{git_dirty_files}. Make sure you have cleaned up the build artifacts and are only left with the changed version files at this stage in your lane, and don't touch the working directory while your lane is running. You can also use the :force to not care about this.".red
61
+ raise "Found unexpected uncommited changes in the working directory. Expected these files to have changed: #{expected_changed_files}. But found these actual changes: #{git_dirty_files}. Make sure you have cleaned up the build artifacts and are only left with the changed version files at this stage in your lane, and don't touch the working directory while your lane is running. You can also use the :force option to bypass this check, and always commit a version bump regardless of the state of the working directory.".red
62
62
  end
63
63
  end
64
64
 
65
65
  # get the absolute paths to the files
66
- git_add_paths = expected_changed_files.map { |path| File.expand_path(File.join(repo_pathname, path)) }
66
+ git_add_paths = git_dirty_files.map { |path| File.expand_path(File.join(repo_pathname, path)) }
67
67
 
68
68
  # then create a commit with a message
69
69
  Actions.sh("git add #{git_add_paths.map(&:shellescape).join(' ')}")
@@ -0,0 +1,98 @@
1
+ module Fastlane
2
+ module Actions
3
+ module SharedValues
4
+ end
5
+
6
+ class HallAction < Action
7
+ def self.run(options)
8
+
9
+ require 'net/http'
10
+ require 'uri'
11
+
12
+ group_api_token = options[:group_api_token]
13
+
14
+ title = options[:title]
15
+ message = options[:message]
16
+ picture = options[:picture]
17
+
18
+ body = {"title" => title,
19
+ "message" => message,
20
+ "picture" => picture}
21
+
22
+ uri = URI.parse("https://hall.com/api/1/services/generic/#{group_api_token}")
23
+ http = Net::HTTP.new(uri.host, uri.port)
24
+ http.use_ssl = true
25
+ req = Net::HTTP::Post.new(uri.path, initheader = {"Content-Type" =>"application/json",
26
+ "Accept" => "application/json"})
27
+ req.body = body.to_json
28
+
29
+ return [uri.to_s, body] if Helper.is_test? # tests will verify the url and body
30
+
31
+ res = http.request(req)
32
+ check_response_code(res)
33
+
34
+ Helper.log.info "Posted message to Hall 🎯."
35
+ end
36
+
37
+ def self.check_response_code(response)
38
+ case response.code.to_i
39
+ when 200, 201, 204
40
+ true
41
+ when 404
42
+ raise "Not found".red
43
+ when 401
44
+ raise "Access denied".red
45
+ else
46
+ raise "Unexpected #{response.code}".red
47
+ end
48
+ end
49
+
50
+ #####################################################
51
+ # @!group Documentation
52
+ #####################################################
53
+
54
+ def self.description
55
+ "Post a message to Hall (https://hall.com/)"
56
+ end
57
+
58
+ def self.available_options
59
+ [
60
+ FastlaneCore::ConfigItem.new(key: :title,
61
+ env_name: "FL_HALL_TITLE",
62
+ description: "The title for the message. Plain text, HTML tags will be stripped",
63
+ default_value: 'fastlane'),
64
+ FastlaneCore::ConfigItem.new(key: :message,
65
+ env_name: "FL_HALL_MESSAGE",
66
+ description: "The message to post on the Hall group. May contain a restricted set of HTML tags (https://hall.com/docs/integrations/generic)",
67
+ default_value: ''),
68
+ FastlaneCore::ConfigItem.new(key: :picture,
69
+ env_name: "FL_HALL_PICTURE",
70
+ description: "URL to an image file, which will be displayed next to your notification message",
71
+ default_value: 'https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png'),
72
+ FastlaneCore::ConfigItem.new(key: :group_api_token,
73
+ env_name: "HALL_GROUP_API_TOKEN",
74
+ description: "Hall Group API Token",
75
+ verify_block: Proc.new do |value|
76
+ unless value.to_s.length > 0
77
+ Helper.log.fatal "Please add 'ENV[\"HALL_GROUP_API_TOKEN\"] = \"your token\"' to your Fastfile's `before_all` section.".red
78
+ raise 'No HALL_GROUP_API_TOKEN given.'.red
79
+ end
80
+ end)
81
+ ]
82
+ end
83
+
84
+ def self.output
85
+ [
86
+ ]
87
+ end
88
+
89
+ def self.author
90
+ 'eytanbiala'
91
+ end
92
+
93
+ def self.is_supported?(platform)
94
+ true
95
+ end
96
+ end
97
+ end
98
+ end
@@ -35,6 +35,7 @@ module Fastlane
35
35
 
36
36
  values = options.values
37
37
  values[:dsym_filename] = dsym_path
38
+ values[:notes_type] = options[:notes_type]
38
39
 
39
40
  return values if Helper.test?
40
41
 
@@ -91,7 +92,15 @@ module Fastlane
91
92
  FastlaneCore::ConfigItem.new(key: :status,
92
93
  env_name: "FL_HOCKEY_STATUS",
93
94
  description: "Download status: 1 = No user can download; 2 = Available for download",
94
- default_value: "2")
95
+ default_value: "2"),
96
+ FastlaneCore::ConfigItem.new(key: :notes_type,
97
+ env_name: "FL_HOCKEY_NOTES_TYPE",
98
+ description: "Notes type for your :notes, 0 = Textile, 1 = Markdown (default)",
99
+ default_value: "1"),
100
+ FastlaneCore::ConfigItem.new(key: :release_type,
101
+ env_name: "FL_HOCKEY_RELEASE_TYPE",
102
+ description: "Release type of the app",
103
+ default_value: "0")
95
104
  ]
96
105
  end
97
106
 
@@ -54,7 +54,13 @@ module Fastlane
54
54
 
55
55
 
56
56
  unless error
57
- thread.join # to wait for the request to be finished
57
+ begin
58
+ thread.join # to wait for the request to be finished
59
+ rescue
60
+ # We don't care about errors here
61
+ # https://github.com/KrauseFx/fastlane/issues/240
62
+ end
63
+
58
64
  if duration > 5
59
65
  Helper.log.info "fastlane.tools just saved you #{duration} minutes! 🎉".green
60
66
  else
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '0.12.5'
2
+ VERSION = '0.13.0'
3
3
  end
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: 0.12.5
4
+ version: 0.13.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-04-27 00:00:00.000000000 Z
11
+ date: 2015-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -142,42 +142,42 @@ dependencies:
142
142
  requirements:
143
143
  - - '>='
144
144
  - !ruby/object:Gem::Version
145
- version: 0.6.2
145
+ version: 0.7.1
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '>='
151
151
  - !ruby/object:Gem::Version
152
- version: 0.6.2
152
+ version: 0.7.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: deliver
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - '>='
158
158
  - !ruby/object:Gem::Version
159
- version: 0.9.3
159
+ version: 0.9.4
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '>='
165
165
  - !ruby/object:Gem::Version
166
- version: 0.9.3
166
+ version: 0.9.4
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: snapshot
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - '>='
172
172
  - !ruby/object:Gem::Version
173
- version: 0.7.0
173
+ version: 0.8.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - '>='
179
179
  - !ruby/object:Gem::Version
180
- version: 0.7.0
180
+ version: 0.8.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: frameit
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -198,28 +198,28 @@ dependencies:
198
198
  requirements:
199
199
  - - '>='
200
200
  - !ruby/object:Gem::Version
201
- version: 0.5.4
201
+ version: 0.5.5
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - '>='
207
207
  - !ruby/object:Gem::Version
208
- version: 0.5.4
208
+ version: 0.5.5
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: sigh
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - '>='
214
214
  - !ruby/object:Gem::Version
215
- version: 0.4.10
215
+ version: 0.5.0
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - '>='
221
221
  - !ruby/object:Gem::Version
222
- version: 0.4.10
222
+ version: 0.5.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: produce
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -394,6 +394,7 @@ files:
394
394
  - lib/fastlane/actions/fastlane_version.rb
395
395
  - lib/fastlane/actions/frameit.rb
396
396
  - lib/fastlane/actions/gcovr.rb
397
+ - lib/fastlane/actions/hall.rb
397
398
  - lib/fastlane/actions/hipchat.rb
398
399
  - lib/fastlane/actions/hockey.rb
399
400
  - lib/fastlane/actions/increment_build_number.rb