pathf_validator 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +54 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +56 -0
- data/VERSION +1 -0
- data/lib/pathf_validator.rb +27 -0
- data/spec/pathf_validator_spec.rb +44 -0
- data/spec/spec_helper.rb +14 -0
- metadata +297 -0
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
group :development do
|
4
|
+
gem "bundler", "~> 1.0.7"
|
5
|
+
gem "jeweler", "~> 1.5.2"
|
6
|
+
gem 'rspec', '>= 2.4.0'
|
7
|
+
gem 'rspec-core', '>= 2.4.0'
|
8
|
+
gem 'rspec-expectations', '>= 2.4.0'
|
9
|
+
gem 'rspec-mocks', '>= 2.4.0'
|
10
|
+
gem 'simplecov', '>= 0.3.9'
|
11
|
+
gem 'remarkable', '>=4.0.0.alpha4'
|
12
|
+
gem 'remarkable_activemodel'
|
13
|
+
end
|
14
|
+
|
15
|
+
gem 'activemodel', '>= 3.0.3'
|
16
|
+
gem 'go_maps', '>= 0.4'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.0.3)
|
5
|
+
activesupport (= 3.0.3)
|
6
|
+
builder (~> 2.1.2)
|
7
|
+
i18n (~> 0.4)
|
8
|
+
activesupport (3.0.3)
|
9
|
+
builder (2.1.2)
|
10
|
+
crack (0.1.8)
|
11
|
+
diff-lcs (1.1.2)
|
12
|
+
git (1.2.5)
|
13
|
+
go_maps (0.4)
|
14
|
+
crack (>= 0.1.6)
|
15
|
+
nokogiri (>= 1.4.1)
|
16
|
+
i18n (0.5.0)
|
17
|
+
jeweler (1.5.2)
|
18
|
+
bundler (~> 1.0.0)
|
19
|
+
git (>= 1.2.5)
|
20
|
+
rake
|
21
|
+
nokogiri (1.4.4)
|
22
|
+
rake (0.8.7)
|
23
|
+
remarkable (4.0.0.alpha4)
|
24
|
+
rspec (>= 2.0.0.alpha11)
|
25
|
+
remarkable_activemodel (4.0.0.alpha4)
|
26
|
+
remarkable (~> 4.0.0.alpha4)
|
27
|
+
rspec (>= 2.0.0.alpha11)
|
28
|
+
rspec (2.4.0)
|
29
|
+
rspec-core (~> 2.4.0)
|
30
|
+
rspec-expectations (~> 2.4.0)
|
31
|
+
rspec-mocks (~> 2.4.0)
|
32
|
+
rspec-core (2.4.0)
|
33
|
+
rspec-expectations (2.4.0)
|
34
|
+
diff-lcs (~> 1.1.2)
|
35
|
+
rspec-mocks (2.4.0)
|
36
|
+
simplecov (0.3.9)
|
37
|
+
simplecov-html (>= 0.3.7)
|
38
|
+
simplecov-html (0.3.9)
|
39
|
+
|
40
|
+
PLATFORMS
|
41
|
+
ruby
|
42
|
+
|
43
|
+
DEPENDENCIES
|
44
|
+
activemodel (>= 3.0.3)
|
45
|
+
bundler (~> 1.0.7)
|
46
|
+
go_maps (>= 0.4)
|
47
|
+
jeweler (~> 1.5.2)
|
48
|
+
remarkable (>= 4.0.0.alpha4)
|
49
|
+
remarkable_activemodel
|
50
|
+
rspec (>= 2.4.0)
|
51
|
+
rspec-core (>= 2.4.0)
|
52
|
+
rspec-expectations (>= 2.4.0)
|
53
|
+
rspec-mocks (>= 2.4.0)
|
54
|
+
simplecov (>= 0.3.9)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 perry3819
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= pathf-validator
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to pathf-validation
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
9
|
+
* Fork the project
|
10
|
+
* Start a feature/bugfix branch
|
11
|
+
* Commit and push until you are happy with your contribution
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2011 perry3819. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
|
4
|
+
begin
|
5
|
+
Bundler.setup(:default, :development)
|
6
|
+
rescue Bundler::BundlerError => e
|
7
|
+
$stderr.puts e.message
|
8
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
9
|
+
exit e.status_code
|
10
|
+
end
|
11
|
+
require 'rake'
|
12
|
+
|
13
|
+
require 'jeweler'
|
14
|
+
Jeweler::Tasks.new do |gem|
|
15
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
16
|
+
gem.name = "pathf_validator"
|
17
|
+
gem.homepage = "https://github.com/PathfinderDevelopment/pathf_validator"
|
18
|
+
gem.license = "MIT"
|
19
|
+
gem.summary = "ActiveModel validations"
|
20
|
+
gem.description = "Some extra sensible validations"
|
21
|
+
gem.email = "perry@hertler.org"
|
22
|
+
gem.authors = ["perry3819"]
|
23
|
+
gem.add_dependency 'activemodel', '>= 3.0.3'
|
24
|
+
gem.add_dependency 'go_maps', '>= 0.4'
|
25
|
+
gem.add_development_dependency "rspec", '>= 2.4.0'
|
26
|
+
gem.add_development_dependency "bundler", '>= 1.0.7'
|
27
|
+
end
|
28
|
+
Jeweler::RubygemsDotOrgTasks.new
|
29
|
+
|
30
|
+
gem 'rspec', '>= 2.4.0'
|
31
|
+
gem 'rspec-expectations', '>= 2.4.0'
|
32
|
+
gem 'remarkable', '>=4.0.0.alpha4'
|
33
|
+
|
34
|
+
require 'rspec/core/rake_task'
|
35
|
+
|
36
|
+
desc "Run specs"
|
37
|
+
RSpec::Core::RakeTask.new do |t|
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
task :default => :spec
|
42
|
+
|
43
|
+
require 'rake/rdoctask'
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
if File.exist?('VERSION')
|
46
|
+
version = File.read('VERSION')
|
47
|
+
else
|
48
|
+
version = ""
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
rdoc.rdoc_dir = 'rdoc'
|
53
|
+
rdoc.title = "pathf_validator #{version}"
|
54
|
+
rdoc.rdoc_files.include('README*')
|
55
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
56
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'active_model'
|
2
|
+
|
3
|
+
module ActiveModel
|
4
|
+
module Validations
|
5
|
+
class ZipcodeValidator < ActiveModel::EachValidator
|
6
|
+
def validate_each(record, attribute, value)
|
7
|
+
unless /^[0-9]{5}([- ]?[0-9]{4})?$/.match(value)
|
8
|
+
record.errors[attribute] << 'is not properly formatted'
|
9
|
+
else
|
10
|
+
record.errors[attribute] << 'is not valid' unless GoMaps::Address.new(value).exists?
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
class EmailValidator < ActiveModel::EachValidator
|
16
|
+
def validate_each(record, attribute, value)
|
17
|
+
record.errors[attribute] << 'is not properly formatted' unless /^[A-Z0-9_\.%\+\-]+@(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2,4}|museum|travel)$/i.match(value)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class PhoneValidator < ActiveModel::EachValidator
|
22
|
+
def validate_each(record, attribute, value)
|
23
|
+
record.errors[attribute] << 'is not properly formatted' unless /1?\W*([2-9][0-8][0-9])\W*([2-9][0-9]{2})\W*([0-9]{4})(\se?x?t?(\d*))?/.match(value)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
class TestRecord
|
4
|
+
include ActiveModel::Validations
|
5
|
+
attr_accessor :phone_number, :zipcode, :email
|
6
|
+
|
7
|
+
validates :phone_number, :phone => true
|
8
|
+
validates :zipcode, :zipcode => true
|
9
|
+
validates :email, :email => true
|
10
|
+
|
11
|
+
def initialize(attributes = {})
|
12
|
+
attributes.each do |name, value|
|
13
|
+
send("#{name}=", value)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe TestRecord do
|
19
|
+
describe 'validations' do
|
20
|
+
should_allow_values_for :zipcode, :with => /^[0-9]{5}([- ]?[0-9]{4})?$/
|
21
|
+
should_allow_values_for :phone_number, '570.857.1051 x5529', '2345678901', '231-456-7890', '(231)456-7890', '(231)456-7820 x232', "1-234-567-8901 x1234", "1-234-567-8901 ext1234"
|
22
|
+
should_allow_values_for :phone_number, :with => /1?\W*([2-9][0-8][0-9])\W*([2-9][0-9]{2})\W*([0-9]{4})(\se?x?t?(\d*))?/
|
23
|
+
end
|
24
|
+
|
25
|
+
describe 'zipcode verification' do
|
26
|
+
before(:each) do
|
27
|
+
@stub_exist = Object.new
|
28
|
+
GoMaps::Address.should_receive(:new).and_return(@stub_exist)
|
29
|
+
@test_record = TestRecord.new(:zipcode => '60606')
|
30
|
+
end
|
31
|
+
it "should fail validation if zipcode does not exist" do
|
32
|
+
@stub_exist.should_receive(:exists?).and_return(false)
|
33
|
+
@test_record.valid?
|
34
|
+
|
35
|
+
@test_record.errors[:zipcode].should eql ['is not valid']
|
36
|
+
end
|
37
|
+
it "should be valid if zipcode exists" do
|
38
|
+
@stub_exist.should_receive(:exists?).and_return(true)
|
39
|
+
@test_record.valid?
|
40
|
+
|
41
|
+
@test_record.errors[:zipcode].should eql []
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start do
|
5
|
+
add_group "Lib", "lib"
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'rubygems'
|
9
|
+
require 'active_model'
|
10
|
+
|
11
|
+
require 'pathf_validator'
|
12
|
+
require 'rspec'
|
13
|
+
require 'remarkable/active_model'
|
14
|
+
require 'go_maps'
|
metadata
ADDED
@@ -0,0 +1,297 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pathf_validator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
version: 0.1.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- perry3819
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2011-01-10 00:00:00 -06:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: activemodel
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 3
|
29
|
+
- 0
|
30
|
+
- 3
|
31
|
+
version: 3.0.3
|
32
|
+
type: :runtime
|
33
|
+
prerelease: false
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: go_maps
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
- 4
|
45
|
+
version: "0.4"
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: bundler
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 1
|
58
|
+
- 0
|
59
|
+
- 7
|
60
|
+
version: 1.0.7
|
61
|
+
type: :development
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: *id003
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: jeweler
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 1
|
73
|
+
- 5
|
74
|
+
- 2
|
75
|
+
version: 1.5.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: *id004
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: rspec
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
segments:
|
87
|
+
- 2
|
88
|
+
- 4
|
89
|
+
- 0
|
90
|
+
version: 2.4.0
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: *id005
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rspec-core
|
96
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
segments:
|
102
|
+
- 2
|
103
|
+
- 4
|
104
|
+
- 0
|
105
|
+
version: 2.4.0
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: *id006
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: rspec-expectations
|
111
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
segments:
|
117
|
+
- 2
|
118
|
+
- 4
|
119
|
+
- 0
|
120
|
+
version: 2.4.0
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *id007
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rspec-mocks
|
126
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
segments:
|
132
|
+
- 2
|
133
|
+
- 4
|
134
|
+
- 0
|
135
|
+
version: 2.4.0
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: *id008
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
- 3
|
149
|
+
- 9
|
150
|
+
version: 0.3.9
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: *id009
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: remarkable
|
156
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
segments:
|
162
|
+
- 4
|
163
|
+
- 0
|
164
|
+
- 0
|
165
|
+
- alpha4
|
166
|
+
version: 4.0.0.alpha4
|
167
|
+
type: :development
|
168
|
+
prerelease: false
|
169
|
+
version_requirements: *id010
|
170
|
+
- !ruby/object:Gem::Dependency
|
171
|
+
name: remarkable_activemodel
|
172
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
173
|
+
none: false
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
segments:
|
178
|
+
- 0
|
179
|
+
version: "0"
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: *id011
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: activemodel
|
185
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
187
|
+
requirements:
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
segments:
|
191
|
+
- 3
|
192
|
+
- 0
|
193
|
+
- 3
|
194
|
+
version: 3.0.3
|
195
|
+
type: :runtime
|
196
|
+
prerelease: false
|
197
|
+
version_requirements: *id012
|
198
|
+
- !ruby/object:Gem::Dependency
|
199
|
+
name: go_maps
|
200
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
segments:
|
206
|
+
- 0
|
207
|
+
- 4
|
208
|
+
version: "0.4"
|
209
|
+
type: :runtime
|
210
|
+
prerelease: false
|
211
|
+
version_requirements: *id013
|
212
|
+
- !ruby/object:Gem::Dependency
|
213
|
+
name: rspec
|
214
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
215
|
+
none: false
|
216
|
+
requirements:
|
217
|
+
- - ">="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
segments:
|
220
|
+
- 2
|
221
|
+
- 4
|
222
|
+
- 0
|
223
|
+
version: 2.4.0
|
224
|
+
type: :development
|
225
|
+
prerelease: false
|
226
|
+
version_requirements: *id014
|
227
|
+
- !ruby/object:Gem::Dependency
|
228
|
+
name: bundler
|
229
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
230
|
+
none: false
|
231
|
+
requirements:
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
segments:
|
235
|
+
- 1
|
236
|
+
- 0
|
237
|
+
- 7
|
238
|
+
version: 1.0.7
|
239
|
+
type: :development
|
240
|
+
prerelease: false
|
241
|
+
version_requirements: *id015
|
242
|
+
description: Some extra sensible validations
|
243
|
+
email: perry@hertler.org
|
244
|
+
executables: []
|
245
|
+
|
246
|
+
extensions: []
|
247
|
+
|
248
|
+
extra_rdoc_files:
|
249
|
+
- LICENSE.txt
|
250
|
+
- README.rdoc
|
251
|
+
files:
|
252
|
+
- .document
|
253
|
+
- Gemfile
|
254
|
+
- Gemfile.lock
|
255
|
+
- LICENSE.txt
|
256
|
+
- README.rdoc
|
257
|
+
- Rakefile
|
258
|
+
- VERSION
|
259
|
+
- lib/pathf_validator.rb
|
260
|
+
- spec/pathf_validator_spec.rb
|
261
|
+
- spec/spec_helper.rb
|
262
|
+
has_rdoc: true
|
263
|
+
homepage: https://github.com/PathfinderDevelopment/pathf_validator
|
264
|
+
licenses:
|
265
|
+
- MIT
|
266
|
+
post_install_message:
|
267
|
+
rdoc_options: []
|
268
|
+
|
269
|
+
require_paths:
|
270
|
+
- lib
|
271
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
272
|
+
none: false
|
273
|
+
requirements:
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
hash: 754348082022414887
|
277
|
+
segments:
|
278
|
+
- 0
|
279
|
+
version: "0"
|
280
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
|
+
none: false
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
segments:
|
286
|
+
- 0
|
287
|
+
version: "0"
|
288
|
+
requirements: []
|
289
|
+
|
290
|
+
rubyforge_project:
|
291
|
+
rubygems_version: 1.3.7
|
292
|
+
signing_key:
|
293
|
+
specification_version: 3
|
294
|
+
summary: ActiveModel validations
|
295
|
+
test_files:
|
296
|
+
- spec/pathf_validator_spec.rb
|
297
|
+
- spec/spec_helper.rb
|