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: cbe5875464d547d2277a5e03c38b604814bad5b1ed029d94e884c2ee854f48cf
4
- data.tar.gz: d3e855c46a80244909a0b34a835e4e0de369c9ef373598b0feaff400fd693f1d
3
+ metadata.gz: ef0fe11b107b2183b646a24c696261e7bbb934581f12072e12b24625023af84b
4
+ data.tar.gz: 37ccf68b35557fc386ae66a8c1c19675f0102c8b0a102c4ed8537d6fc0b91580
5
5
  SHA512:
6
- metadata.gz: b1c0f9796dce60017b6b7829006744f9f08c043bcf599ca26a60941a0de5817dc811a65d737b1352493fbd341923e1d6c812b26963928569d85dcc47322ee75d
7
- data.tar.gz: 6a067fb6a499b732ea5a2c2ea4ffab4d493641063848f95036f463733537d87e389b51983b85b1da115e41f6a345706d89c5c1cdbb23a74707c3e5a446c145bb
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 = { 'User-Agent' => 'fastlane-mackerel_api' }
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module MackerelApi
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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-06 00:00:00.000000000 Z
11
+ date: 2020-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry