fastlane-plugin-mackerel_api 0.1.0 → 0.1.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef0fe11b107b2183b646a24c696261e7bbb934581f12072e12b24625023af84b
|
4
|
+
data.tar.gz: 37ccf68b35557fc386ae66a8c1c19675f0102c8b0a102c4ed8537d6fc0b91580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d62e19c7e150ec7e86a736f67a03fc1690ceeae20aa1b046906de338b9ce38464a061e5d2310ec16bec3daecbf8db8380f71d938f1ebf2971ffb1413758c2634
|
7
|
+
data.tar.gz: 8e9d6712c01b0579817594da147218f64670499870f307358b40273e4bcf0ea8ed205fc95a4e007cae59158e1448a3aaa62e53cbc41b64513e0b59e4350d94b5
|
@@ -47,7 +47,7 @@ module Fastlane
|
|
47
47
|
else
|
48
48
|
UI.error("---")
|
49
49
|
UI.error("Request failed:\n#{http_method}: #{url}")
|
50
|
-
UI.error("Headers:\n#{headers}")
|
50
|
+
UI.error("Headers:\n#{headers.map { |key, value| key == 'X-Api-Key' ? ['X-Api-Key', '********'] : [key, value] }.to_h}")
|
51
51
|
UI.error("---")
|
52
52
|
UI.error("Response:")
|
53
53
|
UI.error(response.body)
|
@@ -90,6 +90,7 @@ module Fastlane
|
|
90
90
|
sensitive: true,
|
91
91
|
code_gen_sensitive: true,
|
92
92
|
is_string: true,
|
93
|
+
default_value: ENV["MACKEREL_API_KEY"],
|
93
94
|
default_value_dynamic: true,
|
94
95
|
optional: false),
|
95
96
|
FastlaneCore::ConfigItem.new(key: :http_method,
|
@@ -2,7 +2,10 @@ module Fastlane
|
|
2
2
|
module Helper
|
3
3
|
class MackerelApiHelper
|
4
4
|
def self.construct_headers(api_key, overrides)
|
5
|
-
headers = {
|
5
|
+
headers = {
|
6
|
+
'User-Agent' => 'fastlane-mackerel_api',
|
7
|
+
'Content-Type' => 'application/json'
|
8
|
+
}
|
6
9
|
headers['X-Api-Key'] = api_key if api_key
|
7
10
|
headers.merge(overrides || {})
|
8
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-mackerel_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yutailang0119
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|