schema_validations 0.2.0 → 0.2.1

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/.gitignore CHANGED
@@ -23,3 +23,5 @@ pkg
23
23
  *.log
24
24
  *.sqlite3
25
25
  Gemfile.lock
26
+ gemfiles/*.lock
27
+ gemfiles/**/*.lock
data/README.rdoc CHANGED
@@ -123,6 +123,7 @@ were never needed for the logged use case.
123
123
  == History
124
124
 
125
125
  * Recent Release notes:
126
+ * 0.2.1 - rails 2.3 compatibility (check for Rails::Railties symbol). thanks to https://github.com/thehappycoder
126
127
  * 0.2.0 - new feature: ActiveRecord#validators and ActiveRecord#validators_on now ensure schema_validations are loaded
127
128
 
128
129
  * SchemaValidations is derived from the "Red Hill On Rails" plugin schema_validations originally created by harukizaemon (https://github.com/harukizaemon)
@@ -1,108 +1,109 @@
1
1
  PATH
2
2
  remote: /Users/ronen/github/schema_validations
3
3
  specs:
4
- schema_validations (0.1.2)
4
+ schema_validations (0.2.0)
5
5
  schema_plus
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- actionmailer (3.2.5)
11
- actionpack (= 3.2.5)
10
+ actionmailer (3.2.11)
11
+ actionpack (= 3.2.11)
12
12
  mail (~> 2.4.4)
13
- actionpack (3.2.5)
14
- activemodel (= 3.2.5)
15
- activesupport (= 3.2.5)
13
+ actionpack (3.2.11)
14
+ activemodel (= 3.2.11)
15
+ activesupport (= 3.2.11)
16
16
  builder (~> 3.0.0)
17
17
  erubis (~> 2.7.0)
18
- journey (~> 1.0.1)
18
+ journey (~> 1.0.4)
19
19
  rack (~> 1.4.0)
20
20
  rack-cache (~> 1.2)
21
21
  rack-test (~> 0.6.1)
22
- sprockets (~> 2.1.3)
23
- activemodel (3.2.5)
24
- activesupport (= 3.2.5)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.11)
24
+ activesupport (= 3.2.11)
25
25
  builder (~> 3.0.0)
26
- activerecord (3.2.5)
27
- activemodel (= 3.2.5)
28
- activesupport (= 3.2.5)
26
+ activerecord (3.2.11)
27
+ activemodel (= 3.2.11)
28
+ activesupport (= 3.2.11)
29
29
  arel (~> 3.0.2)
30
30
  tzinfo (~> 0.3.29)
31
- activeresource (3.2.5)
32
- activemodel (= 3.2.5)
33
- activesupport (= 3.2.5)
34
- activesupport (3.2.5)
31
+ activeresource (3.2.11)
32
+ activemodel (= 3.2.11)
33
+ activesupport (= 3.2.11)
34
+ activesupport (3.2.11)
35
35
  i18n (~> 0.6)
36
36
  multi_json (~> 1.0)
37
37
  arel (3.0.2)
38
- builder (3.0.0)
38
+ builder (3.0.4)
39
39
  diff-lcs (1.1.3)
40
40
  erubis (2.7.0)
41
41
  hike (1.2.1)
42
- i18n (0.6.0)
43
- journey (1.0.3)
44
- json (1.7.3)
42
+ i18n (0.6.1)
43
+ journey (1.0.4)
44
+ json (1.7.6)
45
45
  mail (2.4.4)
46
46
  i18n (>= 0.4.0)
47
47
  mime-types (~> 1.16)
48
48
  treetop (~> 1.4.8)
49
- mime-types (1.18)
50
- multi_json (1.3.6)
49
+ mime-types (1.19)
50
+ multi_json (1.5.0)
51
51
  polyglot (0.3.3)
52
- rack (1.4.1)
52
+ rack (1.4.4)
53
53
  rack-cache (1.2)
54
54
  rack (>= 0.4)
55
55
  rack-ssl (1.3.2)
56
56
  rack
57
- rack-test (0.6.1)
57
+ rack-test (0.6.2)
58
58
  rack (>= 1.0)
59
- rails (3.2.5)
60
- actionmailer (= 3.2.5)
61
- actionpack (= 3.2.5)
62
- activerecord (= 3.2.5)
63
- activeresource (= 3.2.5)
64
- activesupport (= 3.2.5)
59
+ rails (3.2.11)
60
+ actionmailer (= 3.2.11)
61
+ actionpack (= 3.2.11)
62
+ activerecord (= 3.2.11)
63
+ activeresource (= 3.2.11)
64
+ activesupport (= 3.2.11)
65
65
  bundler (~> 1.0)
66
- railties (= 3.2.5)
67
- railties (3.2.5)
68
- actionpack (= 3.2.5)
69
- activesupport (= 3.2.5)
66
+ railties (= 3.2.11)
67
+ railties (3.2.11)
68
+ actionpack (= 3.2.11)
69
+ activesupport (= 3.2.11)
70
70
  rack-ssl (~> 1.3.2)
71
71
  rake (>= 0.8.7)
72
72
  rdoc (~> 3.4)
73
73
  thor (>= 0.14.6, < 2.0)
74
- rake (0.9.2.2)
74
+ rake (10.0.3)
75
75
  rdoc (3.12)
76
76
  json (~> 1.4)
77
- rspec (2.10.0)
78
- rspec-core (~> 2.10.0)
79
- rspec-expectations (~> 2.10.0)
80
- rspec-mocks (~> 2.10.0)
81
- rspec-core (2.10.1)
82
- rspec-expectations (2.10.0)
77
+ rspec (2.12.0)
78
+ rspec-core (~> 2.12.0)
79
+ rspec-expectations (~> 2.12.0)
80
+ rspec-mocks (~> 2.12.0)
81
+ rspec-core (2.12.2)
82
+ rspec-expectations (2.12.1)
83
83
  diff-lcs (~> 1.1.3)
84
- rspec-mocks (2.10.1)
85
- schema_plus (0.4.1)
86
- rails
84
+ rspec-mocks (2.12.1)
85
+ schema_plus (1.0.0)
86
+ rails (>= 3.2)
87
87
  valuable
88
- simplecov (0.6.4)
88
+ simplecov (0.7.1)
89
89
  multi_json (~> 1.0)
90
- simplecov-html (~> 0.5.3)
90
+ simplecov-html (~> 0.7.1)
91
91
  simplecov-gem-adapter (1.0.1)
92
92
  simplecov
93
- simplecov-html (0.5.3)
94
- sprockets (2.1.3)
93
+ simplecov-html (0.7.1)
94
+ sprockets (2.2.2)
95
95
  hike (~> 1.2)
96
+ multi_json (~> 1.0)
96
97
  rack (~> 1.0)
97
98
  tilt (~> 1.1, != 1.3.0)
98
- sqlite3 (1.3.6)
99
- thor (0.15.2)
99
+ sqlite3 (1.3.7)
100
+ thor (0.16.0)
100
101
  tilt (1.3.3)
101
- treetop (1.4.10)
102
+ treetop (1.4.12)
102
103
  polyglot
103
104
  polyglot (>= 0.3.1)
104
- tzinfo (0.3.33)
105
- valuable (0.9.5)
105
+ tzinfo (0.3.35)
106
+ valuable (0.9.6)
106
107
 
107
108
  PLATFORMS
108
109
  ruby
@@ -1,3 +1,3 @@
1
1
  module SchemaValidations
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/runspecs CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'optparse'
4
4
  require 'ostruct'
5
+ require 'shellwords'
5
6
  require 'tempfile'
6
7
 
7
8
  RUBY_VERSIONS = %W[1.8.7 1.9.2 1.9.3]
@@ -39,6 +40,10 @@ OptionParser.new do |opts|
39
40
  o.rails_versions = [RAILS_VERSIONS.last]
40
41
  end
41
42
 
43
+ opts.on("--rspec", "run rspec rather than rake") do |v|
44
+ o.rspec = v
45
+ end
46
+
42
47
  end.parse!
43
48
 
44
49
 
@@ -53,7 +58,6 @@ combos = o.ruby_versions.product(o.rails_versions).map{|product| Combo.new(*prod
53
58
 
54
59
 
55
60
  GEMFILES_DIR = File.expand_path('../gemfiles', __FILE__)
56
- total = o.ruby_versions.size * o.rails_versions.size
57
61
  errs = []
58
62
  combos.each_with_index do |combo, n|
59
63
  ruby = combo.ruby
@@ -64,11 +68,13 @@ combos.each_with_index do |combo, n|
64
68
  "bundle update"
65
69
  when o.install
66
70
  "bundle install"
71
+ when o.rspec
72
+ "bundle exec rspec"
67
73
  else
68
74
  "bundle exec rake spec"
69
75
  end
70
76
 
71
- command = %Q{BUNDLE_GEMFILE="#{File.join(GEMFILES_DIR, "Gemfile.rails-#{rails}")}" rvm #{ruby} do #{cmd}}
77
+ command = %Q{BUNDLE_GEMFILE="#{File.join(GEMFILES_DIR, "Gemfile.rails-#{rails}")}" rvm #{ruby} do #{cmd} #{Shellwords.join(ARGV)}}
72
78
 
73
79
  puts "\n\n*** ruby version #{ruby} - rails version #{rails} [#{n+1} of #{combos.size}]\n\n#{command}"
74
80
 
@@ -81,3 +87,4 @@ combos.each_with_index do |combo, n|
81
87
  end
82
88
  end
83
89
  puts errs.any? ? "\n*** #{errs.size} failures:\n\t#{errs.join("\n\t")}" : "\n*** #{combos.size > 1 ? 'all versions' : 'spec'} succeeded ***" unless o.dry_run
90
+ exit !errs.any?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-20 00:00:00.000000000 Z
13
+ date: 2013-02-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: schema_plus
@@ -142,11 +142,8 @@ files:
142
142
  - README.rdoc
143
143
  - Rakefile
144
144
  - gemfiles/Gemfile.rails-2.3
145
- - gemfiles/Gemfile.rails-2.3.lock
146
145
  - gemfiles/Gemfile.rails-3.0
147
- - gemfiles/Gemfile.rails-3.0.lock
148
146
  - gemfiles/Gemfile.rails-3.1
149
- - gemfiles/Gemfile.rails-3.1.lock
150
147
  - gemfiles/Gemfile.rails-3.2
151
148
  - gemfiles/Gemfile.rails-3.2.lock
152
149
  - init.rb
@@ -174,7 +171,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
171
  version: '0'
175
172
  segments:
176
173
  - 0
177
- hash: 4384088821395640106
174
+ hash: -3959957521512513624
178
175
  required_rubygems_version: !ruby/object:Gem::Requirement
179
176
  none: false
180
177
  requirements:
@@ -183,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
180
  version: '0'
184
181
  segments:
185
182
  - 0
186
- hash: 4384088821395640106
183
+ hash: -3959957521512513624
187
184
  requirements: []
188
185
  rubyforge_project: schema_validations
189
186
  rubygems_version: 1.8.24
@@ -1,65 +0,0 @@
1
- PATH
2
- remote: /Users/ronen/github/schema_validations
3
- specs:
4
- schema_validations (0.1.2)
5
- schema_plus
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- actionmailer (2.3.14)
11
- actionpack (= 2.3.14)
12
- actionpack (2.3.14)
13
- activesupport (= 2.3.14)
14
- rack (~> 1.1.0)
15
- activerecord (2.3.14)
16
- activesupport (= 2.3.14)
17
- activeresource (2.3.14)
18
- activesupport (= 2.3.14)
19
- activesupport (2.3.14)
20
- diff-lcs (1.1.3)
21
- json (1.7.3)
22
- multi_json (1.3.6)
23
- rack (1.1.3)
24
- rails (2.3.14)
25
- actionmailer (= 2.3.14)
26
- actionpack (= 2.3.14)
27
- activerecord (= 2.3.14)
28
- activeresource (= 2.3.14)
29
- activesupport (= 2.3.14)
30
- rake (>= 0.8.3)
31
- rake (0.9.2.2)
32
- rdoc (3.12)
33
- json (~> 1.4)
34
- rspec (2.10.0)
35
- rspec-core (~> 2.10.0)
36
- rspec-expectations (~> 2.10.0)
37
- rspec-mocks (~> 2.10.0)
38
- rspec-core (2.10.1)
39
- rspec-expectations (2.10.0)
40
- diff-lcs (~> 1.1.3)
41
- rspec-mocks (2.10.1)
42
- schema_plus (0.4.1)
43
- rails
44
- valuable
45
- simplecov (0.6.4)
46
- multi_json (~> 1.0)
47
- simplecov-html (~> 0.5.3)
48
- simplecov-gem-adapter (1.0.1)
49
- simplecov
50
- simplecov-html (0.5.3)
51
- sqlite3 (1.3.6)
52
- valuable (0.9.5)
53
-
54
- PLATFORMS
55
- ruby
56
-
57
- DEPENDENCIES
58
- rails (~> 2.3)
59
- rake
60
- rdoc
61
- rspec
62
- schema_validations!
63
- simplecov
64
- simplecov-gem-adapter
65
- sqlite3
@@ -1,110 +0,0 @@
1
- PATH
2
- remote: /Users/ronen/github/schema_validations
3
- specs:
4
- schema_validations (0.1.2)
5
- schema_plus
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- abstract (1.0.0)
11
- actionmailer (3.0.13)
12
- actionpack (= 3.0.13)
13
- mail (~> 2.2.19)
14
- actionpack (3.0.13)
15
- activemodel (= 3.0.13)
16
- activesupport (= 3.0.13)
17
- builder (~> 2.1.2)
18
- erubis (~> 2.6.6)
19
- i18n (~> 0.5.0)
20
- rack (~> 1.2.5)
21
- rack-mount (~> 0.6.14)
22
- rack-test (~> 0.5.7)
23
- tzinfo (~> 0.3.23)
24
- activemodel (3.0.13)
25
- activesupport (= 3.0.13)
26
- builder (~> 2.1.2)
27
- i18n (~> 0.5.0)
28
- activerecord (3.0.13)
29
- activemodel (= 3.0.13)
30
- activesupport (= 3.0.13)
31
- arel (~> 2.0.10)
32
- tzinfo (~> 0.3.23)
33
- activeresource (3.0.13)
34
- activemodel (= 3.0.13)
35
- activesupport (= 3.0.13)
36
- activesupport (3.0.13)
37
- arel (2.0.10)
38
- builder (2.1.2)
39
- diff-lcs (1.1.3)
40
- erubis (2.6.6)
41
- abstract (>= 1.0.0)
42
- i18n (0.5.0)
43
- json (1.7.3)
44
- mail (2.2.19)
45
- activesupport (>= 2.3.6)
46
- i18n (>= 0.4.0)
47
- mime-types (~> 1.16)
48
- treetop (~> 1.4.8)
49
- mime-types (1.18)
50
- multi_json (1.3.6)
51
- polyglot (0.3.3)
52
- rack (1.2.5)
53
- rack-mount (0.6.14)
54
- rack (>= 1.0.0)
55
- rack-test (0.5.7)
56
- rack (>= 1.0)
57
- rails (3.0.13)
58
- actionmailer (= 3.0.13)
59
- actionpack (= 3.0.13)
60
- activerecord (= 3.0.13)
61
- activeresource (= 3.0.13)
62
- activesupport (= 3.0.13)
63
- bundler (~> 1.0)
64
- railties (= 3.0.13)
65
- railties (3.0.13)
66
- actionpack (= 3.0.13)
67
- activesupport (= 3.0.13)
68
- rake (>= 0.8.7)
69
- rdoc (~> 3.4)
70
- thor (~> 0.14.4)
71
- rake (0.9.2.2)
72
- rdoc (3.12)
73
- json (~> 1.4)
74
- rspec (2.10.0)
75
- rspec-core (~> 2.10.0)
76
- rspec-expectations (~> 2.10.0)
77
- rspec-mocks (~> 2.10.0)
78
- rspec-core (2.10.1)
79
- rspec-expectations (2.10.0)
80
- diff-lcs (~> 1.1.3)
81
- rspec-mocks (2.10.1)
82
- schema_plus (0.4.1)
83
- rails
84
- valuable
85
- simplecov (0.6.4)
86
- multi_json (~> 1.0)
87
- simplecov-html (~> 0.5.3)
88
- simplecov-gem-adapter (1.0.1)
89
- simplecov
90
- simplecov-html (0.5.3)
91
- sqlite3 (1.3.6)
92
- thor (0.14.6)
93
- treetop (1.4.10)
94
- polyglot
95
- polyglot (>= 0.3.1)
96
- tzinfo (0.3.33)
97
- valuable (0.9.5)
98
-
99
- PLATFORMS
100
- ruby
101
-
102
- DEPENDENCIES
103
- rails (~> 3.0.0)
104
- rake
105
- rdoc
106
- rspec
107
- schema_validations!
108
- simplecov
109
- simplecov-gem-adapter
110
- sqlite3
@@ -1,120 +0,0 @@
1
- PATH
2
- remote: /Users/ronen/github/schema_validations
3
- specs:
4
- schema_validations (0.1.2)
5
- schema_plus
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- actionmailer (3.1.5)
11
- actionpack (= 3.1.5)
12
- mail (~> 2.3.3)
13
- actionpack (3.1.5)
14
- activemodel (= 3.1.5)
15
- activesupport (= 3.1.5)
16
- builder (~> 3.0.0)
17
- erubis (~> 2.7.0)
18
- i18n (~> 0.6)
19
- rack (~> 1.3.6)
20
- rack-cache (~> 1.2)
21
- rack-mount (~> 0.8.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.0.4)
24
- activemodel (3.1.5)
25
- activesupport (= 3.1.5)
26
- builder (~> 3.0.0)
27
- i18n (~> 0.6)
28
- activerecord (3.1.5)
29
- activemodel (= 3.1.5)
30
- activesupport (= 3.1.5)
31
- arel (~> 2.2.3)
32
- tzinfo (~> 0.3.29)
33
- activeresource (3.1.5)
34
- activemodel (= 3.1.5)
35
- activesupport (= 3.1.5)
36
- activesupport (3.1.5)
37
- multi_json (>= 1.0, < 1.3)
38
- arel (2.2.3)
39
- builder (3.0.0)
40
- diff-lcs (1.1.3)
41
- erubis (2.7.0)
42
- hike (1.2.1)
43
- i18n (0.6.0)
44
- json (1.7.3)
45
- mail (2.3.3)
46
- i18n (>= 0.4.0)
47
- mime-types (~> 1.16)
48
- treetop (~> 1.4.8)
49
- mime-types (1.18)
50
- multi_json (1.2.0)
51
- polyglot (0.3.3)
52
- rack (1.3.6)
53
- rack-cache (1.2)
54
- rack (>= 0.4)
55
- rack-mount (0.8.3)
56
- rack (>= 1.0.0)
57
- rack-ssl (1.3.2)
58
- rack
59
- rack-test (0.6.1)
60
- rack (>= 1.0)
61
- rails (3.1.5)
62
- actionmailer (= 3.1.5)
63
- actionpack (= 3.1.5)
64
- activerecord (= 3.1.5)
65
- activeresource (= 3.1.5)
66
- activesupport (= 3.1.5)
67
- bundler (~> 1.0)
68
- railties (= 3.1.5)
69
- railties (3.1.5)
70
- actionpack (= 3.1.5)
71
- activesupport (= 3.1.5)
72
- rack-ssl (~> 1.3.2)
73
- rake (>= 0.8.7)
74
- rdoc (~> 3.4)
75
- thor (~> 0.14.6)
76
- rake (0.9.2.2)
77
- rdoc (3.12)
78
- json (~> 1.4)
79
- rspec (2.10.0)
80
- rspec-core (~> 2.10.0)
81
- rspec-expectations (~> 2.10.0)
82
- rspec-mocks (~> 2.10.0)
83
- rspec-core (2.10.1)
84
- rspec-expectations (2.10.0)
85
- diff-lcs (~> 1.1.3)
86
- rspec-mocks (2.10.1)
87
- schema_plus (0.4.1)
88
- rails
89
- valuable
90
- simplecov (0.6.4)
91
- multi_json (~> 1.0)
92
- simplecov-html (~> 0.5.3)
93
- simplecov-gem-adapter (1.0.1)
94
- simplecov
95
- simplecov-html (0.5.3)
96
- sprockets (2.0.4)
97
- hike (~> 1.2)
98
- rack (~> 1.0)
99
- tilt (~> 1.1, != 1.3.0)
100
- sqlite3 (1.3.6)
101
- thor (0.14.6)
102
- tilt (1.3.3)
103
- treetop (1.4.10)
104
- polyglot
105
- polyglot (>= 0.3.1)
106
- tzinfo (0.3.33)
107
- valuable (0.9.5)
108
-
109
- PLATFORMS
110
- ruby
111
-
112
- DEPENDENCIES
113
- rails (~> 3.1.0)
114
- rake
115
- rdoc
116
- rspec
117
- schema_validations!
118
- simplecov
119
- simplecov-gem-adapter
120
- sqlite3