br_documents 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1965ccaaf6c4d64308cc6cc533e0d074edfb6566
4
- data.tar.gz: ade8e62331140d9103b4b4763c38fa4d428e2e4f
3
+ metadata.gz: b69b20cfb87f7ec7381946622ef82266e7fb8ddb
4
+ data.tar.gz: d974c2859ca4b67aeb6182386e61982d35195ab5
5
5
  SHA512:
6
- metadata.gz: 6ab6b906a9bf27ad17dd224c0c257017d4bb3f8196433db00d0e83666041443e89dfe24f156c664d1d5d217e9f8f103d02f2b9243ca4cfb9984a450e037a8ed0
7
- data.tar.gz: 71ad23081b998135bc6d764b77f73022fc7f038fcd89ceb289852e4dd0ba4df787979d5f75376c4e776dce51467c797c4f161d37673f65ae0e21617eb2a8eef4
6
+ metadata.gz: fea15e2b60414ac45dfa072449bd6032084a5e1934dc8531751adf6bd9c232e8a7f482dfc9063395584079d1a2f11fe645e7e3ba13b3d59e3d158b887689e8f3
7
+ data.tar.gz: 1c8b8336ce4a429b9b8a66dd0f3f8cb93bea324dccf613ef65b0b60a86bf67367536ea7957a7ddf4442f6638dd0f4ffd933f7abf19d099d5f95a138d22c78022
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ - jruby-19mode
7
+ gemfile:
8
+ - Gemfile
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source "https://rubygems.org"
2
- ruby "2.0.0"
3
2
 
4
3
  gemspec
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # BrDocuments
2
2
 
3
+ [![Code Climate](https://codeclimate.com/github/asseinfo/br_documents.png)](https://codeclimate.com/github/asseinfo/br_documents) [![Build Status](https://travis-ci.org/asseinfo/br_documents.svg?branch=master)](https://travis-ci.org/asseinfo/br_documents)
4
+
3
5
  This gem validates Brazilian documents for application use. Today it can validate CNPJ, CPF and IE.
4
6
 
5
7
  ## Installation
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
+ require "rspec/core/rake_task"
1
2
  require "bundler/gem_tasks"
3
+
4
+ task default: :spec
5
+ RSpec::Core::RakeTask.new
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -2,7 +2,7 @@ module BrDocuments
2
2
  module IE
3
3
  class Factory
4
4
  def self.create(uf, number)
5
- klass = BrDocuments::IE.const_get("#{uf}")
5
+ klass = IE.const_get("#{uf}")
6
6
  klass.new(number)
7
7
  rescue NameError
8
8
  raise(ArgumentError, I18n.t("validator.ie.uf.invalid"))
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -1,4 +1,5 @@
1
1
  require_relative "base"
2
+ require_relative "../commons/mod11"
2
3
 
3
4
  module BrDocuments
4
5
  module IE
@@ -1,3 +1,3 @@
1
1
  module BrDocuments
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/br_documents.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "active_model"
2
+
2
3
  Dir[File.dirname(__FILE__) + "/**/*.rb"].each { |f| require f }
3
4
 
4
- I18n.load_path << File.expand_path("../../config/locales/pt-BR.yml", __FILE__)
5
+ I18n.load_path << File.expand_path("../../config/locales/pt-BR.yml", __FILE__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_documents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO - Sistemas de Informação
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-08 00:00:00.000000000 Z
11
+ date: 2014-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,6 +103,7 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - .gitignore
105
105
  - .rspec
106
+ - .travis.yml
106
107
  - Gemfile
107
108
  - README.md
108
109
  - Rakefile