fastlane 0.1.5 → 0.1.6

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: 8abc6739e97135815d7e4ca6f8a90c38e055a011
4
- data.tar.gz: 6d24acc8ab9f92178854696d4fc7d6ad1d348e24
3
+ metadata.gz: e7e3c1f918b6ff0497e9e8ca5ac2b56913dc45a9
4
+ data.tar.gz: bb9af362963253a8c426361ba060153f4c866567
5
5
  SHA512:
6
- metadata.gz: 8d5f9205bac106e16461cfe72c913d858654a30320c2a966f7b69410d83e99407cb369cb309aea8c43c8181efb2e3a520d688902c481c0ea9cd25b1bba1b282e
7
- data.tar.gz: 19c709dcbb89bc92e94698cb004779ef60b5f030c8351319a21c040c15b7e98627fb899030797b813fa077085c0058c925e2da82575ed761aa6ae73b1f30f481
6
+ metadata.gz: 517c23f6e525798af6bd44c2bac02925a55bbd6d2f08a7cba6560d85562e9223fbfc0fffd50fa043db34b8e297b665d1a4cdea9b09224019a82832c1c062b04f
7
+ data.tar.gz: f4d2e3c8e35beb9c7914b86df6dd850a6592ac2aedb8df208fa82fcae1ded963f57e9594c3e02b777b862550c060456075fbaa1d4f5efc79646e039f9e00ceb1
data/README.md CHANGED
@@ -238,6 +238,17 @@ Send a message to **#channel** (by default) or a direct message to **@username**
238
238
  })
239
239
  ```
240
240
 
241
+ #### [HipChat](http://www.hipchat.com/)
242
+ Send a message to **room** (by default) or a direct message to **@username** with success (green) or failure (red) status.
243
+
244
+ ```ruby
245
+ hipchat({
246
+ message: "App successfully released!",
247
+ channel: "Room or @username",
248
+ success: true
249
+ })
250
+ ```
251
+
241
252
  #### [Testmunk](http://testmunk.com)
242
253
  Run your functional tests on real iOS devices over the cloud (for free on an iPod). With this simple [testcase](https://github.com/testmunk/TMSample/blob/master/testcases/smoke/smoke_features.zip) you can ensure your app launches and there is no crash at launch. Tests can be extended with [Testmunk's library](http://docs.testmunk.com/en/latest/steps.html) or custom steps. More details about this action can be found in [`testmunk.rb`](https://github.com/KrauseFx/fastlane/blob/master/lib/fastlane/actions/testmunk.rb).
243
254
  ```ruby
@@ -423,11 +434,16 @@ end
423
434
  ```
424
435
 
425
436
  #### Snapshot
426
- To skip cleaning the project on every build
437
+ To skip cleaning the project on every build:
427
438
  ```ruby
428
439
  snapshot :noclean
429
440
  ```
430
441
 
442
+ To show the output of `UIAutomation`:
443
+ ```ruby
444
+ snapshot :verbose
445
+ ```
446
+
431
447
  #### Run multiple ```lanes```
432
448
  You can run multiple ```lanes``` (in the given order) using
433
449
  ```
@@ -0,0 +1,41 @@
1
+ module Fastlane
2
+ module Actions
3
+ module SharedValues
4
+
5
+ end
6
+
7
+ class HipchatAction
8
+ def self.run(params)
9
+ options = { message: '',
10
+ success: true,
11
+ channel: nil
12
+ }.merge(params.first || {})
13
+
14
+ require 'hipchat'
15
+
16
+ api_token = ENV["HIPCHAT_API_TOKEN"]
17
+
18
+ unless api_token
19
+ Helper.log.fatal "Please add 'ENV[\"HIPCHAT_API_TOKEN\"] = \"your token\"' to your Fastfile's `before_all` section.".red
20
+ raise "No HIPCHAT_API_TOKEN given.".red
21
+ end
22
+
23
+ client = HipChat::Client.new(api_token, :api_version => 'v2')
24
+ channel = options[:channel]
25
+ color = (options[:success] ? 'green' : 'red')
26
+
27
+ if channel.to_s.start_with?('@')
28
+ #private message
29
+ #currently hipchat-rb release wrapper doesn´t allow to send private html message we have to send the raw message
30
+ channel.slice!(0)
31
+ client.user(channel).send(options[:message])
32
+ else
33
+ #room message
34
+ message = "<table><tr><td><img src=\"https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png\" style=\"width:50px;height:auto\"></td><td>" + options[:message] + "</td></tr></table>"
35
+ client[channel].send('fastlane',message, :message_format => 'html', :color => color)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
41
+ end
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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.1.5
4
+ version: 0.1.6
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-01-31 00:00:00.000000000 Z
11
+ date: 2015-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: hipchat
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '1.4'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '1.4'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: credentials_manager
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -324,6 +338,7 @@ files:
324
338
  - lib/fastlane/actions/crashlytics.rb
325
339
  - lib/fastlane/actions/deliver.rb
326
340
  - lib/fastlane/actions/frameit.rb
341
+ - lib/fastlane/actions/hipchat.rb
327
342
  - lib/fastlane/actions/hockey.rb
328
343
  - lib/fastlane/actions/increment_build_number.rb
329
344
  - lib/fastlane/actions/install_cocapods.rb