fastlane-plugin-influxdb 0.1.0 → 0.2.0

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
- SHA1:
3
- metadata.gz: effe6778f049c67bc0e6e3874011ac9a85e821d2
4
- data.tar.gz: 85dd97bb9212feaaf255309eb0d9ababd7bdfa5a
2
+ SHA256:
3
+ metadata.gz: efaa60acfee84a6661a6f9be519ec5d1c2993e3b9ec6e7942b5e547aa18d8c37
4
+ data.tar.gz: 96320e99b61b5d98d1829dbabe2b61a22d1a97024e81eb8b7e043ffd492e3464
5
5
  SHA512:
6
- metadata.gz: 3e6304fe63640bb3dbe7e5570320cdf9add7491695dd1a63eaa75016c6325593d231c76ebd192332ad14b8b59f0dfb79789cc16e23130c9d02e44f6666efa8c3
7
- data.tar.gz: 6853d43779e3161717f7ab45bb2808f58141614ad9708ac1b089c90620590cb064273a7c1f0a63ee52385c0b9e607fdee681ef793d4f9d085217bb70e3cceb06
6
+ metadata.gz: 100977f8ae5f84cc69d4fdaa0344877d2f51744876c2de20cae1b33502539ead5f35f41a3801371f77781f7f9a7eb2d05b24a9a48c61a6014f6eee02ec68e5da
7
+ data.tar.gz: fde81e0453c292a3f62d7e8dd864a3d7b66742a40493427f447de39f9bb7ef5c7a0bdbaad0c68d6443a6cc08664511ec33dee870b3d2af04b999606a04e1791e
data/README.md CHANGED
@@ -9,13 +9,16 @@ Post values to InfluxDB from your lane.
9
9
 
10
10
  ```ruby
11
11
  lane :your_lane do
12
- indluxdb(
12
+ influxdb(
13
13
  db_name: "sample_db",
14
14
  host: "fastlane.influxdb.com",
15
15
  port: 1234,
16
+ use_ssl: true,
17
+ verify_ssl: true,
16
18
  username: "sample",
17
19
  password: "password",
18
20
  table_name: "metrics",
21
+ tags: {tag1: "foo", tag2: "bar"},
19
22
  values: {a: 100, b: 200, c: 300}
20
23
  )
21
24
  end
@@ -8,14 +8,16 @@ module Fastlane
8
8
  params[:db_name],
9
9
  host: params[:host],
10
10
  port: params[:port],
11
+ use_ssl: params[:use_ssl],
12
+ verify_ssl: params[:verify_ssl],
11
13
  username: params[:username],
12
14
  password: params[:password]
13
15
  )
14
16
 
15
17
  begin
16
- client.write_point(params[:table_name], { values: params[:values] })
18
+ client.write_point(params[:table_name], { tags: params[:tags], values: params[:values] })
17
19
  UI.success("Successfully posted values to '#{params[:table_name]}'")
18
- rescue => e
20
+ rescue StandardError => e
19
21
  response = JSON.parse(e.to_s)
20
22
  UI.user_error!(response['error'])
21
23
  end
@@ -55,6 +57,18 @@ module Fastlane
55
57
  optional: false,
56
58
  default_value: 8086,
57
59
  type: Integer),
60
+ FastlaneCore::ConfigItem.new(key: :use_ssl,
61
+ env_name: "INFLUXDB_USE_SSL",
62
+ description: "Whether or not to use SSL (HTTPS)",
63
+ optional: true,
64
+ default_value: false,
65
+ is_string: false),
66
+ FastlaneCore::ConfigItem.new(key: :verify_ssl,
67
+ env_name: "INFLUXDB_VERIFY_SSL",
68
+ description: "Verify certificate when using SSL",
69
+ optional: true,
70
+ default_value: true,
71
+ is_string: false),
58
72
  FastlaneCore::ConfigItem.new(key: :username,
59
73
  env_name: "INFLUXDB_USERNAME",
60
74
  description: "User name of InfluxDB",
@@ -69,7 +83,11 @@ module Fastlane
69
83
  env_name: "INFLUXDB_TABLE_NAME",
70
84
  description: "Table name of InfluxDB",
71
85
  optional: false,
72
- type: String),
86
+ type: String),
87
+ FastlaneCore::ConfigItem.new(key: :tags,
88
+ description: "Tags to post",
89
+ optional: true,
90
+ type: Hash),
73
91
  FastlaneCore::ConfigItem.new(key: :values,
74
92
  description: "Values to post",
75
93
  optional: false,
@@ -79,13 +97,15 @@ module Fastlane
79
97
 
80
98
  def self.example_code
81
99
  [
82
- 'indluxdb(
100
+ 'influxdb(
83
101
  db_name: "sample_db",
84
102
  host: "fastlane.influxdb.com",
85
103
  port: 1234,
104
+ use_ssl: true,
86
105
  username: "sample",
87
106
  password: "password",
88
107
  table_name: "metrics",
108
+ tags: {tag1: "foo", tag2: "bar"}
89
109
  values: {a: 100, b: 200, c: 300}
90
110
  )'
91
111
  ]
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Influxdb
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-influxdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - giginet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-06 00:00:00.000000000 Z
11
+ date: 2018-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: pry
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,21 +25,21 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: fastlane
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 2.12.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 2.12.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: influxdb
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubocop
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,21 +81,21 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: fastlane
84
+ name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 2.12.0
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 2.12.0
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: influxdb
98
+ name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -140,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.5.2
143
+ rubygems_version: 2.7.3
144
144
  signing_key:
145
145
  specification_version: 4
146
- summary: Post values to IndluxDB
146
+ summary: Post values to InfluxDB
147
147
  test_files: []