mongoid_traffic 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/Gemfile +1 -5
- data/Gemfile.lock +58 -53
- data/lib/mongoid_traffic/controller_additions.rb +6 -8
- data/lib/mongoid_traffic/log.rb +21 -25
- data/lib/mongoid_traffic/logger/bots.rb +8 -11
- data/lib/mongoid_traffic/logger/browser.rb +1 -5
- data/lib/mongoid_traffic/logger/geo_ip.rb +4 -6
- data/lib/mongoid_traffic/logger/referer.rb +2 -4
- data/lib/mongoid_traffic/logger.rb +15 -17
- data/lib/mongoid_traffic/version.rb +1 -1
- data/mongoid_traffic.gemspec +3 -3
- data/test/mongoid_traffic/controller_additions_test.rb +1 -3
- data/test/mongoid_traffic/log_test.rb +40 -43
- data/test/mongoid_traffic/logger/bots_test.rb +1 -3
- data/test/mongoid_traffic/logger/browser_test.rb +1 -3
- data/test/mongoid_traffic/logger/geoip_test.rb +1 -3
- data/test/mongoid_traffic/logger/referer_test.rb +1 -3
- data/test/mongoid_traffic/logger_test.rb +2 -3
- data/test/support/database_cleaner.rb +10 -0
- data/test/support/mongoid.rb +8 -0
- data/test/test_helper.rb +5 -12
- data/vendor/mongoid_traffic/GeoIP.dat +0 -0
- data/vendor/mongoid_traffic/allagents.xml +22134 -22170
- metadata +18 -14
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_traffic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomáš Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: geoip
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '5.
|
33
|
+
version: '5.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '5.
|
40
|
+
version: '5.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nokogiri
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: useragent
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,21 +95,21 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: guard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: guard
|
112
|
+
name: guard-minitest
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: minitest
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name: minitest
|
140
|
+
name: minitest-around
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -198,6 +198,8 @@ files:
|
|
198
198
|
- test/mongoid_traffic/logger/geoip_test.rb
|
199
199
|
- test/mongoid_traffic/logger/referer_test.rb
|
200
200
|
- test/mongoid_traffic/logger_test.rb
|
201
|
+
- test/support/database_cleaner.rb
|
202
|
+
- test/support/mongoid.rb
|
201
203
|
- test/test_helper.rb
|
202
204
|
- vendor/mongoid_traffic/GeoIP.dat
|
203
205
|
- vendor/mongoid_traffic/allagents.xml
|
@@ -233,4 +235,6 @@ test_files:
|
|
233
235
|
- test/mongoid_traffic/logger/geoip_test.rb
|
234
236
|
- test/mongoid_traffic/logger/referer_test.rb
|
235
237
|
- test/mongoid_traffic/logger_test.rb
|
238
|
+
- test/support/database_cleaner.rb
|
239
|
+
- test/support/mongoid.rb
|
236
240
|
- test/test_helper.rb
|