influxdb-rails 0.4.1 → 0.4.2
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +38 -41
- data/README.md +6 -0
- data/lib/influxdb-rails.rb +4 -1
- data/lib/influxdb/rails/configuration.rb +11 -4
- data/lib/influxdb/rails/railtie.rb +1 -1
- data/lib/influxdb/rails/version.rb +1 -1
- data/pkg/influxdb-rails-0.1.11.gem +0 -0
- data/pkg/influxdb-rails-0.1.12.gem +0 -0
- data/pkg/influxdb-rails-0.4.0.gem +0 -0
- data/spec/support/rails4/log/test.log +5987 -0
- data/spec/support/rails5/log/test.log +2411 -245
- data/spec/unit/configuration_spec.rb +44 -0
- metadata +15 -11
- data/pkg/influxdb-rails-0.4.1.gem +0 -0
@@ -42,4 +42,48 @@ RSpec.describe InfluxDB::Rails::Configuration do
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
+
describe "#open_timeout" do
|
46
|
+
it "defaults to 5" do
|
47
|
+
InfluxDB::Rails.configure do |config|
|
48
|
+
end
|
49
|
+
expect(InfluxDB::Rails.configuration.open_timeout).to eql(5)
|
50
|
+
end
|
51
|
+
|
52
|
+
it "can be updated" do
|
53
|
+
InfluxDB::Rails.configure do |config|
|
54
|
+
config.open_timeout = 5
|
55
|
+
end
|
56
|
+
expect(InfluxDB::Rails.configuration.open_timeout).to eql(5)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe "#read_timeout" do
|
61
|
+
it "defaults to 300" do
|
62
|
+
InfluxDB::Rails.configure do |config|
|
63
|
+
end
|
64
|
+
expect(InfluxDB::Rails.configuration.read_timeout).to eql(300)
|
65
|
+
end
|
66
|
+
|
67
|
+
it "can be updated" do
|
68
|
+
InfluxDB::Rails.configure do |config|
|
69
|
+
config.read_timeout = 5
|
70
|
+
end
|
71
|
+
expect(InfluxDB::Rails.configuration.read_timeout).to eql(5)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe "#max_delay" do
|
76
|
+
it "defaults to 30" do
|
77
|
+
InfluxDB::Rails.configure do |config|
|
78
|
+
end
|
79
|
+
expect(InfluxDB::Rails.configuration.max_delay).to eql(30)
|
80
|
+
end
|
81
|
+
|
82
|
+
it "can be updated" do
|
83
|
+
InfluxDB::Rails.configure do |config|
|
84
|
+
config.max_delay = 5
|
85
|
+
end
|
86
|
+
expect(InfluxDB::Rails.configuration.max_delay).to eql(5)
|
87
|
+
end
|
88
|
+
end
|
45
89
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Persen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: influxdb
|
@@ -170,13 +170,16 @@ files:
|
|
170
170
|
- lib/influxdb/rails/version.rb
|
171
171
|
- lib/rails/generators/influxdb/influxdb_generator.rb
|
172
172
|
- lib/rails/generators/influxdb/templates/initializer.rb
|
173
|
-
- pkg/influxdb-rails-0.
|
173
|
+
- pkg/influxdb-rails-0.1.11.gem
|
174
|
+
- pkg/influxdb-rails-0.1.12.gem
|
175
|
+
- pkg/influxdb-rails-0.4.0.gem
|
174
176
|
- spec/controllers/widgets_controller_spec.rb
|
175
177
|
- spec/integration/exceptions_spec.rb
|
176
178
|
- spec/integration/integration_helper.rb
|
177
179
|
- spec/integration/metrics_spec.rb
|
178
180
|
- spec/spec_helper.rb
|
179
181
|
- spec/support/rails4/app.rb
|
182
|
+
- spec/support/rails4/log/test.log
|
180
183
|
- spec/support/rails5/app.rb
|
181
184
|
- spec/support/rails5/log/test.log
|
182
185
|
- spec/unit/backtrace_spec.rb
|
@@ -208,15 +211,16 @@ signing_key:
|
|
208
211
|
specification_version: 4
|
209
212
|
summary: InfluxDB bindings for Ruby on Rails.
|
210
213
|
test_files:
|
211
|
-
- spec/integration/metrics_spec.rb
|
212
|
-
- spec/integration/exceptions_spec.rb
|
213
|
-
- spec/integration/integration_helper.rb
|
214
|
-
- spec/controllers/widgets_controller_spec.rb
|
215
|
-
- spec/spec_helper.rb
|
216
|
-
- spec/unit/configuration_spec.rb
|
217
|
-
- spec/unit/influxdb_rails_spec.rb
|
218
214
|
- spec/unit/exception_presenter_spec.rb
|
215
|
+
- spec/unit/influxdb_rails_spec.rb
|
219
216
|
- spec/unit/backtrace_spec.rb
|
220
|
-
- spec/
|
217
|
+
- spec/unit/configuration_spec.rb
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
- spec/controllers/widgets_controller_spec.rb
|
221
220
|
- spec/support/rails5/log/test.log
|
222
221
|
- spec/support/rails5/app.rb
|
222
|
+
- spec/support/rails4/log/test.log
|
223
|
+
- spec/support/rails4/app.rb
|
224
|
+
- spec/integration/metrics_spec.rb
|
225
|
+
- spec/integration/integration_helper.rb
|
226
|
+
- spec/integration/exceptions_spec.rb
|
Binary file
|