mongoid_traffic 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ad004c5822da4119392890d10e40e079e69d74d
4
- data.tar.gz: 6a17ade80336a8373524d21abdeacf3654bbf108
3
+ metadata.gz: bf4d620d49237e71867b64bd7a22a4c8f9aeb58a
4
+ data.tar.gz: 37472e818324e9b2a2ac98806468a66468645545
5
5
  SHA512:
6
- metadata.gz: 9973194e9d251f27e517e6e36269b6e1c012741c12251206e33e86bf1d2223bdd079cfda215da5fb37a5bf4c2a34edcbc7f5fd20bf0e28d2ed610d21cdcb82f2
7
- data.tar.gz: 6f2f2c1d53fdfb573495d6473089274e70e241b33d8bcd33741511bc6d2a98a4621409914134aedc7a271f21ec1ed9c46f9bda7d62acd071d227eb29f9ca35de
6
+ metadata.gz: 1bd178089d1d2471e02796b85cf055f2b9c99ede31b2d78ef489065561f2b2be43e0631383df724b7fab8aa5b52c2c1495d31ba06c6354de34e8f61e0a4f30e9
7
+ data.tar.gz: b75bad4a25337c6191cf4403016e9051c05a61522456f92a79af417c6f1b856da4042e494f040fff5f8f56bccb576a8945490c749ea8834894f7f195731bd82a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid_traffic (0.0.1)
4
+ mongoid_traffic (0.0.2)
5
5
  geoip
6
6
  mongoid (~> 4.0)
7
7
  nokogiri
data/README.md CHANGED
@@ -216,6 +216,10 @@ The scope query accepts regular expressions, which allows for aggregations on sp
216
216
  Mongoid::TrafficLog.monthly(8, 2014).scoped_to(/\A\/blog/).aggregate_on(:countries)
217
217
  ```
218
218
 
219
+ ## TODO
220
+
221
+ * JavaScript + Rails helper to track client-side properties (screen/browser size)
222
+
219
223
  ## Further reading
220
224
 
221
225
  Based on the approach described by John Nunemaker [here](http://www.railstips.org/blog/archives/2011/06/28/counters-everywhere/) and [here](http://www.railstips.org/blog/archives/2011/07/31/counters-everywhere-part-2/).
@@ -1,3 +1,5 @@
1
1
  require "mongoid_traffic/version"
2
2
 
3
- require "mongoid_traffic/controller_additions"
3
+ require "mongoid_traffic/controller_additions"
4
+ require "mongoid_traffic/log"
5
+ require "mongoid_traffic/logger"
@@ -1,4 +1,3 @@
1
- require 'geoip'
2
1
  require 'uri'
3
2
  require 'useragent'
4
3
 
@@ -1,3 +1,5 @@
1
+ require 'user_agent'
2
+
1
3
  module MongoidTraffic
2
4
  class Logger
3
5
  class Browser
@@ -1,3 +1,3 @@
1
1
  module MongoidTraffic
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'bundler/setup'
2
- require 'coveralls'
3
2
  require 'database_cleaner'
4
3
  require 'minitest'
5
4
  require 'minitest/autorun'
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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2014-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: geoip