re_track 0.4.0 → 0.5.0

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +12 -0
  4. data/.rspec +2 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +8 -0
  8. data/Appraisals +9 -0
  9. data/Gemfile +5 -0
  10. data/Gemfile.lock +150 -0
  11. data/README.md +6 -9
  12. data/Rakefile +7 -1
  13. data/app/models/re_track/referer_tracking.rb +3 -0
  14. data/gemfiles/rails_3.gemfile +9 -0
  15. data/gemfiles/rails_4.gemfile +9 -0
  16. data/lib/re_track/sweeper.rb +50 -12
  17. data/lib/re_track/trackable.rb +2 -6
  18. data/lib/re_track/tracker.rb +21 -18
  19. data/lib/re_track/version.rb +1 -1
  20. data/lib/re_track.rb +4 -4
  21. data/re_track.gemspec +29 -0
  22. data/script/rails +8 -0
  23. data/spec/controllers/referer_tracking_spec.rb +89 -0
  24. data/spec/dummy/README.rdoc +261 -0
  25. data/spec/dummy/Rakefile +7 -0
  26. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  27. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  28. data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
  29. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  30. data/spec/dummy/app/controllers/users_controller.rb +44 -0
  31. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  32. data/spec/dummy/app/mailers/.gitkeep +0 -0
  33. data/spec/dummy/app/models/.gitkeep +0 -0
  34. data/spec/dummy/app/models/user.rb +6 -0
  35. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/spec/dummy/app/views/users/_form.html.erb +17 -0
  37. data/spec/dummy/app/views/users/edit.html.erb +6 -0
  38. data/spec/dummy/app/views/users/index.html.erb +21 -0
  39. data/spec/dummy/app/views/users/new.html.erb +5 -0
  40. data/spec/dummy/app/views/users/show.html.erb +5 -0
  41. data/spec/dummy/config/application.rb +67 -0
  42. data/spec/dummy/config/boot.rb +10 -0
  43. data/spec/dummy/config/environment.rb +5 -0
  44. data/spec/dummy/config/environments/development.rb +37 -0
  45. data/spec/dummy/config/environments/production.rb +67 -0
  46. data/spec/dummy/config/environments/test.rb +38 -0
  47. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/spec/dummy/config/initializers/inflections.rb +15 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  50. data/spec/dummy/config/initializers/secret_token.rb +8 -0
  51. data/spec/dummy/config/initializers/session_store.rb +8 -0
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/spec/dummy/config/locales/en.yml +5 -0
  54. data/spec/dummy/config/mongoid.yml +19 -0
  55. data/spec/dummy/config/routes.rb +7 -0
  56. data/spec/dummy/config.ru +4 -0
  57. data/spec/dummy/db/.gitkeep +0 -0
  58. data/spec/dummy/lib/assets/.gitkeep +0 -0
  59. data/spec/dummy/log/.gitkeep +0 -0
  60. data/spec/dummy/public/404.html +26 -0
  61. data/spec/dummy/public/422.html +26 -0
  62. data/spec/dummy/public/500.html +25 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/dummy/script/rails +6 -0
  65. data/spec/models/re_track/referer_tracking_spec.rb +64 -0
  66. data/spec/spec_helper.rb +51 -0
  67. metadata +159 -16
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,38 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ # config.whiny_nils = true
16
+ config.eager_load = false
17
+
18
+ # Show full error reports and disable caching
19
+ config.consider_all_requests_local = true
20
+ config.action_controller.perform_caching = false
21
+
22
+ # Raise exceptions instead of rendering exception templates
23
+ config.action_dispatch.show_exceptions = false
24
+
25
+ # Disable request forgery protection in test environment
26
+ config.action_controller.allow_forgery_protection = false
27
+
28
+ # Tell Action Mailer not to deliver emails to the real world.
29
+ # The :test delivery method accumulates sent emails in the
30
+ # ActionMailer::Base.deliveries array.
31
+ config.action_mailer.delivery_method = :test
32
+
33
+ # Raise exception on mass assignment protection for Active Record models
34
+ # config.active_record.mass_assignment_sanitizer = :strict
35
+
36
+ # Print deprecation notices to the stderr
37
+ config.active_support.deprecation = :stderr
38
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '43c32c33a634ab18245a090609dae2e31a615bfbad7fbfee89006d65e7ccec4dded8444c663878b61380e37326fb4f314ec5eda4d043ba823a279471e8c73d09'
8
+ Dummy::Application.config.secret_key_base = 'top secret key base'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,19 @@
1
+ development:
2
+ sessions:
3
+ default:
4
+ database: retrack_dummy_development
5
+ hosts:
6
+ - localhost:27017
7
+ options:
8
+ test:
9
+ sessions:
10
+ default:
11
+ database: retrack_dummy_test
12
+ hosts:
13
+ - localhost:27017
14
+ options:
15
+ # consistency: :strong
16
+ # In the test environment we lower the retries and retry interval to
17
+ # low amounts for fast failures.
18
+ max_retries: 1
19
+ retry_interval: 0
@@ -0,0 +1,7 @@
1
+ Rails.application.routes.draw do
2
+
3
+ resources :users
4
+
5
+
6
+ mount ReTrack::Engine => "/re_track"
7
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
File without changes
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,64 @@
1
+ # coding: utf-8
2
+ require 'spec_helper'
3
+
4
+ module ReTrack
5
+ describe RefererTracking do
6
+ let(:referer_tracking) { RefererTracking.new }
7
+
8
+ describe '#query' do
9
+ subject { referer_tracking.query('q') }
10
+
11
+ it { should be_nil }
12
+
13
+ context 'when there is a first_url' do
14
+ before { referer_tracking.first_url = 'http://google.de/' }
15
+ it { should be_nil }
16
+ end
17
+
18
+ context 'when the first_url contains the parameter' do
19
+ before { referer_tracking.first_url = 'http://google.de/?q=query&a=b' }
20
+ it { should == 'query' }
21
+ end
22
+
23
+ context 'when the first_url does not contain the parameter' do
24
+ before { referer_tracking.first_url = 'http://google.de/?a=b' }
25
+ it { should be_nil }
26
+ end
27
+
28
+ context 'when first_url is url_encoded' do
29
+ before do
30
+ referer_tracking.first_url = CGI::escape 'http://google.de/?q=query'
31
+ end
32
+ it { should == 'query' }
33
+ end
34
+
35
+ context 'with an invalid url' do
36
+ before { referer_tracking.first_url = 'h a l l o' }
37
+ it { should be_nil }
38
+ end
39
+
40
+ context 'when querying an invalid field' do
41
+ before do
42
+ referer_tracking.first_url = '?q=f'
43
+ referer_tracking.user_agent = '?q=u'
44
+ end
45
+ subject { referer_tracking.query('q', 'user_agent') }
46
+ it { should be_nil }
47
+ end
48
+
49
+ context 'when querying a non-existent field' do
50
+ subject { referer_tracking.query('q', 'hidden') }
51
+ it { should be_nil }
52
+ end
53
+
54
+ context 'when querying referer_url' do
55
+ before do
56
+ referer_tracking.first_url = '?q=f'
57
+ referer_tracking.referer_url = '?q=r'
58
+ end
59
+ subject { referer_tracking.query('q', 'referer_url') }
60
+ it { should == 'r' }
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,51 @@
1
+ # coding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'pry'
6
+ require 'coveralls'
7
+ require 'simplecov'
8
+
9
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
10
+ SimpleCov::Formatter::HTMLFormatter,
11
+ Coveralls::SimpleCov::Formatter
12
+ ]
13
+
14
+ SimpleCov.start do
15
+ add_filter '/spec/'
16
+ end
17
+
18
+ SimpleCov.at_exit do
19
+ File.open(File.join(SimpleCov.coverage_path, 'percent.txt'), 'w') do |f|
20
+ f.write SimpleCov.result.covered_percent
21
+ end
22
+ SimpleCov.result.format!
23
+ end
24
+
25
+ ENV['RAILS_ENV'] ||= 'test'
26
+ require File.expand_path('../dummy/config/environment', __FILE__)
27
+ require 'rspec/rails'
28
+ require 'rspec/autorun'
29
+ require 'database_cleaner'
30
+ Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
31
+
32
+ RSpec.configure do |config|
33
+ config.treat_symbols_as_metadata_keys_with_true_values = true
34
+ config.run_all_when_everything_filtered = true
35
+ config.filter_run :focus
36
+ config.order = 'random'
37
+
38
+ # DatabaseCleaner
39
+ config.before(:suite) do
40
+ DatabaseCleaner[:mongoid].strategy = :truncation
41
+ DatabaseCleaner[:mongoid].clean_with :truncation
42
+ end
43
+
44
+ config.before(:each) do
45
+ DatabaseCleaner[:mongoid].start
46
+ end
47
+
48
+ config.after(:each) do
49
+ DatabaseCleaner[:mongoid].clean
50
+ end
51
+ end
metadata CHANGED
@@ -1,31 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: re_track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gebhard Wöstemeyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-11 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mongoid
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - '>='
@@ -67,7 +81,7 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: sqlite3
84
+ name: coveralls
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - '>='
@@ -94,6 +108,34 @@ dependencies:
94
108
  - - '>='
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: appraisal
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
97
139
  description: Track HTTP-Referrers in Rails using Mongoid/MongoDB
98
140
  email:
99
141
  - g.woestemeyer@gmail.com
@@ -101,18 +143,75 @@ executables: []
101
143
  extensions: []
102
144
  extra_rdoc_files: []
103
145
  files:
146
+ - .coveralls.yml
147
+ - .gitignore
148
+ - .rspec
149
+ - .ruby-gemset
150
+ - .ruby-version
151
+ - .travis.yml
152
+ - Appraisals
153
+ - Gemfile
154
+ - Gemfile.lock
155
+ - MIT-LICENSE
156
+ - README.md
157
+ - Rakefile
104
158
  - app/models/re_track/referer_tracking.rb
105
159
  - config/routes.rb
160
+ - gemfiles/rails_3.gemfile
161
+ - gemfiles/rails_4.gemfile
106
162
  - lib/re_track.rb
107
- - lib/tasks/re_track_tasks.rake
108
- - lib/re_track/version.rb
109
- - lib/re_track/tracker.rb
110
- - lib/re_track/trackable.rb
111
163
  - lib/re_track/engine.rb
112
164
  - lib/re_track/sweeper.rb
113
- - MIT-LICENSE
114
- - Rakefile
115
- - README.md
165
+ - lib/re_track/trackable.rb
166
+ - lib/re_track/tracker.rb
167
+ - lib/re_track/version.rb
168
+ - lib/tasks/re_track_tasks.rake
169
+ - re_track.gemspec
170
+ - script/rails
171
+ - spec/controllers/referer_tracking_spec.rb
172
+ - spec/dummy/README.rdoc
173
+ - spec/dummy/Rakefile
174
+ - spec/dummy/app/assets/javascripts/application.js
175
+ - spec/dummy/app/assets/stylesheets/application.css
176
+ - spec/dummy/app/assets/stylesheets/scaffold.css
177
+ - spec/dummy/app/controllers/application_controller.rb
178
+ - spec/dummy/app/controllers/users_controller.rb
179
+ - spec/dummy/app/helpers/application_helper.rb
180
+ - spec/dummy/app/mailers/.gitkeep
181
+ - spec/dummy/app/models/.gitkeep
182
+ - spec/dummy/app/models/user.rb
183
+ - spec/dummy/app/views/layouts/application.html.erb
184
+ - spec/dummy/app/views/users/_form.html.erb
185
+ - spec/dummy/app/views/users/edit.html.erb
186
+ - spec/dummy/app/views/users/index.html.erb
187
+ - spec/dummy/app/views/users/new.html.erb
188
+ - spec/dummy/app/views/users/show.html.erb
189
+ - spec/dummy/config.ru
190
+ - spec/dummy/config/application.rb
191
+ - spec/dummy/config/boot.rb
192
+ - spec/dummy/config/environment.rb
193
+ - spec/dummy/config/environments/development.rb
194
+ - spec/dummy/config/environments/production.rb
195
+ - spec/dummy/config/environments/test.rb
196
+ - spec/dummy/config/initializers/backtrace_silencers.rb
197
+ - spec/dummy/config/initializers/inflections.rb
198
+ - spec/dummy/config/initializers/mime_types.rb
199
+ - spec/dummy/config/initializers/secret_token.rb
200
+ - spec/dummy/config/initializers/session_store.rb
201
+ - spec/dummy/config/initializers/wrap_parameters.rb
202
+ - spec/dummy/config/locales/en.yml
203
+ - spec/dummy/config/mongoid.yml
204
+ - spec/dummy/config/routes.rb
205
+ - spec/dummy/db/.gitkeep
206
+ - spec/dummy/lib/assets/.gitkeep
207
+ - spec/dummy/log/.gitkeep
208
+ - spec/dummy/public/404.html
209
+ - spec/dummy/public/422.html
210
+ - spec/dummy/public/500.html
211
+ - spec/dummy/public/favicon.ico
212
+ - spec/dummy/script/rails
213
+ - spec/models/re_track/referer_tracking_spec.rb
214
+ - spec/spec_helper.rb
116
215
  homepage: https://github.com/gewo/re_track
117
216
  licenses:
118
217
  - MIT
@@ -133,8 +232,52 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
232
  version: '0'
134
233
  requirements: []
135
234
  rubyforge_project:
136
- rubygems_version: 2.0.3
235
+ rubygems_version: 2.1.11
137
236
  signing_key:
138
237
  specification_version: 4
139
238
  summary: Track HTTP-Referrers in Rails using Mongoid/MongoDB
140
- test_files: []
239
+ test_files:
240
+ - spec/controllers/referer_tracking_spec.rb
241
+ - spec/dummy/README.rdoc
242
+ - spec/dummy/Rakefile
243
+ - spec/dummy/app/assets/javascripts/application.js
244
+ - spec/dummy/app/assets/stylesheets/application.css
245
+ - spec/dummy/app/assets/stylesheets/scaffold.css
246
+ - spec/dummy/app/controllers/application_controller.rb
247
+ - spec/dummy/app/controllers/users_controller.rb
248
+ - spec/dummy/app/helpers/application_helper.rb
249
+ - spec/dummy/app/mailers/.gitkeep
250
+ - spec/dummy/app/models/.gitkeep
251
+ - spec/dummy/app/models/user.rb
252
+ - spec/dummy/app/views/layouts/application.html.erb
253
+ - spec/dummy/app/views/users/_form.html.erb
254
+ - spec/dummy/app/views/users/edit.html.erb
255
+ - spec/dummy/app/views/users/index.html.erb
256
+ - spec/dummy/app/views/users/new.html.erb
257
+ - spec/dummy/app/views/users/show.html.erb
258
+ - spec/dummy/config.ru
259
+ - spec/dummy/config/application.rb
260
+ - spec/dummy/config/boot.rb
261
+ - spec/dummy/config/environment.rb
262
+ - spec/dummy/config/environments/development.rb
263
+ - spec/dummy/config/environments/production.rb
264
+ - spec/dummy/config/environments/test.rb
265
+ - spec/dummy/config/initializers/backtrace_silencers.rb
266
+ - spec/dummy/config/initializers/inflections.rb
267
+ - spec/dummy/config/initializers/mime_types.rb
268
+ - spec/dummy/config/initializers/secret_token.rb
269
+ - spec/dummy/config/initializers/session_store.rb
270
+ - spec/dummy/config/initializers/wrap_parameters.rb
271
+ - spec/dummy/config/locales/en.yml
272
+ - spec/dummy/config/mongoid.yml
273
+ - spec/dummy/config/routes.rb
274
+ - spec/dummy/db/.gitkeep
275
+ - spec/dummy/lib/assets/.gitkeep
276
+ - spec/dummy/log/.gitkeep
277
+ - spec/dummy/public/404.html
278
+ - spec/dummy/public/422.html
279
+ - spec/dummy/public/500.html
280
+ - spec/dummy/public/favicon.ico
281
+ - spec/dummy/script/rails
282
+ - spec/models/re_track/referer_tracking_spec.rb
283
+ - spec/spec_helper.rb