cep_facil 0.1.0 → 0.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.
- data/lib/cep_facil/version.rb +1 -1
- data/spec/cep_facil_spec.rb +18 -1
- metadata +3 -3
data/lib/cep_facil/version.rb
CHANGED
data/spec/cep_facil_spec.rb
CHANGED
@@ -65,6 +65,23 @@ describe CepFacil do
|
|
65
65
|
full_version.should_not be_nil
|
66
66
|
full_version.should eql("Rua Panelas, Artur Lundgren II, Paulista-PE, Brasil.")
|
67
67
|
end
|
68
|
-
|
68
|
+
|
69
|
+
=begin
|
70
|
+
it "has a working alternative usage" do
|
71
|
+
include CepFacil
|
72
|
+
a = RSpec::Core::ExampleGroup.new
|
73
|
+
a.extend(CepFacil)
|
74
|
+
|
75
|
+
cep = "50050-000"
|
76
|
+
address = get_address cep, @token
|
77
|
+
full_version = full address
|
78
|
+
|
79
|
+
address.should_not be_nil
|
80
|
+
full_version.should_not be_nil
|
81
|
+
|
82
|
+
full_version.should eql("Rua da Aurora, Boa Vista, Recife-PE, Brasil.")
|
83
|
+
end
|
84
|
+
=end
|
85
|
+
|
69
86
|
end
|
70
87
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cep_facil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70140278475580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70140278475580
|
25
25
|
description: Wrapper Ruby para o serviço cepfacil.com.br
|
26
26
|
email:
|
27
27
|
- rodrigo@atela.com.br
|