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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/pombo/package.rb +0 -4
- data/lib/pombo/support.rb +1 -1
- data/lib/pombo/version.rb +1 -1
- data/lib/pombo/webservice/base.rb +1 -1
- data/locales/en.yml +1 -0
- data/locales/pt-br.yml +1 -0
- data/pombo.gemspec +4 -4
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35fb92fd616447ed99abc77f38f839713b2ffdc0
|
4
|
+
data.tar.gz: 989a30ac9bc9864400659a5abf69873e533e8f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c685feb2c81600a948222fc56067b11239f0f32e093fee4fa9830e88a61d3fce71d38c610894bd0bdd8a586cc07391d2b8999ce3d321c7d8d527b13a231d9e68
|
7
|
+
data.tar.gz: 29bd9a308c2b423c5c0225b4682c050fd9934c55e97ab5174edceb2480399b9f399f8bb997e23aa0459df0ee729171ce075e16e17eed154155e34dadc70a4213
|
data/CHANGELOG.md
CHANGED
data/lib/pombo/package.rb
CHANGED
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
@@ -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
data/locales/pt-br.yml
CHANGED
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.
|
30
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
31
|
-
spec.add_development_dependency 'pry', '~> 0.10
|
32
|
-
spec.add_development_dependency 'webmock', '~> 2.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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
|
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
|
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.
|
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.
|
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.
|
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
|