correios-cep 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f875f6c6c475faa4df7aa3b58906b549702ce088
4
- data.tar.gz: 18e3bd57a3008d9666f19bbd6a135f2b9fa35854
3
+ metadata.gz: 1c30bf76d1f538f6c48b3a60c2deafe507f9da4e
4
+ data.tar.gz: b438b0368fe598cc6d907a77adb6945c0cf6d020
5
5
  SHA512:
6
- metadata.gz: 860e936eeeadae58caf5f8ef0e66ca936c829c030688a7b0f5f1f3e905a99a2f106e7a448b4404a4fe6966a61ebcfe02cb8494c14122bdeb71e303b0c9254dda
7
- data.tar.gz: b96d2e548a279986980553e0924a4622154f6a08fee0f9380db0d6b43bcdcbe683fd956f9cfc9ca3034edefeee60c70c87202ebf70e91025397d7a85f962ae43
6
+ metadata.gz: 7b861ffdcadebf2a888704bb63c4cbdfd1f260a011e2033bb869cfb4969c164ad5baa09d6af963cc9463b26fd1701f1fe51c789b307783086910826721466a5b
7
+ data.tar.gz: d9fd58a084209f4cb46e3bc1952869a3d9988a5bc27cc22dfcac94027c30be7cfe26906485b18640b11d5ea245ae1eb6817ebae657ea6223a0586104588ee834
@@ -1,8 +1,30 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
4
  - 2.0.0
4
- - 2.1.7
5
- - 2.2.3
5
+ - 2.1.10
6
+ - 2.2.6
7
+ - 2.3.3
8
+ - 2.4.0
9
+ - ruby-head
10
+ - jruby
11
+ - jruby-9
12
+ - jruby-19mode
13
+ - jruby-head
14
+ - rbx
15
+ - rbx-2
16
+
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: jruby
20
+ - rvm: jruby-9
21
+ - rvm: jruby-19mode
22
+ - rvm: jruby-head
23
+ - rvm: ruby-head
24
+ - rvm: rbx
25
+ - rvm: rbx-2
26
+ fast_finish: true
27
+
6
28
  script: bundle exec rspec
7
29
  cache: bundler
8
30
  sudo: false
@@ -1,18 +1,19 @@
1
1
  | Version | Changes |
2
2
  | ------- | ------- |
3
- | 0.6.1 | Update LogMe gem to version 0.0.10. |
3
+ | 0.6.2 | Update Ox gem to version `2.4`. [PR #14](https://github.com/prodis/correios-cep/pull/14) |
4
+ | 0.6.1 | Update LogMe gem to version `0.0.10`. |
4
5
  | 0.6.0 | Minimal required Ruby version from now is 2.0.0. |
5
6
  | 0.5.1 | Zipcode input validation improvement. |
6
7
  | 0.5.0 | Handle errors returned from Correios web service. [Issue #10](https://github.com/prodis/correios-cep/issues/10); Zipcode input validation. |
7
8
  | 0.4.0 | Replace Nokogiri by Ox. [Issue #3](https://github.com/prodis/correios-cep/issues/3) |
8
- | 0.3.3 | Downgrade LogMe gem version to 0.0.8, because 0.0.9 does not support Ruby 1.9.2. |
9
- | 0.3.2 | Optional use of HTTP proxy; Update LogMe gem version to 0.0.9. |
9
+ | 0.3.3 | Downgrade LogMe gem version to `0.0.8`, because `0.0.9` does not support Ruby 1.9.2. |
10
+ | 0.3.2 | Optional use of HTTP proxy; Update LogMe gem version to `0.0.9`. |
10
11
  | 0.3.1 | Minimal required Ruby version is 1.9.2 again. |
11
12
  | 0.3.0 | Update Correios web service URL. |
12
13
  | 0.2.0 | Minimal required Ruby version from now is 1.9.3. |
13
14
  | 0.1.4 | Minimal required Ruby version now is 1.9.2. |
14
- | 0.1.3 | Update LogMe gem to version 0.0.6 with support to log request and response messages. |
15
- | 0.1.2 | Update LogMe gem to version 0.0.5 with support to log messages label. |
15
+ | 0.1.3 | Update LogMe gem to version `0.0.6` with support to log request and response messages. |
16
+ | 0.1.2 | Update LogMe gem to version `0.0.5` with support to log messages label. |
16
17
  | 0.1.1 | `AddressFinder.get` class method. |
17
18
  | 0.1.0 | First working version. |
18
19
  | 0.0.1 | First version, not working yet. |
data/README.md CHANGED
@@ -129,7 +129,7 @@ end
129
129
  ```ruby
130
130
  Correios::CEP.configure do |config|
131
131
  config.logger = Rails.logger
132
- config.request_timeout = 3
132
+ config.request_timeout = 3 # seconds
133
133
  end
134
134
  ```
135
135
 
@@ -148,6 +148,7 @@ end
148
148
  ### Contributors
149
149
  - [Gabriel Givigier Guimarães (givigier)](https://github.com/givigier)
150
150
  - [Maury M. Marques (maurymmarques)](https://github.com/maurymmarques)
151
+ - [Rafael Garcia](https://github.com/rafbgarcia)
151
152
 
152
153
 
153
154
  ## Contributing to correios-cep
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'correios-cep'
5
+
6
+ require 'pry'
7
+ Pry.start
@@ -21,12 +21,12 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = Gem::Requirement.new('>= 2.0.0')
22
22
 
23
23
  spec.add_dependency 'log-me', '~> 0.0.10'
24
- spec.add_dependency 'ox', '~> 2.2.2'
24
+ spec.add_dependency 'ox', '~> 2.4'
25
25
 
26
- spec.add_development_dependency 'coveralls', '~> 0.8.10'
27
- spec.add_development_dependency 'pry', '~> 0.10.3'
28
- spec.add_development_dependency 'rake', '~> 10.4.2'
29
- spec.add_development_dependency 'rspec', '~> 3.4'
30
- spec.add_development_dependency 'vcr', '~> 3.0.0'
31
- spec.add_development_dependency 'webmock', '~> 1.22'
26
+ spec.add_development_dependency 'coveralls', '~> 0.8.19'
27
+ spec.add_development_dependency 'pry', '~> 0.10'
28
+ spec.add_development_dependency 'rake', '~> 12.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.5'
30
+ spec.add_development_dependency 'vcr', '~> 3.0'
31
+ spec.add_development_dependency 'webmock', '~> 2.3'
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module Correios
2
2
  module CEP
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: correios-cep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prodis a.k.a. Fernando Hamasaki de Amorim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2017-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: log-me
@@ -30,102 +30,103 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.2
33
+ version: '2.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.2
40
+ version: '2.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coveralls
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.8.10
47
+ version: 0.8.19
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.8.10
54
+ version: 0.8.19
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.10.3
61
+ version: '0.10'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.10.3
68
+ version: '0.10'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 10.4.2
75
+ version: '12.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 10.4.2
82
+ version: '12.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.4'
89
+ version: '3.5'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.4'
96
+ version: '3.5'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: vcr
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 3.0.0
103
+ version: '3.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 3.0.0
110
+ version: '3.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.22'
117
+ version: '2.3'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.22'
124
+ version: '2.3'
125
125
  description: Correios CEP gem gets updated Brazilian address from a zipcode, directly
126
126
  from Correios database. No HTML parsers.
127
127
  email: prodis@gmail.com
128
- executables: []
128
+ executables:
129
+ - console
129
130
  extensions: []
130
131
  extra_rdoc_files: []
131
132
  files:
@@ -137,6 +138,7 @@ files:
137
138
  - LICENSE
138
139
  - README.md
139
140
  - Rakefile
141
+ - bin/console
140
142
  - correios-cep.gemspec
141
143
  - lib/correios-cep.rb
142
144
  - lib/correios/cep.rb
@@ -171,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
173
  version: '0'
172
174
  requirements: []
173
175
  rubyforge_project:
174
- rubygems_version: 2.4.5.1
176
+ rubygems_version: 2.6.8
175
177
  signing_key:
176
178
  specification_version: 4
177
179
  summary: Correios CEP gem gets updated Brazilian address from a zipcode, directly