bra_documents 1.0.2 → 1.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -4
- data/README.md +52 -6
- data/lib/bra_documents/cnpj_generator.rb +15 -5
- data/lib/bra_documents/cpf_generator.rb +6 -2
- data/lib/bra_documents/formatter.rb +5 -5
- data/lib/bra_documents/matcher.rb +49 -6
- data/lib/bra_documents/national_register_base.rb +12 -16
- data/lib/bra_documents/testing/rspec/matchers/cnpj_matcher.rb +6 -14
- data/lib/bra_documents/testing/rspec/matchers/cpf_matcher.rb +5 -13
- data/lib/bra_documents/version.rb +1 -1
- metadata +8 -77
- data/.github/dependabot.yml +0 -8
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.travis.yml +0 -12
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -43
- data/LICENSE +0 -674
- data/Rakefile +0 -8
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/bra_documents.gemspec +0 -34
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "bra_documents"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/bra_documents.gemspec
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
require_relative 'lib/bra_documents/version'
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name = 'bra_documents'
|
|
5
|
-
spec.version = BraDocuments::VERSION
|
|
6
|
-
spec.authors = ['Bruno Vicenzo']
|
|
7
|
-
spec.email = ['bruno@alumni.usp.br']
|
|
8
|
-
|
|
9
|
-
spec.summary = %q{A implementation for generating Brazilian CPF and CNPJ document numbers.}
|
|
10
|
-
spec.description = %q{Here we are able to generate CPNJ and CPF documents, only numbers or formatted.}
|
|
11
|
-
spec.homepage = 'https://github.com/bvicenzo/bra_documents'
|
|
12
|
-
spec.license = 'MIT'
|
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
|
14
|
-
|
|
15
|
-
spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
|
|
16
|
-
|
|
17
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
|
18
|
-
spec.metadata['source_code_uri'] = spec.homepage
|
|
19
|
-
spec.metadata['changelog_uri'] = 'https://github.com/bvicenzo/bra_documents/blob/master/CHANGELOG.md'
|
|
20
|
-
|
|
21
|
-
# Specify which files should be added to the gem when it is released.
|
|
22
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
23
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
24
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
25
|
-
end
|
|
26
|
-
spec.bindir = 'exe'
|
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
28
|
-
spec.require_paths = ['lib']
|
|
29
|
-
|
|
30
|
-
spec.add_development_dependency 'pry'
|
|
31
|
-
spec.add_development_dependency 'pry-nav'
|
|
32
|
-
spec.add_development_dependency 'rake'
|
|
33
|
-
spec.add_development_dependency 'rspec'
|
|
34
|
-
end
|