validation_scopes 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/{CHANGELOG → CHANGELOG.md} +13 -7
  3. data/README.md +3 -14
  4. metadata +22 -24
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8771aa3bbf22a50d74be7e5761a076c2f2b917e3
4
+ data.tar.gz: f04d4bbf0d9231cd495635c1ed86684513f15491
5
+ SHA512:
6
+ metadata.gz: 59644834b4f7918e62a99ba3548ff591cc6553dfd8f2f1e643effa37b9db87122c628aaf01f167d071b6b175c0db48e72553a0bf587aa99adeb2a3c4f1663391
7
+ data.tar.gz: efee7563fdb285f83a2d9aa5a0b4bfe4e944b299bc1131c89d407eeb33cd882c42599e5ec297f11e7de3928e7b1cbc7cee823b147236aafd8983dcb84d8229ce
@@ -1,33 +1,39 @@
1
- == Unreleased
1
+ # 0.5.2 - 2015-06-18
2
2
 
3
+ * Fix Rails 4.2 deprecations and breakages (Tamás Michelberger)
4
+ * Loosen version constraints to allow Rails 4 (Ivan Tkalin)
5
+
6
+ # 0.5.1 - 2013-02-05
7
+
8
+ * Requires 1.9.2
3
9
  * Fix for memory leak described at http://siliconsenthil.in/blog/2013/01/19/validation-scopes-leaks-memory/
4
10
  * Cleaned up .gemspec and removed unnecessary files from distribution
5
11
  * Set up Gemfile for development
6
12
  * Simplified test suite to use pure minitest
7
13
 
8
- == 0.4.1 2012-04-15
14
+ # 0.4.1 - 2012-04-15
9
15
 
10
16
  * Rails 3.1 and 3.2 compatibility
11
17
  * Added the method all_scopes that return all the scopes in a model
12
18
 
13
- == 0.4.0 2011-05-23
19
+ # 0.4.0 - 2011-05-23
14
20
 
15
21
  * Fixed problem with #model_name on proxy class (dynamic_form plugin)
16
22
  * Fixed problem with scoped errors being lost by error_messages_for (dynamic_form plugin)
17
23
  * Fixed Rails3 deprecation warnings
18
24
 
19
- == 0.3.1 2011-02-24
25
+ # 0.3.1 - 2011-02-24
20
26
 
21
27
  * Added Rails3 compatibility
22
28
 
23
- == 0.3.0 2009-01-04
29
+ # 0.3.0 - 2009-01-04
24
30
 
25
31
  * Fixed problem with DelegateClass not picking up method definitions that come after the validation_scope block.
26
32
 
27
- == 0.2.0 2009-01-04
33
+ # 0.2.0 - 2009-01-04
28
34
 
29
35
  * Added basic unit tests using in-memory sqlite3
30
36
 
31
- == 0.1.0 2009-01-03
37
+ # 0.1.0 - 2009-01-03
32
38
 
33
39
  * Initial release. Only tested within an app. Probably has lots of bugs. Test suite forthcoming.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Validation Scopes
1
+ # Validation Scopes [![Build Status](https://travis-ci.org/gtd/validation_scopes.svg?branch=master)](https://travis-ci.org/gtd/validation_scopes)
2
2
 
3
3
  This gem adds a simple class method `validation_scope` to ActiveRecord. This generates a new collection of
4
4
  `ActiveRecord::Errors` that can be manipulated independently of the standard `errors`, `valid?` and `save` methods. The
@@ -68,13 +68,6 @@ For Rails 3 and Ruby 1.8.x use version 0.4.x, however **beware there is a memory
68
68
  For Rails 2 see the 0.3.x version of the gem which is maintained on the [rails2
69
69
  branch](https://github.com/gtd/validation_scopes/tree/rails2)
70
70
 
71
- Why no Ruby 1.8.7 support? Because fixing the memory leak was easy in Ruby 1.9 by removing the deferred proxy class
72
- definition, however this does not work in Ruby 1.8.7 because the ActiveRecord objects methods are not found. The
73
- development of this was described in a [blog article about the design process](http://www.darwinweb.net/articles/80).
74
- I didn't take the time to figure out why this started working in Ruby 1.9.x (smells like something to do with
75
- `instance_eval`) but it does, and I have no inclination to fix issues in 1.8.x anymore. If you happen to know why
76
- offhand though, I'd be glad to hear the reason.
77
-
78
71
 
79
72
  ## Installation
80
73
 
@@ -86,11 +79,7 @@ In your Gemfile:
86
79
 
87
80
  gem 'validation_scopes'
88
81
 
89
- Or old-school-Rails-style, in your environment.rb:
90
-
91
- config.gem 'validation_scopes'
92
-
93
- Outside of Rails:
82
+ Or without Bundler:
94
83
 
95
84
  require 'validation_scopes'
96
85
 
@@ -109,4 +98,4 @@ context of a delegate class, private methods won't work as they would in standar
109
98
 
110
99
  ## Copyright
111
100
 
112
- Copyright (c) 2010-2013 Gabe da Silveira. See LICENSE for details.
101
+ Copyright (c) 2010-2015 Gabe da Silveira. See LICENSE for details.
metadata CHANGED
@@ -1,62 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_scopes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
5
- prerelease:
4
+ version: 0.5.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Gabe da Silveira
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
11
+ date: 2015-06-18 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: '3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3'
30
+ - - "<"
28
31
  - !ruby/object:Gem::Version
29
- version: '3.0'
32
+ version: '5'
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: rake
32
35
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
36
  requirements:
35
- - - ! '>='
37
+ - - ">="
36
38
  - !ruby/object:Gem::Version
37
39
  version: '0'
38
40
  type: :development
39
41
  prerelease: false
40
42
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
43
  requirements:
43
- - - ! '>='
44
+ - - ">="
44
45
  - !ruby/object:Gem::Version
45
46
  version: '0'
46
47
  - !ruby/object:Gem::Dependency
47
48
  name: sqlite3
48
49
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
50
  requirements:
51
- - - ! '>='
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
57
  requirements:
59
- - - ! '>='
58
+ - - ">="
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
61
  description: Define additional sets of validations beyond the standard "errors" that
@@ -70,33 +69,32 @@ extra_rdoc_files:
70
69
  - LICENSE
71
70
  - README.md
72
71
  files:
73
- - CHANGELOG
72
+ - CHANGELOG.md
74
73
  - LICENSE
75
74
  - README.md
76
75
  - lib/validation_scopes.rb
77
76
  homepage: http://github.com/gtd/validation_scopes
78
77
  licenses: []
78
+ metadata: {}
79
79
  post_install_message:
80
80
  rdoc_options: []
81
81
  require_paths:
82
82
  - lib
83
83
  required_ruby_version: !ruby/object:Gem::Requirement
84
- none: false
85
84
  requirements:
86
- - - ! '>='
85
+ - - ">="
87
86
  - !ruby/object:Gem::Version
88
87
  version: 1.9.2
89
88
  required_rubygems_version: !ruby/object:Gem::Requirement
90
- none: false
91
89
  requirements:
92
- - - ! '>='
90
+ - - ">="
93
91
  - !ruby/object:Gem::Version
94
92
  version: '0'
95
93
  requirements: []
96
94
  rubyforge_project:
97
- rubygems_version: 1.8.24
95
+ rubygems_version: 2.4.6
98
96
  signing_key:
99
- specification_version: 3
97
+ specification_version: 4
100
98
  summary: Create sets of validations independent of the life-cycle of an ActiveRecord
101
99
  object
102
100
  test_files: []