paranoia_uniqueness_validator 1.0.0 → 1.0.1

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: 601717034f577e8935861efa5d5caceb8c65b597
4
- data.tar.gz: 40d5d12660669f836e776dce8d4daf813167b305
3
+ metadata.gz: a8b90099bcbf9b7c0c7b0d028e59ef9523a16c8a
4
+ data.tar.gz: 67ca17220649e95757c4516c44f2ce0120c085c9
5
5
  SHA512:
6
- metadata.gz: c5db22db69b1f1d7e69fbf2939e87760f20dccf23a09441f58a7934193e1bfad529329bbbf8f52b4c53fb00ac88796d1647dca2860dc9d456d7c71adcf309fff
7
- data.tar.gz: b098e4c89003bdc3e945e010987b2cc5ce51b7b2ca636e85d3fcb6f25d741783d68e77425caeb9e90c412b462eb3eb289966bddfd47d3e2e93bef6f6fae576b5
6
+ metadata.gz: a015e0b9a1735a0f3b232182e1358f1cf7302add1c4a2c43904b1172ad9b4fb62938d226b6116b3c1df6243b22c40f98259e68421b78348b1bb1346627f0dd50
7
+ data.tar.gz: 3b732dbc202f68aa2bb3a3d7e63faffcb0b7bfb473468bce34ba996e49cf3accedf98d7b8698aa69c9288fa1c186aae30b87b5596ca3170e0271481d7291001d
data/.travis.yml CHANGED
@@ -5,4 +5,7 @@ rvm:
5
5
  - ruby-head
6
6
  - jruby-19mode
7
7
  - jruby-head
8
- - rbx-19mode
8
+ - rbx-19mode
9
+ matrix:
10
+ allow_failtures:
11
+ - rvm: ruby-head
data/Gemfile CHANGED
@@ -11,3 +11,9 @@ end
11
11
  platforms :ruby do
12
12
  gem "sqlite3"
13
13
  end
14
+
15
+ group :development do
16
+ gem 'bundler'
17
+ gem 'coveralls', :require => false
18
+ gem 'rake'
19
+ end
data/README.md CHANGED
@@ -4,7 +4,7 @@ Adds validator validates_uniqueness_without_deleted.
4
4
 
5
5
  This validator will ignore any record that has a non-null value for the deleted_at field. This gem was made specifically for use with the [Paranoia](https://github.com/radar/paranoia) gem but it can be used with any gem that uses the deleted_at field for marking records as deleted.
6
6
 
7
- [![Build Status](https://secure.travis-ci.org/anthonator/paranoia_uniqueness_validator.png)](http://travis-ci.org/anthonator/paranoia_uniqueness_validator) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/anthonator/paranoia_uniqueness_validator)
7
+ [![Gem Version](https://badge.fury.io/rb/paranoia_uniqueness_validator.png)](http://badge.fury.io/rb/paranoia_uniqueness_validator) [![Build Status](https://secure.travis-ci.org/anthonator/paranoia_uniqueness_validator.png)](http://travis-ci.org/anthonator/paranoia_uniqueness_validator) [![Dependency Status](https://gemnasium.com/anthonator/paranoia_uniqueness_validator.png)](https://gemnasium.com/anthonator/paranoia_uniqueness_validator) [![Coverage Status](https://coveralls.io/repos/anthonator/paranoia_uniqueness_validator/badge.png)](https://coveralls.io/r/anthonator/paranoia_uniqueness_validator) [![Code Climate](https://codeclimate.com/github/anthonator/paranoia_uniqueness_validator.png)](https://codeclimate.com/github/anthonator/paranoia_uniqueness_validator)
8
8
 
9
9
  ## Installation
10
10
 
@@ -14,7 +14,7 @@ Add this line to your application's Gemfile:
14
14
  gem 'paranoia_uniqueness_validator', '0.1.0'
15
15
 
16
16
  # Rails 4
17
- gem 'paranoia_uniqueness_validator, '1.0.0'
17
+ gem 'paranoia_uniqueness_validator', '1.0.0'
18
18
  And then execute:
19
19
 
20
20
  $ bundle
@@ -42,3 +42,11 @@ end
42
42
  3. Commit your changes (`git commit -am 'Add some feature'`)
43
43
  4. Push to the branch (`git push origin my-new-feature`)
44
44
  5. Create new Pull Request
45
+
46
+ ## Credits
47
+
48
+ [![Sticksnleaves](http://sticksnleaves-wordpress.herokuapp.com/wp-content/themes/sticksnleaves/images/snl-logo-116x116.png)](http://www.sticksnleaves.com)
49
+
50
+ paranoia_uniqueness_validator is maintained and funded by [Sticksnleaves](http://www.sticksnleaves.com)
51
+
52
+ Thanks to all of our [contributors](https://github.com/anthonator/paranoia_uniqueness_validator/graphs/contributors)
@@ -1,3 +1,3 @@
1
1
  module ParanoiaUniquenessValidator
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -17,10 +17,10 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency "activerecord", "~> 4.0.0.rc1"
20
+ gem.add_dependency "activerecord", ">= 4.0.0"
21
21
 
22
22
  gem.add_development_dependency "paranoia"
23
- gem.add_development_dependency "database_cleaner", "~> 1.0.0.RC1"
24
- gem.add_development_dependency "rails", "~> 4.0.0.rc1"
23
+ gem.add_development_dependency "database_cleaner"
24
+ gem.add_development_dependency "rails", ">= 4.0.0"
25
25
  gem.add_development_dependency "rspec-rails"
26
26
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  ENV["RAILS_ENV"] = 'test'
2
2
 
3
+ require 'coveralls'
4
+ Coveralls.wear!
5
+
3
6
  # Require dummy Rails app
4
7
  require File.expand_path("../../spec/dummy/config/environment", __FILE__)
5
8
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paranoia_uniqueness_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-11 00:00:00.000000000 Z
11
+ date: 2013-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0.rc1
19
+ version: 4.0.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: 4.0.0.rc1
26
+ version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: paranoia
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,30 +42,30 @@ dependencies:
42
42
  name: database_cleaner
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.0.RC1
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0.RC1
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 4.0.0.rc1
61
+ version: 4.0.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
- version: 4.0.0.rc1
68
+ version: 4.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-rails
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.0.0
170
+ rubygems_version: 2.0.3
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Validate unique fields without letting those pesky deleted records get in