paranoia_uniqueness_validator 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.travis.yml +1 -1
  4. data/Gemfile +2 -3
  5. data/README.md +4 -1
  6. data/lib/paranoia_uniqueness_validator/validations/uniqueness_without_deleted.rb +9 -13
  7. data/lib/paranoia_uniqueness_validator/version.rb +1 -1
  8. data/paranoia_uniqueness_validator.gemspec +3 -3
  9. data/spec/dummy/.gitignore +15 -0
  10. data/spec/dummy/README.rdoc +15 -248
  11. data/spec/dummy/Rakefile +0 -1
  12. data/spec/dummy/app/assets/javascripts/application.js +2 -1
  13. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  14. data/spec/dummy/app/{mailers/.gitkeep → controllers/concerns/.keep} +0 -0
  15. data/spec/dummy/app/{models/.gitkeep → mailers/.keep} +0 -0
  16. data/spec/dummy/{lib/assets/.gitkeep → app/models/.keep} +0 -0
  17. data/spec/dummy/{log/.gitkeep → app/models/concerns/.keep} +0 -0
  18. data/spec/dummy/app/models/dummy_model.rb +0 -2
  19. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  20. data/spec/dummy/bin/bundle +3 -0
  21. data/spec/dummy/bin/rails +4 -0
  22. data/spec/dummy/bin/rake +4 -0
  23. data/spec/dummy/config/application.rb +3 -39
  24. data/spec/dummy/config/boot.rb +4 -7
  25. data/spec/dummy/config/environment.rb +2 -2
  26. data/spec/dummy/config/environments/development.rb +11 -19
  27. data/spec/dummy/config/environments/production.rb +40 -27
  28. data/spec/dummy/config/environments/test.rb +13 -14
  29. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  30. data/spec/dummy/config/initializers/inflections.rb +6 -5
  31. data/spec/dummy/config/initializers/secret_token.rb +7 -2
  32. data/spec/dummy/config/initializers/session_store.rb +0 -5
  33. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  34. data/spec/dummy/config/locales/en.yml +20 -2
  35. data/spec/dummy/config/routes.rb +15 -24
  36. data/spec/dummy/config.ru +1 -1
  37. data/spec/dummy/db/migrate/{20121009200838_create_dummy_models.rb → 20130511080827_create_dummy_models.rb} +1 -0
  38. data/spec/dummy/db/schema.rb +5 -5
  39. data/spec/dummy/db/seeds.rb +7 -0
  40. data/spec/dummy/db/test.sqlite3 +0 -0
  41. data/spec/dummy/lib/assets/.keep +0 -0
  42. data/spec/dummy/lib/tasks/.keep +0 -0
  43. data/spec/dummy/log/.keep +0 -0
  44. data/spec/dummy/public/404.html +43 -11
  45. data/spec/dummy/public/422.html +43 -11
  46. data/spec/dummy/public/500.html +43 -11
  47. data/spec/dummy/public/robots.txt +5 -0
  48. data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
  49. data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
  50. metadata +53 -50
  51. data/Gemfile.lock +0 -117
  52. data/spec/dummy/script/rails +0 -6
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paranoia_uniqueness_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Anthony Smith
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-09 00:00:00.000000000 Z
11
+ date: 2013-05-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '3.0'
19
+ version: 4.0.0.rc1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '3.0'
26
+ version: 4.0.0.rc1
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: paranoia
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: database_cleaner
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: 1.0.0.RC1
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: 1.0.0.RC1
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rails
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
69
- version: '3.0'
61
+ version: 4.0.0.rc1
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
77
- version: '3.0'
68
+ version: 4.0.0.rc1
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec-rails
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: Adds the validates_uniqueness_without_deleted validator to ignore deleted
@@ -102,7 +91,6 @@ files:
102
91
  - .gitignore
103
92
  - .travis.yml
104
93
  - Gemfile
105
- - Gemfile.lock
106
94
  - LICENSE.txt
107
95
  - README.md
108
96
  - Rakefile
@@ -110,17 +98,23 @@ files:
110
98
  - lib/paranoia_uniqueness_validator/validations/uniqueness_without_deleted.rb
111
99
  - lib/paranoia_uniqueness_validator/version.rb
112
100
  - paranoia_uniqueness_validator.gemspec
101
+ - spec/dummy/.gitignore
113
102
  - spec/dummy/.rspec
114
103
  - spec/dummy/README.rdoc
115
104
  - spec/dummy/Rakefile
116
105
  - spec/dummy/app/assets/javascripts/application.js
117
106
  - spec/dummy/app/assets/stylesheets/application.css
118
107
  - spec/dummy/app/controllers/application_controller.rb
108
+ - spec/dummy/app/controllers/concerns/.keep
119
109
  - spec/dummy/app/helpers/application_helper.rb
120
- - spec/dummy/app/mailers/.gitkeep
121
- - spec/dummy/app/models/.gitkeep
110
+ - spec/dummy/app/mailers/.keep
111
+ - spec/dummy/app/models/.keep
112
+ - spec/dummy/app/models/concerns/.keep
122
113
  - spec/dummy/app/models/dummy_model.rb
123
114
  - spec/dummy/app/views/layouts/application.html.erb
115
+ - spec/dummy/bin/bundle
116
+ - spec/dummy/bin/rails
117
+ - spec/dummy/bin/rake
124
118
  - spec/dummy/config.ru
125
119
  - spec/dummy/config/application.rb
126
120
  - spec/dummy/config/boot.rb
@@ -130,6 +124,7 @@ files:
130
124
  - spec/dummy/config/environments/production.rb
131
125
  - spec/dummy/config/environments/test.rb
132
126
  - spec/dummy/config/initializers/backtrace_silencers.rb
127
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
133
128
  - spec/dummy/config/initializers/inflections.rb
134
129
  - spec/dummy/config/initializers/mime_types.rb
135
130
  - spec/dummy/config/initializers/secret_token.rb
@@ -137,61 +132,64 @@ files:
137
132
  - spec/dummy/config/initializers/wrap_parameters.rb
138
133
  - spec/dummy/config/locales/en.yml
139
134
  - spec/dummy/config/routes.rb
140
- - spec/dummy/db/migrate/20121009200838_create_dummy_models.rb
135
+ - spec/dummy/db/migrate/20130511080827_create_dummy_models.rb
141
136
  - spec/dummy/db/schema.rb
137
+ - spec/dummy/db/seeds.rb
142
138
  - spec/dummy/db/test.sqlite3
143
- - spec/dummy/lib/assets/.gitkeep
144
- - spec/dummy/log/.gitkeep
139
+ - spec/dummy/lib/assets/.keep
140
+ - spec/dummy/lib/tasks/.keep
141
+ - spec/dummy/log/.keep
145
142
  - spec/dummy/public/404.html
146
143
  - spec/dummy/public/422.html
147
144
  - spec/dummy/public/500.html
148
145
  - spec/dummy/public/favicon.ico
149
- - spec/dummy/script/rails
146
+ - spec/dummy/public/robots.txt
147
+ - spec/dummy/vendor/assets/javascripts/.keep
148
+ - spec/dummy/vendor/assets/stylesheets/.keep
150
149
  - spec/spec_helper.rb
151
150
  - spec/validations/uniqueness_without_deleted_spec.rb
152
151
  homepage: ''
153
152
  licenses: []
153
+ metadata: {}
154
154
  post_install_message:
155
155
  rdoc_options: []
156
156
  require_paths:
157
157
  - lib
158
158
  required_ruby_version: !ruby/object:Gem::Requirement
159
- none: false
160
159
  requirements:
161
- - - ! '>='
160
+ - - '>='
162
161
  - !ruby/object:Gem::Version
163
162
  version: '0'
164
- segments:
165
- - 0
166
- hash: 2743772073659751577
167
163
  required_rubygems_version: !ruby/object:Gem::Requirement
168
- none: false
169
164
  requirements:
170
- - - ! '>='
165
+ - - '>='
171
166
  - !ruby/object:Gem::Version
172
167
  version: '0'
173
- segments:
174
- - 0
175
- hash: 2743772073659751577
176
168
  requirements: []
177
169
  rubyforge_project:
178
- rubygems_version: 1.8.24
170
+ rubygems_version: 2.0.0
179
171
  signing_key:
180
- specification_version: 3
172
+ specification_version: 4
181
173
  summary: Validate unique fields without letting those pesky deleted records get in
182
174
  the way. Great for use with Paranoia.
183
175
  test_files:
176
+ - spec/dummy/.gitignore
184
177
  - spec/dummy/.rspec
185
178
  - spec/dummy/README.rdoc
186
179
  - spec/dummy/Rakefile
187
180
  - spec/dummy/app/assets/javascripts/application.js
188
181
  - spec/dummy/app/assets/stylesheets/application.css
189
182
  - spec/dummy/app/controllers/application_controller.rb
183
+ - spec/dummy/app/controllers/concerns/.keep
190
184
  - spec/dummy/app/helpers/application_helper.rb
191
- - spec/dummy/app/mailers/.gitkeep
192
- - spec/dummy/app/models/.gitkeep
185
+ - spec/dummy/app/mailers/.keep
186
+ - spec/dummy/app/models/.keep
187
+ - spec/dummy/app/models/concerns/.keep
193
188
  - spec/dummy/app/models/dummy_model.rb
194
189
  - spec/dummy/app/views/layouts/application.html.erb
190
+ - spec/dummy/bin/bundle
191
+ - spec/dummy/bin/rails
192
+ - spec/dummy/bin/rake
195
193
  - spec/dummy/config.ru
196
194
  - spec/dummy/config/application.rb
197
195
  - spec/dummy/config/boot.rb
@@ -201,6 +199,7 @@ test_files:
201
199
  - spec/dummy/config/environments/production.rb
202
200
  - spec/dummy/config/environments/test.rb
203
201
  - spec/dummy/config/initializers/backtrace_silencers.rb
202
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
204
203
  - spec/dummy/config/initializers/inflections.rb
205
204
  - spec/dummy/config/initializers/mime_types.rb
206
205
  - spec/dummy/config/initializers/secret_token.rb
@@ -208,15 +207,19 @@ test_files:
208
207
  - spec/dummy/config/initializers/wrap_parameters.rb
209
208
  - spec/dummy/config/locales/en.yml
210
209
  - spec/dummy/config/routes.rb
211
- - spec/dummy/db/migrate/20121009200838_create_dummy_models.rb
210
+ - spec/dummy/db/migrate/20130511080827_create_dummy_models.rb
212
211
  - spec/dummy/db/schema.rb
212
+ - spec/dummy/db/seeds.rb
213
213
  - spec/dummy/db/test.sqlite3
214
- - spec/dummy/lib/assets/.gitkeep
215
- - spec/dummy/log/.gitkeep
214
+ - spec/dummy/lib/assets/.keep
215
+ - spec/dummy/lib/tasks/.keep
216
+ - spec/dummy/log/.keep
216
217
  - spec/dummy/public/404.html
217
218
  - spec/dummy/public/422.html
218
219
  - spec/dummy/public/500.html
219
220
  - spec/dummy/public/favicon.ico
220
- - spec/dummy/script/rails
221
+ - spec/dummy/public/robots.txt
222
+ - spec/dummy/vendor/assets/javascripts/.keep
223
+ - spec/dummy/vendor/assets/stylesheets/.keep
221
224
  - spec/spec_helper.rb
222
225
  - spec/validations/uniqueness_without_deleted_spec.rb
data/Gemfile.lock DELETED
@@ -1,117 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- paranoia_uniqueness_validator (0.1.0)
5
- activerecord (~> 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionmailer (3.2.8)
11
- actionpack (= 3.2.8)
12
- mail (~> 2.4.4)
13
- actionpack (3.2.8)
14
- activemodel (= 3.2.8)
15
- activesupport (= 3.2.8)
16
- builder (~> 3.0.0)
17
- erubis (~> 2.7.0)
18
- journey (~> 1.0.4)
19
- rack (~> 1.4.0)
20
- rack-cache (~> 1.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.1.3)
23
- activemodel (3.2.8)
24
- activesupport (= 3.2.8)
25
- builder (~> 3.0.0)
26
- activerecord (3.2.8)
27
- activemodel (= 3.2.8)
28
- activesupport (= 3.2.8)
29
- arel (~> 3.0.2)
30
- tzinfo (~> 0.3.29)
31
- activeresource (3.2.8)
32
- activemodel (= 3.2.8)
33
- activesupport (= 3.2.8)
34
- activesupport (3.2.8)
35
- i18n (~> 0.6)
36
- multi_json (~> 1.0)
37
- arel (3.0.2)
38
- builder (3.0.3)
39
- database_cleaner (0.8.0)
40
- diff-lcs (1.1.3)
41
- erubis (2.7.0)
42
- hike (1.2.1)
43
- i18n (0.6.1)
44
- journey (1.0.4)
45
- json (1.7.5)
46
- mail (2.4.4)
47
- i18n (>= 0.4.0)
48
- mime-types (~> 1.16)
49
- treetop (~> 1.4.8)
50
- mime-types (1.19)
51
- multi_json (1.3.6)
52
- paranoia (1.1.0)
53
- activerecord (>= 3.0.0)
54
- polyglot (0.3.3)
55
- rack (1.4.1)
56
- rack-cache (1.2)
57
- rack (>= 0.4)
58
- rack-ssl (1.3.2)
59
- rack
60
- rack-test (0.6.2)
61
- rack (>= 1.0)
62
- rails (3.2.8)
63
- actionmailer (= 3.2.8)
64
- actionpack (= 3.2.8)
65
- activerecord (= 3.2.8)
66
- activeresource (= 3.2.8)
67
- activesupport (= 3.2.8)
68
- bundler (~> 1.0)
69
- railties (= 3.2.8)
70
- railties (3.2.8)
71
- actionpack (= 3.2.8)
72
- activesupport (= 3.2.8)
73
- rack-ssl (~> 1.3.2)
74
- rake (>= 0.8.7)
75
- rdoc (~> 3.4)
76
- thor (>= 0.14.6, < 2.0)
77
- rake (0.9.2.2)
78
- rdoc (3.12)
79
- json (~> 1.4)
80
- rspec (2.11.0)
81
- rspec-core (~> 2.11.0)
82
- rspec-expectations (~> 2.11.0)
83
- rspec-mocks (~> 2.11.0)
84
- rspec-core (2.11.1)
85
- rspec-expectations (2.11.3)
86
- diff-lcs (~> 1.1.3)
87
- rspec-mocks (2.11.3)
88
- rspec-rails (2.11.0)
89
- actionpack (>= 3.0)
90
- activesupport (>= 3.0)
91
- railties (>= 3.0)
92
- rspec (~> 2.11.0)
93
- sprockets (2.1.3)
94
- hike (~> 1.2)
95
- rack (~> 1.0)
96
- tilt (~> 1.1, != 1.3.0)
97
- sqlite3 (1.3.6)
98
- thor (0.16.0)
99
- tilt (1.3.3)
100
- treetop (1.4.10)
101
- polyglot
102
- polyglot (>= 0.3.1)
103
- tzinfo (0.3.33)
104
-
105
- PLATFORMS
106
- ruby
107
-
108
- DEPENDENCIES
109
- activerecord-jdbc-adapter
110
- activerecord-jdbcsqlite3-adapter
111
- database_cleaner
112
- jruby-openssl
113
- paranoia
114
- paranoia_uniqueness_validator!
115
- rails (~> 3.0)
116
- rspec-rails
117
- sqlite3
@@ -1,6 +0,0 @@
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'