evercookie 0.0.4 → 0.0.5
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.
- data/README.rdoc +59 -71
- data/config/routes.rb +7 -7
- data/lib/evercookie/controller.rb +40 -31
- data/lib/evercookie/engine.rb +1 -1
- data/lib/evercookie/version.rb +1 -1
- data/test/dummy/config/environments/production.rb +1 -1
- data/test/dummy4/Gemfile +19 -0
- data/test/dummy4/Gemfile.lock +119 -0
- data/test/dummy4/README.rdoc +28 -0
- data/test/dummy4/Rakefile +6 -0
- data/test/dummy4/app/assets/images/rails.png +0 -0
- data/test/dummy4/app/assets/javascripts/application.js +16 -0
- data/test/dummy4/app/assets/stylesheets/application.css +13 -0
- data/test/dummy4/app/controllers/application_controller.rb +5 -0
- data/test/dummy4/app/controllers/index_controller.rb +24 -0
- data/test/dummy4/app/helpers/application_helper.rb +2 -0
- data/test/dummy4/app/views/index/get.html.erb +5 -0
- data/test/dummy4/app/views/index/get_detailed.html.erb +26 -0
- data/test/dummy4/app/views/index/index.html.erb +36 -0
- data/test/dummy4/app/views/index/set.html.erb +3 -0
- data/test/dummy4/app/views/layouts/application.html.erb +14 -0
- data/test/dummy4/bin/bundle +3 -0
- data/test/dummy4/bin/rails +4 -0
- data/test/dummy4/bin/rake +4 -0
- data/test/dummy4/config.ru +4 -0
- data/test/dummy4/config/application.rb +22 -0
- data/test/dummy4/config/boot.rb +4 -0
- data/test/dummy4/config/database.yml +25 -0
- data/test/dummy4/config/environment.rb +5 -0
- data/test/dummy4/config/environments/development.rb +27 -0
- data/test/dummy4/config/environments/production.rb +80 -0
- data/test/dummy4/config/environments/test.rb +36 -0
- data/test/dummy4/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy4/config/initializers/evercookie.rb +8 -0
- data/test/dummy4/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy4/config/initializers/inflections.rb +16 -0
- data/test/dummy4/config/initializers/mime_types.rb +5 -0
- data/test/dummy4/config/initializers/secret_token.rb +12 -0
- data/test/dummy4/config/initializers/session_store.rb +3 -0
- data/test/dummy4/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy4/config/locales/en.yml +23 -0
- data/test/dummy4/config/routes.rb +10 -0
- data/test/dummy4/db/seeds.rb +7 -0
- data/test/dummy4/public/404.html +27 -0
- data/test/dummy4/public/422.html +26 -0
- data/test/dummy4/public/500.html +26 -0
- data/test/dummy4/public/favicon.ico +0 -0
- data/test/dummy4/public/robots.txt +5 -0
- data/test/dummy4/test/test_helper.rb +15 -0
- metadata +94 -8
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,12 @@
|
|
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
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy4::Application.config.secret_key_base = 'd5cb80f303397e84795af52bbc95f168c60efd1642f0171f34d0d487dd15ea1c231e2da6714d78d5109c0068b7c122d0d08cf329dec5d3827f12db35d5c695e4'
|
@@ -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] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Dummy4::Application.routes.draw do
|
2
|
+
root :to => 'index#index'
|
3
|
+
|
4
|
+
get 'index/get_detailed' => 'index#get_detailed'
|
5
|
+
get 'index/set' => 'index#set'
|
6
|
+
get 'index/get' => 'index#get'
|
7
|
+
|
8
|
+
get 'index/get_controller' => 'index#get_controller'
|
9
|
+
get 'index/get_defined' => 'index#get_defined'
|
10
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
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
|
+
<p>If you are the application owner check the logs for more information.</p>
|
26
|
+
</body>
|
27
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
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,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
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
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
ActiveRecord::Migration.check_pending!
|
7
|
+
|
8
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
9
|
+
#
|
10
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
11
|
+
# -- they do not yet inherit this setting
|
12
|
+
fixtures :all
|
13
|
+
|
14
|
+
# Add more helper methods to be used by all tests here...
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evercookie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &7963160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *7963160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: chunky_png
|
27
|
-
requirement: &
|
27
|
+
requirement: &7957240 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *7957240
|
36
36
|
description: Gem for placing and getting evercookie for rails application
|
37
37
|
email:
|
38
38
|
- daddyzgm@gmail.com
|
@@ -56,6 +56,49 @@ files:
|
|
56
56
|
- MIT-LICENSE
|
57
57
|
- Rakefile
|
58
58
|
- README.rdoc
|
59
|
+
- test/dummy4/db/seeds.rb
|
60
|
+
- test/dummy4/config.ru
|
61
|
+
- test/dummy4/config/initializers/backtrace_silencers.rb
|
62
|
+
- test/dummy4/config/initializers/wrap_parameters.rb
|
63
|
+
- test/dummy4/config/initializers/mime_types.rb
|
64
|
+
- test/dummy4/config/initializers/inflections.rb
|
65
|
+
- test/dummy4/config/initializers/evercookie.rb
|
66
|
+
- test/dummy4/config/initializers/session_store.rb
|
67
|
+
- test/dummy4/config/initializers/filter_parameter_logging.rb
|
68
|
+
- test/dummy4/config/initializers/secret_token.rb
|
69
|
+
- test/dummy4/config/environments/development.rb
|
70
|
+
- test/dummy4/config/environments/production.rb
|
71
|
+
- test/dummy4/config/environments/test.rb
|
72
|
+
- test/dummy4/config/application.rb
|
73
|
+
- test/dummy4/config/boot.rb
|
74
|
+
- test/dummy4/config/environment.rb
|
75
|
+
- test/dummy4/config/routes.rb
|
76
|
+
- test/dummy4/config/locales/en.yml
|
77
|
+
- test/dummy4/config/database.yml
|
78
|
+
- test/dummy4/public/robots.txt
|
79
|
+
- test/dummy4/public/422.html
|
80
|
+
- test/dummy4/public/404.html
|
81
|
+
- test/dummy4/public/favicon.ico
|
82
|
+
- test/dummy4/public/500.html
|
83
|
+
- test/dummy4/Gemfile.lock
|
84
|
+
- test/dummy4/test/test_helper.rb
|
85
|
+
- test/dummy4/bin/rails
|
86
|
+
- test/dummy4/bin/bundle
|
87
|
+
- test/dummy4/bin/rake
|
88
|
+
- test/dummy4/README.rdoc
|
89
|
+
- test/dummy4/Gemfile
|
90
|
+
- test/dummy4/Rakefile
|
91
|
+
- test/dummy4/app/views/index/index.html.erb
|
92
|
+
- test/dummy4/app/views/index/set.html.erb
|
93
|
+
- test/dummy4/app/views/index/get_detailed.html.erb
|
94
|
+
- test/dummy4/app/views/index/get.html.erb
|
95
|
+
- test/dummy4/app/views/layouts/application.html.erb
|
96
|
+
- test/dummy4/app/helpers/application_helper.rb
|
97
|
+
- test/dummy4/app/controllers/application_controller.rb
|
98
|
+
- test/dummy4/app/controllers/index_controller.rb
|
99
|
+
- test/dummy4/app/assets/images/rails.png
|
100
|
+
- test/dummy4/app/assets/stylesheets/application.css
|
101
|
+
- test/dummy4/app/assets/javascripts/application.js
|
59
102
|
- test/unit/helpers/evercookie_controller_helper_test.rb
|
60
103
|
- test/unit/helpers/evercookie_view_helper_test.rb
|
61
104
|
- test/unit/controllers/evercookie_controller_test.rb
|
@@ -138,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
181
|
version: '0'
|
139
182
|
segments:
|
140
183
|
- 0
|
141
|
-
hash:
|
184
|
+
hash: 508150512991825601
|
142
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
186
|
none: false
|
144
187
|
requirements:
|
@@ -147,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
190
|
version: '0'
|
148
191
|
segments:
|
149
192
|
- 0
|
150
|
-
hash:
|
193
|
+
hash: 508150512991825601
|
151
194
|
requirements: []
|
152
195
|
rubyforge_project:
|
153
196
|
rubygems_version: 1.8.17
|
@@ -155,6 +198,49 @@ signing_key:
|
|
155
198
|
specification_version: 3
|
156
199
|
summary: Gem for placing and getting evercookie for rails application
|
157
200
|
test_files:
|
201
|
+
- test/dummy4/db/seeds.rb
|
202
|
+
- test/dummy4/config.ru
|
203
|
+
- test/dummy4/config/initializers/backtrace_silencers.rb
|
204
|
+
- test/dummy4/config/initializers/wrap_parameters.rb
|
205
|
+
- test/dummy4/config/initializers/mime_types.rb
|
206
|
+
- test/dummy4/config/initializers/inflections.rb
|
207
|
+
- test/dummy4/config/initializers/evercookie.rb
|
208
|
+
- test/dummy4/config/initializers/session_store.rb
|
209
|
+
- test/dummy4/config/initializers/filter_parameter_logging.rb
|
210
|
+
- test/dummy4/config/initializers/secret_token.rb
|
211
|
+
- test/dummy4/config/environments/development.rb
|
212
|
+
- test/dummy4/config/environments/production.rb
|
213
|
+
- test/dummy4/config/environments/test.rb
|
214
|
+
- test/dummy4/config/application.rb
|
215
|
+
- test/dummy4/config/boot.rb
|
216
|
+
- test/dummy4/config/environment.rb
|
217
|
+
- test/dummy4/config/routes.rb
|
218
|
+
- test/dummy4/config/locales/en.yml
|
219
|
+
- test/dummy4/config/database.yml
|
220
|
+
- test/dummy4/public/robots.txt
|
221
|
+
- test/dummy4/public/422.html
|
222
|
+
- test/dummy4/public/404.html
|
223
|
+
- test/dummy4/public/favicon.ico
|
224
|
+
- test/dummy4/public/500.html
|
225
|
+
- test/dummy4/Gemfile.lock
|
226
|
+
- test/dummy4/test/test_helper.rb
|
227
|
+
- test/dummy4/bin/rails
|
228
|
+
- test/dummy4/bin/bundle
|
229
|
+
- test/dummy4/bin/rake
|
230
|
+
- test/dummy4/README.rdoc
|
231
|
+
- test/dummy4/Gemfile
|
232
|
+
- test/dummy4/Rakefile
|
233
|
+
- test/dummy4/app/views/index/index.html.erb
|
234
|
+
- test/dummy4/app/views/index/set.html.erb
|
235
|
+
- test/dummy4/app/views/index/get_detailed.html.erb
|
236
|
+
- test/dummy4/app/views/index/get.html.erb
|
237
|
+
- test/dummy4/app/views/layouts/application.html.erb
|
238
|
+
- test/dummy4/app/helpers/application_helper.rb
|
239
|
+
- test/dummy4/app/controllers/application_controller.rb
|
240
|
+
- test/dummy4/app/controllers/index_controller.rb
|
241
|
+
- test/dummy4/app/assets/images/rails.png
|
242
|
+
- test/dummy4/app/assets/stylesheets/application.css
|
243
|
+
- test/dummy4/app/assets/javascripts/application.js
|
158
244
|
- test/unit/helpers/evercookie_controller_helper_test.rb
|
159
245
|
- test/unit/helpers/evercookie_view_helper_test.rb
|
160
246
|
- test/unit/controllers/evercookie_controller_test.rb
|