diff --git a/.gitignore b/.gitignore index 143215b..86d983a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ /spec/reports/ /tmp/ -brval-*.gem +brval2-*.gem +.idea/ \ No newline at end of file diff --git a/Gemfile b/Gemfile index d2fceab..6ef395b 100644 --- a/Gemfile +++ b/Gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } +gem 'httparty', '~> 0.21.0' + gemspec diff --git a/Gemfile.lock b/Gemfile.lock index 049b35c..d296558 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,8 +1,8 @@ PATH remote: . specs: - brval (0.9.7) - httparty (~> 0.16.3) + brval2 (0.9.7) + httparty (~> 0.21.0) GEM remote: https://rubygems.org/ @@ -33,7 +33,7 @@ GEM path_expander (~> 1.0) ruby_parser (~> 3.1, > 3.1.0) sexp_processor (~> 4.8) - httparty (0.16.3) + httparty (0.21.0) mime-types (~> 3.0) multi_xml (>= 0.5.2) ice_nine (0.11.2) @@ -110,7 +110,7 @@ PLATFORMS ruby DEPENDENCIES - brval! + brval2! bundler (~> 1.17, >= 1.17.3) json (~> 2.1) rake (~> 10.0) diff --git a/README.md b/README.md index 463b667..ad1944d 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,17 @@ This is a gem to validate many Brazilian codes. Because it's common to use many So the idea of Brval gem is: reunite all those validations methods in one single gem, making our lives even "easier" to develop Ruby apps. -[Link para ler as instruções em português](https://github.com/LucasAndrad/brval/wiki/Instru%C3%A7%C3%B5es-em-portugu%C3%AAs) (link to read the instructions in portuguese) - -NPM package for JS projects coming soon! - ## Installation Add this line to your Gemfile ```ruby -gem 'brval' +gem 'brval2' ``` Or run it direct on terminal: - $ gem install brval + $ gem install brval2 ## Usage diff --git a/Rakefile b/Rakefile index 64b4f1b..4b97dcf 100644 --- a/Rakefile +++ b/Rakefile @@ -2,5 +2,5 @@ require "bundler/gem_tasks" task :default => :spec task :console do - exec "irb -r brval -I ./lib" + exec "irb -r brval2 -I ./lib" end \ No newline at end of file diff --git a/bin/console b/bin/console index f6c2cc8..3ad607c 100755 --- a/bin/console +++ b/bin/console @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require "bundler/setup" -require "brval" +require "brval2" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. diff --git a/brval.gemspec b/brval2.gemspec similarity index 87% rename from brval.gemspec rename to brval2.gemspec index f4bbd68..ae85c48 100644 --- a/brval.gemspec +++ b/brval2.gemspec @@ -1,16 +1,16 @@ lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'brval/version' +require 'brval2/version' Gem::Specification.new do |spec| - spec.name = 'brval' + spec.name = 'brval2' spec.version = Brval::VERSION - spec.authors = ['Lucas Andrade'] - spec.email = ['lucasandrad@yandex.com'] + spec.authors = ['Wagner Rigoli da Rosa'] + spec.email = ['wagnerr2@gmail.com'] spec.summary = 'Gem to validates many Brazilian codes' spec.description = 'Gem to validates Brazilian codes, like CPF, CNPJ, CNH, PIS ...' - spec.homepage = 'https://github.com/LucasAndrad/brval' + spec.homepage = 'https://github.com/wr2net/brval' spec.license = 'MIT' # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' @@ -41,6 +41,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rubycritic', '~> 3.5' spec.add_development_dependency 'rubocop', '~> 0.62.0' spec.add_development_dependency 'json', '~> 2.1' - spec.add_dependency 'httparty', '~> 0.16.3' + spec.add_dependency 'httparty', '~> 0.21.0' end diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 96975dd..d75c417 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ # Script to build gem -rm brval-*.gem -gem build brval.gemspec -gem install ./brval-*.gem -irb -r 'brval' \ No newline at end of file +rm brval2-*.gem +gem build brval2.gemspec +gem install ./brval2-*.gem +irb -r 'brval2' \ No newline at end of file diff --git a/lib/brval/version.rb b/lib/brval/version.rb index e48e6c7..fb47597 100644 --- a/lib/brval/version.rb +++ b/lib/brval/version.rb @@ -1,3 +1,3 @@ module Brval - VERSION = "0.9.72" + VERSION = "0.9.75" end