fastlane-plugin-rollbar 0.1.8 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cb4b3f8d2d206c72f55cb3b810e96d1ac5e70fbe702444c92d03f56af12a4f7
4
- data.tar.gz: 997924d620680c131e91db0c85fc138d1de8fcaa1cafad4de25fae585faa7454
3
+ metadata.gz: cfbfd69a0ac6225e4fd65cc04c490397ce572eec701573884f5cd492c2c300cb
4
+ data.tar.gz: d9877717f437d9cb2a828abdea87e9a95dcc0fa8c5588750eb6040b8125adcfd
5
5
  SHA512:
6
- metadata.gz: c9b1bfc3e62c875b4c31eab1c080b4b4ed8d81230f1eb09614e286b0e521f0a4da85b2d9ed035b77a4477deee4d0b4c0a2ad830040d5d14acef6e38a8025e067
7
- data.tar.gz: b6602d123ccee4968638552e805aba403c8d1db00aca02eab756be8ae6e20035a55f1438a29f4594cfe53cf756f2f31c54f3d54b7981ccf5bbc242cb6ba65193
6
+ metadata.gz: f2de52a8bb04bca59089e104fb6def392d041089e18d8b55e59b33565f55df4cf5720be4ade9857576b457d86d86666f2594fe571ad92150d06864adf5d69249
7
+ data.tar.gz: c14403d9b730f0cc3cef31a806c1971658e938fb75592747772680c9eed33ddf5c55af667ee4daa9b4135079a26b3ba2f3c9266f31503efe523e78f3d700a90d
@@ -11,6 +11,10 @@ module Fastlane
11
11
  params[:api_key],
12
12
  params[:environment],
13
13
  params[:revision],
14
+ params[:local_username],
15
+ params[:rollbar_username],
16
+ params[:comment],
17
+ params[:status]
14
18
  )
15
19
  end
16
20
 
@@ -35,7 +39,10 @@ module Fastlane
35
39
  FastlaneCore::ConfigItem.new(key: :api_key, description: 'Rollbar API key', optional: false, type: String),
36
40
  FastlaneCore::ConfigItem.new(key: :environment, description: 'Environment', optional: false, type: String),
37
41
  FastlaneCore::ConfigItem.new(key: :revision, description: 'Git SHA of revision being deployed', optional: false, type: String),
38
- # FastlaneCore::ConfigItem.new(key: :bundle_identifier, description: 'Bundle identifier', optional: false, type: String)
42
+ FastlaneCore::ConfigItem.new(key: :rollbar_username, description: 'Rollbar username of person who deployed', optional: true, type: String),
43
+ FastlaneCore::ConfigItem.new(key: :local_username, description: 'Local username of person who deployed. Displayed in web app if no rollbar_username was specified.', optional: true, type: String),
44
+ FastlaneCore::ConfigItem.new(key: :comment, description: 'Additional text to include with the deploy', optional: true, type: String),
45
+ FastlaneCore::ConfigItem.new(key: :status, description: 'Status of the deployment - started, succeeded (default), failed, or timed_out', optional: true, type: String)
39
46
  ]
40
47
  end
41
48
 
@@ -60,12 +60,22 @@ module Fastlane
60
60
  -F mapping=@#{proguard_path}")
61
61
  end
62
62
 
63
- def self.report_deploy(api_key, environment, revision)
63
+ def self.report_deploy(api_key, environment, revision, local_username, rollbar_username, comment, status)
64
64
  UI.message('Report deploy to Rollbar')
65
- Action.sh("curl #{API_DEPLOY_URL} \
66
- -F access_token=#{api_key} \
67
- -F environment=#{environment} \
68
- -F revision=#{revision}")
65
+ action_params = ["curl #{API_DEPLOY_URL} -F access_token=#{api_key} -F environment=#{environment} -F revision=#{revision}"]
66
+ if local_username
67
+ action_params.push("-F local_username=#{local_username}")
68
+ end
69
+ if rollbar_username
70
+ action_params.push("-F rollbar_username=#{rollbar_username}")
71
+ end
72
+ if comment
73
+ action_params.push("-F comment=#{comment}")
74
+ end
75
+ if status
76
+ action_params.push("-F status=#{status}")
77
+ end
78
+ Action.sh(action_params.join(" "))
69
79
  end
70
80
 
71
81
  def self.show_message
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Rollbar
5
- VERSION = '0.1.8'.freeze
5
+ VERSION = '0.1.9'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgrafov Denis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-15 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler