spanish_ccc_validator 0.0.2 → 0.0.3

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.
@@ -1,5 +1,5 @@
1
1
  module SpanishCccValidator
2
- module CustomValidator
2
+ module CustomCccValidator
3
3
  # Gets a string and extracts the number from it
4
4
  # Example: canonize("1234-5678-90-3344556677") returns "12345678903344556677"
5
5
  def self.canonize(str)
@@ -1,3 +1,3 @@
1
1
  module SpanishCccValidator
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  require File.expand_path("./spec") + '/spec_helper.rb'
2
2
 
3
3
  describe SpanishCccValidator do
4
- describe SpanishCccValidator::CustomValidator do
5
- subject{ SpanishCccValidator::CustomValidator }
4
+ describe SpanishCccValidator::CustomCccValidator do
5
+ subject{ SpanishCccValidator::CustomCccValidator }
6
6
  describe '#canonize' do
7
7
  it "cleans the string till it is just numbers" do
8
8
  subject.canonize('1234-5678-91-1245678901').should == '12345678911245678901'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spanish_ccc_validator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - miguel.camba