da-has_token 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c6718716e02e8fb0d38cef732a3e9fd62cea098
4
+ data.tar.gz: 28a6737f8359b5e974dbc8b24a151cd31b4a9fe2
5
+ SHA512:
6
+ metadata.gz: 885d912d76d6e19cc1f3238161772d3f98bd3d1d5f8c6d68bc76b5afad3034ece8917433ba67fe061bc1a77ad5cbecc7d18d55e98c9766ed94f24f3fce902f25
7
+ data.tar.gz: aad60ceb77549f7dc6dfd96774ab887eeecca46a04f8610a4c1fc9ad7567ef0707fd50085360822be3e442617057af628338fe7c571c1480c07537d86b331006
data/README.md CHANGED
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  The token is set in a `before_create` callback. There is a possible race condition when checking if a newly generated token already exists – make sure to add an unique index to the `token` column in the database.
29
29
 
30
- A `NoMoreTokens` error is raised if a new unique token can not be generated within [`HasToken::TokenGenerator::MAX_TRIES`](https://github.com/die-antwort/da-has_token/blob/master/lib/has_token/token_generator.rb#L4).
30
+ A `NoMoreTokens` error is raised if a new unique token can not be generated within [`HasToken::TokenGenerator::MAX_TRIES`](https://github.com/die-antwort/da-has_token/blob/master/lib/da-has_token/token_generator.rb#L4).
31
31
 
32
32
  There are similar plugins providing more features configuration options, e.g. https://github.com/mindbox/has_token.
33
33
 
@@ -1,3 +1,3 @@
1
1
  module HasToken
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,76 +1,74 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: da-has_token
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 1
10
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Stefan Daschek
14
8
  - Moritz Kobrna
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2012-08-09 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 7
28
- segments:
29
- - 3
30
- - 0
31
- version: "3.0"
12
+ date: 2014-07-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
32
15
  name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '3.0'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '5.0'
33
24
  type: :runtime
34
25
  prerelease: false
35
- requirement: *id001
36
- - !ruby/object:Gem::Dependency
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
40
28
  - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
29
+ - !ruby/object:Gem::Version
30
+ version: '3.0'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ - !ruby/object:Gem::Dependency
46
35
  name: sqlite3
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
47
41
  type: :development
48
42
  prerelease: false
49
- requirement: *id002
50
- description: Use `has_token` in your model to automatically generate a unique token on before_create. (Model needs to have a `token` field with type string.)
51
- email:
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ description: Use `has_token` in your model to automatically generate a unique token
49
+ on before_create. (Model needs to have a `token` field with type string.)
50
+ email:
52
51
  - stefan@die-antwort.eu
53
52
  - mo@die-antwort.eu
54
53
  executables: []
55
-
56
54
  extensions: []
57
-
58
55
  extra_rdoc_files: []
59
-
60
- files:
56
+ files:
57
+ - MIT-LICENSE
58
+ - README.md
59
+ - Rakefile
60
+ - lib/da-has_token.rb
61
61
  - lib/da-has_token/active_record.rb
62
62
  - lib/da-has_token/railtie.rb
63
63
  - lib/da-has_token/token_generator.rb
64
64
  - lib/da-has_token/version.rb
65
- - lib/da-has_token.rb
66
- - MIT-LICENSE
67
- - Rakefile
68
- - README.md
65
+ - test/dummy/Rakefile
69
66
  - test/dummy/app/assets/javascripts/application.js
70
67
  - test/dummy/app/assets/stylesheets/application.css
71
68
  - test/dummy/app/controllers/application_controller.rb
72
69
  - test/dummy/app/helpers/application_helper.rb
73
70
  - test/dummy/app/views/layouts/application.html.erb
71
+ - test/dummy/config.ru
74
72
  - test/dummy/config/application.rb
75
73
  - test/dummy/config/boot.rb
76
74
  - test/dummy/config/database.yml
@@ -86,53 +84,37 @@ files:
86
84
  - test/dummy/config/initializers/wrap_parameters.rb
87
85
  - test/dummy/config/locales/en.yml
88
86
  - test/dummy/config/routes.rb
89
- - test/dummy/config.ru
90
- - test/dummy/db/development.sqlite3
91
- - test/dummy/db/test.sqlite3
92
- - test/dummy/log/development.log
93
- - test/dummy/log/test.log
94
87
  - test/dummy/public/404.html
95
88
  - test/dummy/public/422.html
96
89
  - test/dummy/public/500.html
97
90
  - test/dummy/public/favicon.ico
98
- - test/dummy/Rakefile
99
91
  - test/dummy/script/rails
100
92
  - test/has_token_test.rb
101
93
  - test/test_helper.rb
102
94
  homepage: https://github.com/die-antwort/da-has_token
103
95
  licenses: []
104
-
96
+ metadata: {}
105
97
  post_install_message:
106
98
  rdoc_options: []
107
-
108
- require_paths:
99
+ require_paths:
109
100
  - lib
110
- required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
- requirements:
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
113
103
  - - ">="
114
- - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
117
- - 0
118
- version: "0"
119
- required_rubygems_version: !ruby/object:Gem::Requirement
120
- none: false
121
- requirements:
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
122
108
  - - ">="
123
- - !ruby/object:Gem::Version
124
- hash: 3
125
- segments:
126
- - 0
127
- version: "0"
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
128
111
  requirements: []
129
-
130
112
  rubyforge_project:
131
- rubygems_version: 1.8.21
113
+ rubygems_version: 2.2.2
132
114
  signing_key:
133
- specification_version: 3
134
- summary: Simple has_token plugin for Rails 3 (Active Record).
135
- test_files:
115
+ specification_version: 4
116
+ summary: Simple has_token plugin for Rails (Active Record).
117
+ test_files:
136
118
  - test/dummy/app/assets/javascripts/application.js
137
119
  - test/dummy/app/assets/stylesheets/application.css
138
120
  - test/dummy/app/controllers/application_controller.rb
@@ -154,10 +136,6 @@ test_files:
154
136
  - test/dummy/config/locales/en.yml
155
137
  - test/dummy/config/routes.rb
156
138
  - test/dummy/config.ru
157
- - test/dummy/db/development.sqlite3
158
- - test/dummy/db/test.sqlite3
159
- - test/dummy/log/development.log
160
- - test/dummy/log/test.log
161
139
  - test/dummy/public/404.html
162
140
  - test/dummy/public/422.html
163
141
  - test/dummy/public/500.html
File without changes
File without changes
File without changes
File without changes