influxdb-rails 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe InfluxDB::Rails::Backtrace do
3
+ RSpec.describe InfluxDB::Rails::Backtrace do
4
4
  before do
5
5
  @raw_backtrace = [
6
6
  "/var/www/current/app/models/foo.rb:10:in `bar'",
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe InfluxDB::Rails::Configuration do
3
+ RSpec.describe InfluxDB::Rails::Configuration do
4
4
  before do
5
5
  @configuration = InfluxDB::Rails::Configuration.new
6
6
  end
@@ -26,4 +26,20 @@ describe InfluxDB::Rails::Configuration do
26
26
  expect(@configuration.ignore_user_agent?("Googlebot/2.1")).to be_falsey
27
27
  end
28
28
  end
29
+
30
+ describe "#retry" do
31
+ it "defaults to nil" do
32
+ InfluxDB::Rails.configure do |config|
33
+ end
34
+ expect(InfluxDB::Rails.configuration.retry).to be_nil
35
+ end
36
+
37
+ it "can be updated" do
38
+ InfluxDB::Rails.configure do |config|
39
+ config.retry = 5
40
+ end
41
+ expect(InfluxDB::Rails.configuration.retry).to eql(5)
42
+ end
43
+ end
44
+
29
45
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe InfluxDB::Rails::ExceptionPresenter do
3
+ RSpec.describe InfluxDB::Rails::ExceptionPresenter do
4
4
  before do
5
5
  begin
6
6
  1/0
@@ -20,50 +20,4 @@ describe InfluxDB::Rails::ExceptionPresenter do
20
20
  expect(exception_presenter).not_to be_nil
21
21
  end
22
22
  end
23
-
24
- # describe "#to_json" do
25
- # it "should return a JSON string" do
26
- # exception_presenter = InfluxDB::ExceptionPresenter.new(@exception)
27
- # json = JSON.parse(exception_presenter.to_json)
28
-
29
- # json["message"].should == "divided by 0"
30
- # json["time"].should_not be_nil
31
- # json["backtrace"].should_not be_nil
32
- # end
33
-
34
- # it "should include a custom hash if defined in the influxdb config" do
35
- # InfluxDB.configure do |config|
36
- # config.define_custom_exception_data do |exception_presenter|
37
- # if exception_presenter.exception.class == ZeroDivisionError
38
- # exception_presenter.hash = "some_hash"
39
- # exception_presenter.custom_data[:extra_info] = "blah"
40
- # end
41
- # end
42
- # end
43
-
44
- # exception_presenter = InfluxDB::ExceptionPresenter.new(@exception)
45
- # json = JSON.parse(exception_presenter.to_json)
46
- # json["hash"].should == "some_hash"
47
- # json["custom_data"]["extra_info"].should == "blah"
48
- # end
49
-
50
- # describe "environment variables" do
51
- # it "should be filtered based on the contents of environment_variable_filters" do
52
- # InfluxDB.configure do |config|
53
- # config.environment_variable_filters = [/password/i]
54
- # end
55
-
56
- # exception_presenter = InfluxDB::ExceptionPresenter.new(
57
- # :exception => @exception,
58
- # :environment_variables => {
59
- # "IMPORTANT_PASSWORD" => "sesame",
60
- # "EDITOR" => "vim"
61
- # })
62
-
63
- # json = JSON.parse(exception_presenter.to_json)
64
- # json["environment_variables"].size.should == 1
65
- # json["environment_variables"].should == {"EDITOR" => "vim"}
66
- # end
67
- # end
68
- # end
69
23
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe InfluxDB::Rails do
3
+ RSpec.describe InfluxDB::Rails do
4
4
  before do
5
5
  InfluxDB::Rails.configure { |config| config.ignored_environments = [] }
6
6
  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.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Persen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-24 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: influxdb
@@ -144,6 +144,7 @@ executables: []
144
144
  extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
+ - CHANGELOG.md
147
148
  - Gemfile
148
149
  - Gemfile.lock
149
150
  - README.md
@@ -155,6 +156,8 @@ files:
155
156
  - gemfiles/Gemfile.rails-4.0.x
156
157
  - gemfiles/Gemfile.rails-4.1.x
157
158
  - gemfiles/Gemfile.rails-4.2.x
159
+ - gemfiles/Gemfile.rails-5.0.x
160
+ - gemfiles/Gemfile.rails-5.1.x
158
161
  - influxdb-rails.gemspec
159
162
  - lib/influxdb-rails.rb
160
163
  - lib/influxdb/rails/air_traffic_controller.rb
@@ -180,6 +183,8 @@ files:
180
183
  - spec/support/rails3/app.rb
181
184
  - spec/support/rails4/app.rb
182
185
  - spec/support/rails4/log/test.log
186
+ - spec/support/rails5/app.rb
187
+ - spec/support/rails5/log/test.log
183
188
  - spec/unit/backtrace_spec.rb
184
189
  - spec/unit/configuration_spec.rb
185
190
  - spec/unit/exception_presenter_spec.rb
@@ -204,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
209
  version: '0'
205
210
  requirements: []
206
211
  rubyforge_project: influxdb-rails
207
- rubygems_version: 2.5.1
212
+ rubygems_version: 2.6.10
208
213
  signing_key:
209
214
  specification_version: 4
210
215
  summary: InfluxDB bindings for Ruby on Rails.
@@ -216,6 +221,8 @@ test_files:
216
221
  - spec/spec_helper.rb
217
222
  - spec/controllers/widgets_controller_spec.rb
218
223
  - spec/suite.sh
224
+ - spec/support/rails5/log/test.log
225
+ - spec/support/rails5/app.rb
219
226
  - spec/support/rails4/log/test.log
220
227
  - spec/support/rails4/app.rb
221
228
  - spec/support/rails3/app.rb