ama_validators 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +1 -1
- data/.travis.yml +3 -0
- data/README.md +7 -1
- data/ama_validators.gemspec +2 -1
- data/lib/ama_validators/version.rb +1 -1
- data/spec/factories/{Profiles.rb → profiles.rb} +0 -0
- data/spec/spec_helper.rb +10 -2
- metadata +20 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b489bd624f89d364f72259c065518a14e7e529cf
|
4
|
+
data.tar.gz: 0d5db6097790f0d8a9ca9a39c0dc4b67916f6151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf6a9dd7f796f03339d7d63d127958c12b5657c11dab18e6649e152da79b170f1ceca99a974187115844df2e1cd807b3f2d869d7ef630a3246fabd1662b299d3
|
7
|
+
data.tar.gz: 55c095d322cb989b85ad22c57125f99b02ef2d1792dff1041178d549abde0520627ca848519fd95d15214b7d569014012e9e0dd20e16b00e7994c1e009142cf5
|
data/.simplecov
CHANGED
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# AmaValidators
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/ama_validators.png)](http://badge.fury.io/rb/ama_validators)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/amaabca/ama_validators.png)](https://codeclimate.com/github/amaabca/ama_validators)
|
5
|
+
[![Build Status](https://api.travis-ci.org/amaabca/ama_validators.png?branch=master)](https://travis-ci.org/amaabca/ama_validators)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/amaabca/ama_validators/badge.png)](https://coveralls.io/r/amaabca/ama_validators)
|
7
|
+
[![Dependency Status](https://gemnasium.com/amaabca/ama_validators.png)](https://gemnasium.com/amaabca/ama_validators)
|
8
|
+
|
9
|
+
Compile the following validators: - Credit card - Email - Membership number - Phone number - Postal code
|
4
10
|
|
5
11
|
## Installation
|
6
12
|
|
data/ama_validators.gemspec
CHANGED
@@ -20,11 +20,12 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "rspec
|
23
|
+
spec.add_development_dependency "rspec"
|
24
24
|
spec.add_development_dependency "rspec-instafail"
|
25
25
|
spec.add_development_dependency "pry"
|
26
26
|
spec.add_development_dependency "pry-debugger"
|
27
27
|
spec.add_development_dependency "simplecov"
|
28
|
+
spec.add_development_dependency "coveralls"
|
28
29
|
spec.add_dependency "rails", ">= 4.0.0"
|
29
30
|
|
30
31
|
end
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
require 'rails/all'
|
2
|
-
require 'rspec
|
2
|
+
require 'rspec'
|
3
3
|
require 'rspec/autorun'
|
4
4
|
require 'simplecov'
|
5
|
-
require 'ama_validators'
|
5
|
+
require 'ama_validators'
|
6
|
+
require 'coveralls'
|
7
|
+
Coveralls.wear!
|
8
|
+
|
9
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
10
|
+
SimpleCov::Formatter::HTMLFormatter,
|
11
|
+
Coveralls::SimpleCov::Formatter
|
12
|
+
]
|
13
|
+
SimpleCov.start
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ama_validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruben Estevez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '>='
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rails
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,6 +147,7 @@ files:
|
|
133
147
|
- .gitignore
|
134
148
|
- .rspec
|
135
149
|
- .simplecov
|
150
|
+
- .travis.yml
|
136
151
|
- Gemfile
|
137
152
|
- LICENSE.txt
|
138
153
|
- README.md
|
@@ -147,7 +162,7 @@ files:
|
|
147
162
|
- lib/ama_validators/version.rb
|
148
163
|
- spec/credit_card_format_validator_spec.rb
|
149
164
|
- spec/email_format_validator_spec.rb
|
150
|
-
- spec/factories/
|
165
|
+
- spec/factories/profiles.rb
|
151
166
|
- spec/membership_number_format_validator_spec.rb
|
152
167
|
- spec/phone_number_format_validator_spec.rb
|
153
168
|
- spec/postal_code_format_validator_spec.rb
|
@@ -181,7 +196,7 @@ summary: This gem will compile the following validators - Credit card - Email -
|
|
181
196
|
test_files:
|
182
197
|
- spec/credit_card_format_validator_spec.rb
|
183
198
|
- spec/email_format_validator_spec.rb
|
184
|
-
- spec/factories/
|
199
|
+
- spec/factories/profiles.rb
|
185
200
|
- spec/membership_number_format_validator_spec.rb
|
186
201
|
- spec/phone_number_format_validator_spec.rb
|
187
202
|
- spec/postal_code_format_validator_spec.rb
|