pombo 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b0cfc72f11328171c4eb9ce98a535b8608cb506
4
- data.tar.gz: 297396f9ddbe75fa891903851df087006aca8037
3
+ metadata.gz: 35fb92fd616447ed99abc77f38f839713b2ffdc0
4
+ data.tar.gz: 989a30ac9bc9864400659a5abf69873e533e8f92
5
5
  SHA512:
6
- metadata.gz: 94d2f7399f38be5b1530bf49ff1db6967b4846ddd0779013770b87dff76e5f5f09aa431cfe179e62f0c890bc6a8c42c029a8cd3396bf6354045bc59f63b80863
7
- data.tar.gz: dba0c988653622fb9b247e0390dd45384b64e0ab87feea3668bcbe919b4bf3727245a8cd9dc214828df7f63d7348e8ba4df463277d8c13bece78b7cf48636218
6
+ metadata.gz: c685feb2c81600a948222fc56067b11239f0f32e093fee4fa9830e88a61d3fce71d38c610894bd0bdd8a586cc07391d2b8999ce3d321c7d8d527b13a231d9e68
7
+ data.tar.gz: 29bd9a308c2b423c5c0225b4682c050fd9934c55e97ab5174edceb2480399b9f399f8bb997e23aa0459df0ee729171ce075e16e17eed154155e34dadc70a4213
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v1.0.1
2
+
3
+ #### Fix
4
+ * Send to log the parameters sent to the webservice
5
+ * Fix the method "str_real_to_float" to work with numbers above thousand
6
+ * Add zip code not found error #999
7
+
1
8
  ## v1.0.0
2
9
 
3
10
  #### New features
data/lib/pombo/package.rb CHANGED
@@ -132,9 +132,5 @@ module Pombo
132
132
  @length = @height = @width = Math.cbrt volume
133
133
  end
134
134
  end
135
-
136
- def min_measure_for(measure, value)
137
-
138
- end
139
135
  end
140
136
  end
data/lib/pombo/support.rb CHANGED
@@ -12,7 +12,7 @@ module Pombo
12
12
  # # => '2.00'
13
13
  def self.str_real_to_float(value)
14
14
  raise TypeError, "no implicit conversion of #{ value.class.name } into String" unless value.kind_of? String
15
- value.tr(',','.').to_f
15
+ value.tr('.','').tr(',','.').to_f
16
16
  end
17
17
 
18
18
  # Used to convert Boolean values to String
data/lib/pombo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pombo
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -8,7 +8,7 @@ module Pombo
8
8
  class Base
9
9
 
10
10
  def self.get(url, request = nil)
11
- Pombo.logger.info('start_request.webservice') { "GET request: #{ url }" }
11
+ Pombo.logger.info('start_request.webservice') { "GET request: #{ url } - Params: #{ request && request.to_hash.merge(sDsSenha: '****') }" }
12
12
  uri = URI.parse url
13
13
  uri.query = request.to_param unless request.nil?
14
14
  http_request = Net::HTTP::Get.new uri
data/locales/en.yml CHANGED
@@ -85,3 +85,4 @@ en:
85
85
  '011': initial and final zip code belonging to risk area
86
86
  '7': Service unavailable, try again later
87
87
  '99': An error occurred while processing
88
+ '999': Source zip code does not exist, see the search CEP
data/locales/pt-br.yml CHANGED
@@ -85,3 +85,4 @@ pt-BR:
85
85
  '011': CEP inicial e final pertencentes a Área de Risco
86
86
  '7': Serviço indisponível, tente mais tarde
87
87
  '99': Ocorreu um error no processamento
88
+ '999': CEP de origem inexistente, consulte o Busca CEP
data/pombo.gemspec CHANGED
@@ -26,9 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency 'sax-machine', '~> 1.3'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 1.11'
29
- spec.add_development_dependency 'rake', '~> 11.1'
30
- spec.add_development_dependency 'rspec', '~> 3.4'
31
- spec.add_development_dependency 'pry', '~> 0.10.3'
32
- spec.add_development_dependency 'webmock', '~> 2.0'
29
+ spec.add_development_dependency 'rake', '~> 11.3'
30
+ spec.add_development_dependency 'rspec', '~> 3.5'
31
+ spec.add_development_dependency 'pry', '~> 0.10'
32
+ spec.add_development_dependency 'webmock', '~> 2.1'
33
33
  spec.add_development_dependency 'yard', '~> 0.8.7.6'
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pombo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Nunes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-03 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -72,56 +72,56 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '11.1'
75
+ version: '11.3'
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: '11.1'
82
+ version: '11.3'
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: pry
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.10.3
103
+ version: '0.10'
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: 0.10.3
110
+ version: '0.10'
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: '2.0'
117
+ version: '2.1'
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: '2.0'
124
+ version: '2.1'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: yard
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  version: '0'
201
201
  requirements: []
202
202
  rubyforge_project:
203
- rubygems_version: 2.6.3
203
+ rubygems_version: 2.4.8
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: Gem to manage the shipping packages using the webservice of the Correios