Permalink
Browse files

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

…orio de specs
  • Loading branch information...
1 parent 19c05d3 commit 58e94faaf115567cfb4cb245eca69f65279b6225 @herminiotorres herminiotorres committed Aug 26, 2010
Showing with 10 additions and 10 deletions.
  1. +2 −2 cpf.gemspec
  2. +4 −0 lib/brcpf.rb
  3. +0 −4 lib/cpf.rb
  4. +1 −1 lib/cpf/{brcpf.rb → cpf.rb}
  5. +3 −3 spec/cpf_spec.rb
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
View
@@ -0,0 +1,4 @@
+require 'cpf/cpf'
+class Brcpf
+ include CPF
+end
View
@@ -1,4 +0,0 @@
-require 'cpf/brcpf'
-class Cpf
- include BrCpf
-end
@@ -1,4 +1,4 @@
-module BrCpf
+module CPF
attr_reader :numero
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

0 comments on commit 58e94fa

Please sign in to comment.