zei 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sei/connection.rb +2 -2
- data/lib/sei/version.rb +1 -1
- data/zei.gemspec +16 -18
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a70aaa84eaf72e64cd2bff636d3400741176ec6bb55a4f850850cfb1ef454ebf
|
4
|
+
data.tar.gz: 2cf10a6cd7f7ee9ebb197ff6889fd620b86498031aeaefc013f8acb0115fdbce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f795d36d2b67fc0fb86424c0f116618b46a4fab4256fa389bc4d893c693182b94916bfad5c879013b2150681d43b60c98de28e69fa72d7200b3c21dc1e88f56
|
7
|
+
data.tar.gz: 7bfcc7101dd68204028883bdbc85a183f2995b205b71a4a673b46697f5a0419b35d364387b022efa2d5d40b3c02c1685cccd08060fb6085ccda86fb7b7e8d0bf
|
data/lib/sei/connection.rb
CHANGED
@@ -12,9 +12,9 @@ module Sei
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def call(service, message)
|
15
|
-
request = client.build_request service, message: message
|
15
|
+
request = client.build_request service, message_tag: service.to_s.camelize, message: message.dig(:message)
|
16
16
|
Sei::Printer.xp request.body
|
17
|
-
client.call service, message
|
17
|
+
client.call service, message_tag: service.to_s.camelize, message: message.dig(:message)
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
data/lib/sei/version.rb
CHANGED
data/zei.gemspec
CHANGED
@@ -1,40 +1,38 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
3
|
+
require "sei/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
6
|
+
spec.name = "zei"
|
7
|
+
spec.version = Sei::VERSION
|
8
|
+
spec.authors = ["Ricardo Viana"]
|
9
|
+
spec.email = ["zezim.ricardo@gmail.com"]
|
11
10
|
|
12
|
-
spec.summary
|
13
|
-
spec.description
|
14
|
-
spec.license
|
11
|
+
spec.summary = "Integração com a API do SEI."
|
12
|
+
spec.description = "Expõe, através de métodos ruby, as funcionalidades da API do SEI."
|
13
|
+
spec.license = "MIT"
|
15
14
|
|
16
15
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
16
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
17
|
if spec.respond_to?(:metadata)
|
19
|
-
spec.metadata[
|
18
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
20
19
|
else
|
21
20
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
21
|
"public gem pushes."
|
23
22
|
end
|
24
23
|
|
25
|
-
spec.files
|
24
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
25
|
f.match(%r{^(test|spec|features)/})
|
27
26
|
end
|
28
|
-
spec.bindir
|
29
|
-
spec.executables
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
29
|
spec.require_paths = ["lib"]
|
31
30
|
|
32
31
|
spec.add_development_dependency "bundler", "~> 1.13"
|
33
32
|
spec.add_development_dependency "rake", "~> 10.0"
|
34
33
|
spec.add_development_dependency "minitest", "~> 5.0"
|
35
|
-
|
36
|
-
spec.add_runtime_dependency 'gem_config', '~> 0'
|
37
|
-
spec.add_runtime_dependency 'savon', '~> 2.12.0'
|
38
|
-
spec.add_runtime_dependency 'valuable', '~> 0'
|
39
34
|
|
35
|
+
spec.add_runtime_dependency "gem_config", "~> 0"
|
36
|
+
spec.add_runtime_dependency "savon", "~> 2.15.0"
|
37
|
+
spec.add_runtime_dependency "valuable", "~> 0"
|
40
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
75
|
+
version: 2.15.0
|
76
76
|
type: :runtime
|
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: 2.
|
82
|
+
version: 2.15.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: valuable
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
- !ruby/object:Gem::Version
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
|
-
rubygems_version: 3.5.
|
157
|
+
rubygems_version: 3.5.14
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Integração com a API do SEI.
|