influxdb-rails 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +31 -30
- data/Rakefile +1 -1
- data/influxdb-rails.gemspec +1 -1
- data/lib/influxdb-rails.rb +10 -3
- data/lib/influxdb/rails/version.rb +1 -1
- data/spec/controllers/widgets_controller_spec.rb +1 -1
- data/spec/integration/exceptions_spec.rb +1 -1
- data/spec/integration/metrics_spec.rb +1 -1
- data/spec/support/rails4/log/test.log +5130 -0
- data/spec/unit/backtrace_spec.rb +2 -2
- data/spec/unit/configuration_spec.rb +4 -4
- data/spec/unit/influxdb_rails_spec.rb +3 -3
- metadata +4 -4
data/spec/unit/backtrace_spec.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
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-
|
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:
|
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:
|
124
|
+
version: 3.0.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: tzinfo
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|