Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bem atualizando semanticamente a gem e adicionando no gemspec o diret…

…orio de specs
  • Loading branch information...
commit 58e94faaf115567cfb4cb245eca69f65279b6225 1 parent 19c05d3
Herminio Torres herminiotorres authored
4 cpf.gemspec
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "cpf"
- s.version = "0.2.0"
+ s.version = "0.2.1"
s.authors = ["Herminio Torres"]
s.email = ["herminiocesar@gmail.com"]
s.homepage = "http://github.com/hidenowt/cpf"
@@ -13,5 +13,5 @@ Gem::Specification.new do |s|
s.rubyforge_project = 'cpf'
- s.files = Dir["{lib/**/*.rb,README.rdoc,test/**/*.rb,Rakefile.*gemspec}"]
+ s.files = Dir["{lib/**/*.rb,README.rdoc,spec/**/*.rb,Rakefile,*gemspec}"]
end
4 lib/brcpf.rb
View
@@ -0,0 +1,4 @@
+require 'cpf/cpf'
+class Brcpf
+ include CPF
+end
4 lib/cpf.rb
View
@@ -1,4 +0,0 @@
-require 'cpf/brcpf'
-class Cpf
- include BrCpf
-end
2  lib/cpf/brcpf.rb → lib/cpf/cpf.rb
View
@@ -1,4 +1,4 @@
-module BrCpf
+module CPF
attr_reader :numero
6 spec/cpf_spec.rb
View
@@ -1,8 +1,8 @@
-require "spec/../lib/cpf"
+require "spec/../lib/brcpf"
-describe Cpf, "CPF_BLACK_LIST" do
+describe Brcpf, "CPF_BLACK_LIST" do
it "return nil if number in list cpf black list" do
- cpf = Cpf.new(11111111111)
+ cpf = Brcpf.new(11111111111)
cpf.numero.should == nil
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.