influxdb-rails 0.1.9 → 0.1.10

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.
@@ -26,7 +26,7 @@ describe InfluxDB::Rails::Backtrace do
26
26
 
27
27
  describe "#to_a" do
28
28
  it "should return an array of lines" do
29
- @backtrace.to_a.is_a?(Array).should be_true
29
+ @backtrace.to_a.is_a?(Array).should be_truthy
30
30
  end
31
31
  end
32
32
 
@@ -44,7 +44,7 @@ describe InfluxDB::Rails::Backtrace do
44
44
 
45
45
  describe "#to_a" do
46
46
  it "should return an array of lines" do
47
- @backtrace.to_a.is_a?(Array).should be_true
47
+ @backtrace.to_a.is_a?(Array).should be_truthy
48
48
  end
49
49
  end
50
50
 
@@ -8,22 +8,22 @@ describe InfluxDB::Rails::Configuration do
8
8
  describe "#ignore_user_agent?" do
9
9
  it "should be true for user agents that have been set as ignorable" do
10
10
  @configuration.ignored_user_agents = %w{Googlebot}
11
- @configuration.ignore_user_agent?("Googlebot/2.1").should be_true
11
+ @configuration.ignore_user_agent?("Googlebot/2.1").should be_truthy
12
12
  end
13
13
 
14
14
  it "should be false for user agents that have not been set as ignorable" do
15
15
  @configuration.ignored_user_agents = %w{Googlebot}
16
- @configuration.ignore_user_agent?("Mozilla/5.0").should be_false
16
+ @configuration.ignore_user_agent?("Mozilla/5.0").should be_falsey
17
17
  end
18
18
 
19
19
  it "should be false if the ignored user agents list is empty" do
20
20
  @configuration.ignored_user_agents = []
21
- @configuration.ignore_user_agent?("Googlebot/2.1").should be_false
21
+ @configuration.ignore_user_agent?("Googlebot/2.1").should be_falsey
22
22
  end
23
23
 
24
24
  it "should be false if the ignored user agents list is inadvertently set to nil" do
25
25
  @configuration.ignored_user_agents = nil
26
- @configuration.ignore_user_agent?("Googlebot/2.1").should be_false
26
+ @configuration.ignore_user_agent?("Googlebot/2.1").should be_falsey
27
27
  end
28
28
  end
29
29
  end
@@ -14,17 +14,17 @@ describe InfluxDB::Rails do
14
14
  config.ignored_exceptions << 'DummyException'
15
15
  end
16
16
 
17
- InfluxDB::Rails.ignorable_exception?(exception).should be_true
17
+ InfluxDB::Rails.ignorable_exception?(exception).should be_truthy
18
18
  end
19
19
 
20
20
  it "should be true for exception types specified in the configuration" do
21
21
  exception = ActionController::RoutingError.new("foo")
22
- InfluxDB::Rails.ignorable_exception?(exception).should be_true
22
+ InfluxDB::Rails.ignorable_exception?(exception).should be_truthy
23
23
  end
24
24
 
25
25
  it "should be false for valid exceptions" do
26
26
  exception = ZeroDivisionError.new
27
- InfluxDB::Rails.ignorable_exception?(exception).should be_false
27
+ InfluxDB::Rails.ignorable_exception?(exception).should be_falsey
28
28
  end
29
29
  end
30
30
 
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Persen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-18 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: influxdb
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 3.0.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 3.0.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: tzinfo
127
127
  requirement: !ruby/object:Gem::Requirement