From b539b7e8dbcff244ec4475b35a09dcfc3ef7592a Mon Sep 17 00:00:00 2001 From: wr2net Date: Mon, 24 Jul 2023 15:14:38 -0300 Subject: [PATCH 1/6] chore: security update. --- .gitignore | 1 + Gemfile | 2 +- Gemfile.lock | 2 +- build.sh | 0 lib/brval/version.rb | 2 +- 5 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 build.sh diff --git a/.gitignore b/.gitignore index 143215b..32e60b8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /tmp/ brval-*.gem +.idea/ \ No newline at end of file diff --git a/Gemfile b/Gemfile index d2fceab..8ec700a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source "https://rubygems.org" -git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } +# git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } gemspec diff --git a/Gemfile.lock b/Gemfile.lock index 049b35c..7690937 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,7 +2,7 @@ PATH remote: . specs: brval (0.9.7) - httparty (~> 0.16.3) + httparty (~> 0.21.0) GEM remote: https://rubygems.org/ diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/lib/brval/version.rb b/lib/brval/version.rb index e48e6c7..5c6316a 100644 --- a/lib/brval/version.rb +++ b/lib/brval/version.rb @@ -1,3 +1,3 @@ module Brval - VERSION = "0.9.72" + VERSION = "0.9.73" end From a70248b9e5c56a4713bab1a2a19c8e129a06d238 Mon Sep 17 00:00:00 2001 From: wr2net Date: Mon, 24 Jul 2023 15:21:04 -0300 Subject: [PATCH 2/6] Revert "Update gem version to -1.9.72" This reverts commit 7363b3b5e9e9aa3b07b639640740ec0ca4b607f4. --- lib/brval/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/brval/version.rb b/lib/brval/version.rb index 5c6316a..05a94d7 100644 --- a/lib/brval/version.rb +++ b/lib/brval/version.rb @@ -1,3 +1,3 @@ module Brval - VERSION = "0.9.73" + VERSION = "0.9.7" end From 95206e786b2fa78855b1ccf4bdc66984c2c8928a Mon Sep 17 00:00:00 2001 From: wr2net Date: Mon, 24 Jul 2023 15:25:23 -0300 Subject: [PATCH 3/6] chore: security update --- lib/brval/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/brval/version.rb b/lib/brval/version.rb index 05a94d7..5c6316a 100644 --- a/lib/brval/version.rb +++ b/lib/brval/version.rb @@ -1,3 +1,3 @@ module Brval - VERSION = "0.9.7" + VERSION = "0.9.73" end From 0d21ba8e1788df5268f84ced91eb8e41201cf641 Mon Sep 17 00:00:00 2001 From: wr2net Date: Mon, 24 Jul 2023 15:55:02 -0300 Subject: [PATCH 4/6] chore: security update --- Gemfile | 4 +++- Gemfile.lock | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 8ec700a..6ef395b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,7 @@ source "https://rubygems.org" -# git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } +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 7690937..48324eb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) From 6e368f3db2f4796bd3a67697b89a095c646a6494 Mon Sep 17 00:00:00 2001 From: wr2net Date: Mon, 24 Jul 2023 16:16:58 -0300 Subject: [PATCH 5/6] =?UTF-8?q?fix:=20atualiza=20vers=C3=A3o=20da=20depend?= =?UTF-8?q?=C3=AAncia=20do=20spec=20para=20o=20httparty.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- brval.gemspec | 2 +- lib/brval/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/brval.gemspec b/brval.gemspec index f4bbd68..d89261e 100644 --- a/brval.gemspec +++ b/brval.gemspec @@ -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/lib/brval/version.rb b/lib/brval/version.rb index 5c6316a..fb47597 100644 --- a/lib/brval/version.rb +++ b/lib/brval/version.rb @@ -1,3 +1,3 @@ module Brval - VERSION = "0.9.73" + VERSION = "0.9.75" end From e5b0a905eba59290a20aed2ca98d4c56a1bbbd3e Mon Sep 17 00:00:00 2001 From: wr2net Date: Tue, 6 Aug 2024 12:10:35 -0300 Subject: [PATCH 6/6] Create V2 to brval --- .gitignore | 2 +- Gemfile.lock | 4 ++-- README.md | 8 ++------ Rakefile | 2 +- bin/console | 2 +- brval.gemspec => brval2.gemspec | 10 +++++----- build.sh | 8 ++++---- 7 files changed, 16 insertions(+), 20 deletions(-) rename brval.gemspec => brval2.gemspec (89%) diff --git a/.gitignore b/.gitignore index 32e60b8..86d983a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,5 @@ /spec/reports/ /tmp/ -brval-*.gem +brval2-*.gem .idea/ \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 48324eb..d296558 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - brval (0.9.7) + brval2 (0.9.7) httparty (~> 0.21.0) GEM @@ -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 89% rename from brval.gemspec rename to brval2.gemspec index d89261e..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' diff --git a/build.sh b/build.sh index 96975dd..d75c417 100755 --- 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