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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbfd69a0ac6225e4fd65cc04c490397ce572eec701573884f5cd492c2c300cb
|
4
|
+
data.tar.gz: d9877717f437d9cb2a828abdea87e9a95dcc0fa8c5588750eb6040b8125adcfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
66
|
-
|
67
|
-
-F
|
68
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|