validation_reflection 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.7 2010-06-11
2
+ * Enhancement from Sutto:
3
+ ** Use Rails.root if available over RAILS_ROOT
4
+
1
5
  == 0.3.6 2010-02-14
2
6
  * Enhancement from skoppensboer:
3
7
  ** Changes Jeweler spec to reflect only Gemcutter
@@ -1,4 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 6
4
+ :build:
5
+ :patch: 7
@@ -32,8 +32,10 @@ module ActiveRecordExtensions # :nodoc:
32
32
 
33
33
  extend self
34
34
 
35
- # Look for config/initalizer here in:
36
- CONFIG_PATH = ::Dir.glob((::File.join(RAILS_ROOT, 'config', '**', 'validation_reflection.rb').to_s rescue '')).first || ''
35
+ require_path = ::File.join((defined?(Rails) ? Rails.root : RAILS_ROOT), 'config', '**', 'validation_reflection.rb').to_s rescue ''
36
+
37
+ # Look for config/initializer here in:
38
+ CONFIG_PATH = ::Dir.glob(require_path).first || ''
37
39
  CORE_VALIDATONS = [
38
40
  :validates_acceptance_of,
39
41
  :validates_associated,
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{validation_reflection}
8
- s.version = "0.3.6"
8
+ s.version = "0.3.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christopher Redinger"]
12
- s.date = %q{2010-02-14}
12
+ s.date = %q{2010-06-11}
13
13
  s.description = %q{Adds reflective access to validations}
14
14
  s.email = %q{redinger@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
  "README",
24
24
  "Rakefile",
25
25
  "VERSION.yml",
26
- "about.yml",
27
26
  "lib/validation_reflection.rb",
28
27
  "rails/init.rb",
29
28
  "test/test_helper.rb",
@@ -33,7 +32,7 @@ Gem::Specification.new do |s|
33
32
  s.homepage = %q{http://github.com/redinger/validation_reflection}
34
33
  s.rdoc_options = ["--charset=UTF-8"]
35
34
  s.require_paths = ["lib"]
36
- s.rubygems_version = %q{1.3.5}
35
+ s.rubygems_version = %q{1.3.6}
37
36
  s.summary = %q{Adds reflective access to validations}
38
37
  s.test_files = [
39
38
  "test/test_helper.rb",
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_reflection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 7
9
+ version: 0.3.7
5
10
  platform: ruby
6
11
  authors:
7
12
  - Christopher Redinger
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-14 00:00:00 -05:00
17
+ date: 2010-06-11 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -29,7 +34,6 @@ files:
29
34
  - README
30
35
  - Rakefile
31
36
  - VERSION.yml
32
- - about.yml
33
37
  - lib/validation_reflection.rb
34
38
  - rails/init.rb
35
39
  - test/test_helper.rb
@@ -48,18 +52,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
52
  requirements:
49
53
  - - ">="
50
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
51
57
  version: "0"
52
- version:
53
58
  required_rubygems_version: !ruby/object:Gem::Requirement
54
59
  requirements:
55
60
  - - ">="
56
61
  - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
57
64
  version: "0"
58
- version:
59
65
  requirements: []
60
66
 
61
67
  rubyforge_project:
62
- rubygems_version: 1.3.5
68
+ rubygems_version: 1.3.6
63
69
  signing_key:
64
70
  specification_version: 3
65
71
  summary: Adds reflective access to validations
data/about.yml DELETED
@@ -1,7 +0,0 @@
1
- author: Michael Schuerig
2
- summary: Reflection on validations
3
- homepage: http://rubyforge.org/projects/valirefl/validation_reflection/trunk
4
- plugin: validation_reflection
5
- license: MIT
6
- version: 0.3.1
7
- rails_version: >= 1.1.6