influxer 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +34 -58
- data/.travis.yml +6 -1
- data/Changelog.md +6 -2
- data/Gemfile +5 -2
- data/MIT-LICENSE +1 -1
- data/README.md +21 -21
- data/Rakefile +4 -2
- data/bin/console +8 -0
- data/gemfiles/rails32.gemfile +1 -1
- data/gemfiles/rails42.gemfile +1 -1
- data/gemfiles/rails5.gemfile +2 -2
- data/gemfiles/rails6.gemfile +7 -0
- data/influxer.gemspec +16 -9
- data/lib/influxer.rb +10 -9
- data/lib/influxer/client.rb +1 -1
- data/lib/influxer/config.rb +3 -3
- data/lib/influxer/engine.rb +1 -1
- data/lib/influxer/metrics/active_model3/model.rb +2 -4
- data/lib/influxer/metrics/metrics.rb +8 -8
- data/lib/influxer/metrics/quoting/timestamp.rb +13 -13
- data/lib/influxer/metrics/relation.rb +17 -13
- data/lib/influxer/metrics/relation/calculations.rb +1 -1
- data/lib/influxer/metrics/relation/time_query.rb +15 -14
- data/lib/influxer/metrics/relation/where_clause.rb +6 -4
- data/lib/influxer/metrics/scoping.rb +4 -4
- data/lib/influxer/metrics/scoping/current_scope.rb +2 -1
- data/lib/influxer/metrics/scoping/default.rb +1 -1
- data/lib/influxer/metrics/scoping/named.rb +2 -1
- data/lib/influxer/model.rb +4 -9
- data/lib/influxer/rails/client.rb +1 -1
- data/lib/influxer/version.rb +1 -1
- data/spec/cases/points_spec.rb +4 -4
- data/spec/cases/write_points_spec.rb +9 -9
- data/spec/client_spec.rb +4 -4
- data/spec/metrics/metrics_spec.rb +16 -16
- data/spec/metrics/relation_spec.rb +11 -11
- data/spec/metrics/scoping_spec.rb +2 -2
- data/spec/model/user_spec.rb +2 -2
- data/spec/spec_helper.rb +13 -14
- data/spec/support/shared_contexts/shared_precision.rb +1 -1
- metadata +27 -63
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe "Write points" do
|
6
6
|
before do
|
@@ -22,14 +22,14 @@ describe "Write points" do
|
|
22
22
|
|
23
23
|
let(:point) { 'test,user_id=1 val="2"' }
|
24
24
|
|
25
|
-
subject { metrics_class.write! user_id: 1, val:
|
25
|
+
subject { metrics_class.write! user_id: 1, val: "2" }
|
26
26
|
|
27
27
|
it "calls HTTP with correct params" do
|
28
28
|
subject
|
29
29
|
expect(
|
30
30
|
a_request(:post, "http://localhost:8086/write")
|
31
31
|
.with(
|
32
|
-
query: {
|
32
|
+
query: {u: "root", p: "root", precision: "ns", db: "db"},
|
33
33
|
body: point
|
34
34
|
)
|
35
35
|
).to have_been_made
|
@@ -37,14 +37,14 @@ describe "Write points" do
|
|
37
37
|
|
38
38
|
context "with retention policy" do
|
39
39
|
it "calls HTTP with correct params" do
|
40
|
-
metrics_class.set_retention_policy
|
40
|
+
metrics_class.set_retention_policy "yearly"
|
41
41
|
|
42
42
|
subject
|
43
43
|
|
44
44
|
expect(
|
45
45
|
a_request(:post, "http://localhost:8086/write")
|
46
46
|
.with(
|
47
|
-
query: {
|
47
|
+
query: {u: "root", p: "root", precision: "ns", db: "db", rp: "yearly"},
|
48
48
|
body: point
|
49
49
|
)
|
50
50
|
).to have_been_made
|
@@ -53,14 +53,14 @@ describe "Write points" do
|
|
53
53
|
|
54
54
|
context "with custom db" do
|
55
55
|
it "calls HTTP with correct params" do
|
56
|
-
metrics_class.set_database
|
56
|
+
metrics_class.set_database "another_db"
|
57
57
|
|
58
58
|
subject
|
59
59
|
|
60
60
|
expect(
|
61
61
|
a_request(:post, "http://localhost:8086/write")
|
62
62
|
.with(
|
63
|
-
query: {
|
63
|
+
query: {u: "root", p: "root", precision: "ns", db: "another_db"},
|
64
64
|
body: point
|
65
65
|
)
|
66
66
|
).to have_been_made
|
@@ -69,14 +69,14 @@ describe "Write points" do
|
|
69
69
|
|
70
70
|
context "with custom db" do
|
71
71
|
it "calls HTTP with correct params" do
|
72
|
-
metrics_class.set_precision
|
72
|
+
metrics_class.set_precision "ms"
|
73
73
|
|
74
74
|
subject
|
75
75
|
|
76
76
|
expect(
|
77
77
|
a_request(:post, "http://localhost:8086/write")
|
78
78
|
.with(
|
79
|
-
query: {
|
79
|
+
query: {u: "root", p: "root", precision: "ms", db: "db"},
|
80
80
|
body: point
|
81
81
|
)
|
82
82
|
).to have_been_made
|
data/spec/client_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe Influxer::Client do
|
6
6
|
let(:conf) { Influxer.config }
|
@@ -12,9 +12,9 @@ describe Influxer::Client do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it "passes config params" do
|
15
|
-
conf.username =
|
15
|
+
conf.username = "admin"
|
16
16
|
conf.port = 2222
|
17
|
-
expect(subject.config.username).to eq
|
17
|
+
expect(subject.config.username).to eq "admin"
|
18
18
|
expect(subject.config.port).to eq 2222
|
19
19
|
end
|
20
20
|
end
|
@@ -31,7 +31,7 @@ describe Influxer::Client do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should write data to cache with expiration" do
|
34
|
-
conf.cache = {
|
34
|
+
conf.cache = {expires_in: 90}
|
35
35
|
|
36
36
|
subject.query(q)
|
37
37
|
expect(Rails.cache.exist?("influxer:listseries")).to be_truthy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe Influxer::Metrics, :query do
|
6
6
|
let(:metrics) { described_class.new }
|
@@ -96,7 +96,7 @@ describe Influxer::Metrics, :query do
|
|
96
96
|
|
97
97
|
let(:dummy_metrics_3) do
|
98
98
|
Class.new(described_class) do
|
99
|
-
set_series
|
99
|
+
set_series(/^.*$/)
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
@@ -128,7 +128,7 @@ describe Influxer::Metrics, :query do
|
|
128
128
|
end
|
129
129
|
|
130
130
|
it "sets series as regexp" do
|
131
|
-
expect(dummy_metrics_3.new.series).to eq
|
131
|
+
expect(dummy_metrics_3.new.series).to eq "/^.*$/"
|
132
132
|
end
|
133
133
|
|
134
134
|
it "quotes series" do
|
@@ -181,13 +181,13 @@ describe Influxer::Metrics, :query do
|
|
181
181
|
end
|
182
182
|
|
183
183
|
it "inherits tags" do
|
184
|
-
expect(dummy2.tag_names).to include(
|
184
|
+
expect(dummy2.tag_names).to include("dummy_id", "host", "zone")
|
185
185
|
end
|
186
186
|
|
187
187
|
it "clones tags" do
|
188
188
|
dummy1.tags :status
|
189
|
-
expect(dummy1.tag_names).to include(
|
190
|
-
expect(dummy2.tag_names).not_to include(
|
189
|
+
expect(dummy1.tag_names).to include("status")
|
190
|
+
expect(dummy2.tag_names).not_to include("status")
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
@@ -217,13 +217,13 @@ describe Influxer::Metrics, :query do
|
|
217
217
|
expect(client)
|
218
218
|
.to receive(:write_point).with(
|
219
219
|
"dummies",
|
220
|
-
{
|
220
|
+
{tags: {dummy_id: 2, host: "test"}, values: {user_id: 1}, timestamp: nil},
|
221
221
|
nil,
|
222
222
|
nil,
|
223
223
|
nil
|
224
224
|
)
|
225
225
|
|
226
|
-
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host:
|
226
|
+
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host: "test")
|
227
227
|
expect(point.persisted?).to be_truthy
|
228
228
|
expect(point.user_id).to eq 1
|
229
229
|
expect(point.dummy_id).to eq 2
|
@@ -236,13 +236,13 @@ describe Influxer::Metrics, :query do
|
|
236
236
|
expect(client)
|
237
237
|
.to receive(:write_point).with(
|
238
238
|
"dummies",
|
239
|
-
{
|
239
|
+
{tags: {dummy_id: 2, host: "test"}, values: {user_id: 1}, timestamp: expected_time},
|
240
240
|
nil,
|
241
241
|
nil,
|
242
242
|
nil
|
243
243
|
)
|
244
244
|
|
245
|
-
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host:
|
245
|
+
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host: "test", timestamp: timestamp_test)
|
246
246
|
expect(point.persisted?).to be_truthy
|
247
247
|
expect(point.user_id).to eq 1
|
248
248
|
expect(point.dummy_id).to eq 2
|
@@ -256,13 +256,13 @@ describe Influxer::Metrics, :query do
|
|
256
256
|
expect(client)
|
257
257
|
.to receive(:write_point).with(
|
258
258
|
"dummies",
|
259
|
-
{
|
259
|
+
{tags: {dummy_id: 2, host: "test"}, values: {user_id: 1}, timestamp: (base_time.to_i * 1_000_000_000).to_i},
|
260
260
|
nil,
|
261
261
|
nil,
|
262
262
|
nil
|
263
263
|
)
|
264
264
|
|
265
|
-
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host:
|
265
|
+
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host: "test", timestamp: timestamp_test)
|
266
266
|
expect(point.persisted?).to be_truthy
|
267
267
|
expect(point.user_id).to eq 1
|
268
268
|
expect(point.dummy_id).to eq 2
|
@@ -278,13 +278,13 @@ describe Influxer::Metrics, :query do
|
|
278
278
|
expect(client)
|
279
279
|
.to receive(:write_point).with(
|
280
280
|
"dummies",
|
281
|
-
{
|
281
|
+
{tags: {dummy_id: 2, host: "test"}, values: {user_id: 1}, timestamp: expected_time},
|
282
282
|
nil,
|
283
283
|
nil,
|
284
284
|
nil
|
285
285
|
)
|
286
286
|
|
287
|
-
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host:
|
287
|
+
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host: "test", timestamp: timestamp_test)
|
288
288
|
expect(point.persisted?).to be_truthy
|
289
289
|
expect(point.user_id).to eq 1
|
290
290
|
expect(point.dummy_id).to eq 2
|
@@ -301,13 +301,13 @@ describe Influxer::Metrics, :query do
|
|
301
301
|
expect(client)
|
302
302
|
.to receive(:write_point).with(
|
303
303
|
"dummies",
|
304
|
-
{
|
304
|
+
{tags: {dummy_id: 2, host: "test"}, values: {user_id: 1}, timestamp: expected_time},
|
305
305
|
nil,
|
306
306
|
nil,
|
307
307
|
nil
|
308
308
|
)
|
309
309
|
|
310
|
-
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host:
|
310
|
+
point = dummy_metrics.write(user_id: 1, dummy_id: 2, host: "test", timestamp: timestamp_test)
|
311
311
|
expect(point.persisted?).to be_truthy
|
312
312
|
expect(point.user_id).to eq 1
|
313
313
|
expect(point.dummy_id).to eq 2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe Influxer::Relation, :query do
|
6
6
|
let(:rel) { Influxer::Relation.new DummyMetrics }
|
@@ -25,7 +25,7 @@ describe Influxer::Relation, :query do
|
|
25
25
|
|
26
26
|
describe "#merge!" do
|
27
27
|
it "merge multi values" do
|
28
|
-
r1 = rel.where(id: [1, 2], dummy:
|
28
|
+
r1 = rel.where(id: [1, 2], dummy: "qwe").time(:hour)
|
29
29
|
r2 = Influxer::Relation.new(DummyMetrics).where.not(user_id: 0).group(:user_id).order(user_id: :asc)
|
30
30
|
r1.merge!(r2)
|
31
31
|
expect(r1.to_sql)
|
@@ -69,7 +69,7 @@ describe Influxer::Relation, :query do
|
|
69
69
|
describe "#where" do
|
70
70
|
it "generate valid conditions from hash" do
|
71
71
|
Timecop.freeze(Time.now)
|
72
|
-
expect(rel.where(user_id: 1, dummy:
|
72
|
+
expect(rel.where(user_id: 1, dummy: "q", time: Time.now).to_sql).to eq "select * from \"dummy\" where (user_id = 1) and (dummy = 'q') and (time = #{(Time.now.to_r * 1_000_000_000).to_i})"
|
73
73
|
end
|
74
74
|
|
75
75
|
it "generate valid conditions from strings" do
|
@@ -127,7 +127,7 @@ describe Influxer::Relation, :query do
|
|
127
127
|
context "with unsupported time_precision" do
|
128
128
|
around do |ex|
|
129
129
|
old_precision = Influxer.config.time_precision
|
130
|
-
Influxer.config.time_precision =
|
130
|
+
Influxer.config.time_precision = "h"
|
131
131
|
ex.run
|
132
132
|
Influxer.config.time_precision = old_precision
|
133
133
|
end
|
@@ -150,7 +150,7 @@ describe Influxer::Relation, :query do
|
|
150
150
|
end
|
151
151
|
|
152
152
|
it "array tag values" do
|
153
|
-
expect(rel.where(dummy_id: [10,
|
153
|
+
expect(rel.where(dummy_id: [10, "some"]).to_sql).to eq "select * from \"dummy\" where (dummy_id = '10' or dummy_id = 'some')"
|
154
154
|
end
|
155
155
|
|
156
156
|
it "nil value" do
|
@@ -300,7 +300,7 @@ describe Influxer::Relation, :query do
|
|
300
300
|
end
|
301
301
|
|
302
302
|
it "generate order from string" do
|
303
|
-
expect(rel.order(
|
303
|
+
expect(rel.order("cpu desc, val asc").to_sql).to eq "select * from \"dummy\" order by cpu desc, val asc"
|
304
304
|
end
|
305
305
|
end
|
306
306
|
|
@@ -346,18 +346,18 @@ describe Influxer::Relation, :query do
|
|
346
346
|
|
347
347
|
context "with aliases" do
|
348
348
|
it "select count as alias" do
|
349
|
-
expect(rel.count(:val,
|
349
|
+
expect(rel.count(:val, "total").to_sql).to eq "select count(val) as total from \"dummy\""
|
350
350
|
end
|
351
351
|
|
352
352
|
it "select percentile as alias" do
|
353
|
-
expect(rel.percentile(:val, 90,
|
353
|
+
expect(rel.percentile(:val, 90, "p1").to_sql).to eq "select percentile(val, 90) as p1 from \"dummy\""
|
354
354
|
end
|
355
355
|
end
|
356
356
|
end
|
357
357
|
|
358
358
|
context "complex queries" do
|
359
359
|
it "group + where" do
|
360
|
-
expect(rel.count(
|
360
|
+
expect(rel.count("user_id").group(:traffic_source).fill(0).where(user_id: 123).past("28d").to_sql)
|
361
361
|
.to eq "select count(user_id) from \"dummy\" where (user_id = 123) and (time > now() - 28d) " \
|
362
362
|
"group by traffic_source fill(0)"
|
363
363
|
end
|
@@ -378,7 +378,7 @@ describe Influxer::Relation, :query do
|
|
378
378
|
|
379
379
|
describe "#empty?" do
|
380
380
|
it "return false if has points" do
|
381
|
-
allow(client).to receive(:query) { [{
|
381
|
+
allow(client).to receive(:query) { [{"values" => [{time: 1, id: 2}]}] }
|
382
382
|
expect(rel.empty?).to be_falsey
|
383
383
|
expect(rel.present?).to be_truthy
|
384
384
|
end
|
@@ -406,7 +406,7 @@ describe Influxer::Relation, :query do
|
|
406
406
|
end
|
407
407
|
|
408
408
|
it "with tags" do
|
409
|
-
expect(rel.where(dummy_id: 1, host:
|
409
|
+
expect(rel.where(dummy_id: 1, host: "eu").delete_all)
|
410
410
|
.to eq "drop series from \"dummy\" where (dummy_id = '1') and (host = 'eu')"
|
411
411
|
end
|
412
412
|
end
|
data/spec/model/user_spec.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe User do
|
6
|
-
let(:user) { described_class.create age: 20, gender: 1, email:
|
6
|
+
let(:user) { described_class.create age: 20, gender: 1, email: "user@example.com" }
|
7
7
|
subject { user }
|
8
8
|
|
9
9
|
specify { is_expected.to respond_to :metrics }
|
data/spec/spec_helper.rb
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__),
|
3
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
4
4
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
5
5
|
|
6
|
-
ENV["RAILS_ENV"] ||=
|
6
|
+
ENV["RAILS_ENV"] ||= "test"
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
require "rspec"
|
9
|
+
require "webmock/rspec"
|
10
|
+
|
11
|
+
begin
|
12
|
+
require "pry-byebug"
|
13
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
12
14
|
end
|
13
15
|
|
14
|
-
require
|
15
|
-
require "webmock/rspec"
|
16
|
-
require 'pry-byebug'
|
17
|
-
require 'timecop'
|
16
|
+
require "timecop"
|
18
17
|
|
19
|
-
require
|
20
|
-
require
|
18
|
+
require "active_record"
|
19
|
+
require "sqlite3"
|
21
20
|
|
22
21
|
require "influxer"
|
23
22
|
|
@@ -33,7 +32,7 @@ class Rails
|
|
33
32
|
end
|
34
33
|
|
35
34
|
def env
|
36
|
-
|
35
|
+
"test"
|
37
36
|
end
|
38
37
|
end
|
39
38
|
end
|
@@ -42,7 +41,7 @@ require "influxer/rails/client"
|
|
42
41
|
|
43
42
|
ActiveRecord::Base.send :include, Influxer::Model
|
44
43
|
|
45
|
-
ActiveRecord::Base.establish_connection(adapter:
|
44
|
+
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
|
46
45
|
|
47
46
|
Dir["#{File.dirname(__FILE__)}/support/metrics/*.rb"].each { |f| require f }
|
48
47
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlad Dem
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: anyway_config
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.3.8
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.3.8
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: rake
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,61 +81,47 @@ dependencies:
|
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '10.1'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: activerecord
|
84
|
+
name: rspec
|
113
85
|
requirement: !ruby/object:Gem::Requirement
|
114
86
|
requirements:
|
115
87
|
- - ">="
|
116
88
|
- !ruby/object:Gem::Version
|
117
|
-
version: 3.
|
89
|
+
version: 3.1.0
|
118
90
|
type: :development
|
119
91
|
prerelease: false
|
120
92
|
version_requirements: !ruby/object:Gem::Requirement
|
121
93
|
requirements:
|
122
94
|
- - ">="
|
123
95
|
- !ruby/object:Gem::Version
|
124
|
-
version: 3.
|
96
|
+
version: 3.1.0
|
125
97
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
98
|
+
name: standard
|
127
99
|
requirement: !ruby/object:Gem::Requirement
|
128
100
|
requirements:
|
129
|
-
- - "
|
101
|
+
- - "~>"
|
130
102
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
103
|
+
version: 0.0.39
|
132
104
|
type: :development
|
133
105
|
prerelease: false
|
134
106
|
version_requirements: !ruby/object:Gem::Requirement
|
135
107
|
requirements:
|
136
|
-
- - "
|
108
|
+
- - "~>"
|
137
109
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
110
|
+
version: 0.0.39
|
139
111
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
112
|
+
name: rubocop-md
|
141
113
|
requirement: !ruby/object:Gem::Requirement
|
142
114
|
requirements:
|
143
|
-
- - "
|
115
|
+
- - "~>"
|
144
116
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
117
|
+
version: 0.2.0
|
146
118
|
type: :development
|
147
119
|
prerelease: false
|
148
120
|
version_requirements: !ruby/object:Gem::Requirement
|
149
121
|
requirements:
|
150
|
-
- - "
|
122
|
+
- - "~>"
|
151
123
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
124
|
+
version: 0.2.0
|
153
125
|
- !ruby/object:Gem::Dependency
|
154
126
|
name: webmock
|
155
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,20 +136,6 @@ dependencies:
|
|
164
136
|
- - "~>"
|
165
137
|
- !ruby/object:Gem::Version
|
166
138
|
version: '2.1'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rubocop
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0.52'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0.52'
|
181
139
|
description: InfluxDB the Rails way
|
182
140
|
email:
|
183
141
|
- dementiev.vm@gmail.com
|
@@ -194,9 +152,11 @@ files:
|
|
194
152
|
- MIT-LICENSE
|
195
153
|
- README.md
|
196
154
|
- Rakefile
|
155
|
+
- bin/console
|
197
156
|
- gemfiles/rails32.gemfile
|
198
157
|
- gemfiles/rails42.gemfile
|
199
158
|
- gemfiles/rails5.gemfile
|
159
|
+
- gemfiles/rails6.gemfile
|
200
160
|
- influxer.gemspec
|
201
161
|
- lib/influxer.rb
|
202
162
|
- lib/influxer/client.rb
|
@@ -238,7 +198,12 @@ files:
|
|
238
198
|
homepage: http://github.com/palkan/influxer
|
239
199
|
licenses:
|
240
200
|
- MIT
|
241
|
-
metadata:
|
201
|
+
metadata:
|
202
|
+
bug_tracker_uri: http://github.com/palkan/influxer/issues
|
203
|
+
changelog_uri: https://github.com/palkan/influxer/blob/master/Changelog.md
|
204
|
+
documentation_uri: http://github.com/palkan/influxer
|
205
|
+
homepage_uri: http://github.com/palkan/influxer
|
206
|
+
source_code_uri: http://github.com/palkan/influxer
|
242
207
|
post_install_message:
|
243
208
|
rdoc_options: []
|
244
209
|
require_paths:
|
@@ -247,15 +212,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
212
|
requirements:
|
248
213
|
- - ">="
|
249
214
|
- !ruby/object:Gem::Version
|
250
|
-
version:
|
215
|
+
version: 2.4.0
|
251
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
217
|
requirements:
|
253
218
|
- - ">="
|
254
219
|
- !ruby/object:Gem::Version
|
255
220
|
version: '0'
|
256
221
|
requirements: []
|
257
|
-
|
258
|
-
rubygems_version: 2.7.4
|
222
|
+
rubygems_version: 3.0.3
|
259
223
|
signing_key:
|
260
224
|
specification_version: 4
|
261
225
|
summary: InfluxDB for Rails
|