viafirma-api 0.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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ODUzMjQyZWYzOTkzMTBkZWQ4YTBlM2EzNTA3NTU5ZmMyZTE4YjE3ZA==
5
+ data.tar.gz: !binary |-
6
+ ZjRjYTUwZWY0YmQzNDQ4MDMzNjZjNTBmNWNkNTBmY2Y1MjA5YmNmYw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YTliZjMyYzkwZmJmYTYzNjhhZGY4N2ZkMTVlNWZlZWI1Yzg4NGFjODJmZGZm
10
+ YjA3MzE4YTU3NzQyNDA1ZjgyMzA4YjU0NTk3NWM5ZWFhNDg5ODNiNmZjZGI1
11
+ NzQ1NmVkZmNjNTM1OGZlMmU0NWMzM2ZjMmIxYWQ2MzAyYTI5MDA=
12
+ data.tar.gz: !binary |-
13
+ MmFiNDU1OTM0MjQ3MjAyZDBlNzk1ZTAxMWU1ZTY5MjE5OTI4NjQyMzE3ZGQ1
14
+ ZDE1ZjRjZWZkYWRlN2QxYTA1ZjBhNzY5MWMxNWVjYTZkMGIxZjU3NzRiYTBl
15
+ Y2NlZDEwOTgzYzMyNDQyMDlmZmFlNWY2YzI5NWIxNjE1YTc1NTc=
@@ -0,0 +1 @@
1
+ lib/viafirma/config.yml
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in viafirma-api.gemspec
4
+ gemspec
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ viafirma-api (0.0.1)
5
+ activesupport (~> 3.2)
6
+ savon (~> 2.11)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (3.2.14)
12
+ i18n (~> 0.6, >= 0.6.4)
13
+ multi_json (~> 1.0)
14
+ akami (1.3.1)
15
+ gyoku (>= 0.4.0)
16
+ nokogiri
17
+ builder (3.2.2)
18
+ columnize (0.9.0)
19
+ debugger (1.6.8)
20
+ columnize (>= 0.3.1)
21
+ debugger-linecache (~> 1.2.0)
22
+ debugger-ruby_core_source (~> 1.3.5)
23
+ debugger-linecache (1.2.0)
24
+ debugger-ruby_core_source (1.3.8)
25
+ diff-lcs (1.2.5)
26
+ gyoku (1.3.1)
27
+ builder (>= 2.1.2)
28
+ httpi (2.4.2)
29
+ rack
30
+ socksify
31
+ i18n (0.6.9)
32
+ mini_portile2 (2.0.0)
33
+ multi_json (1.9.2)
34
+ nokogiri (1.6.7.2)
35
+ mini_portile2 (~> 2.0.0.rc2)
36
+ nori (2.6.0)
37
+ rack (1.6.4)
38
+ rake (10.5.0)
39
+ rspec (3.4.0)
40
+ rspec-core (~> 3.4.0)
41
+ rspec-expectations (~> 3.4.0)
42
+ rspec-mocks (~> 3.4.0)
43
+ rspec-core (3.4.4)
44
+ rspec-support (~> 3.4.0)
45
+ rspec-expectations (3.4.0)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.4.0)
48
+ rspec-mocks (3.4.1)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.4.0)
51
+ rspec-support (3.4.1)
52
+ savon (2.11.1)
53
+ akami (~> 1.2)
54
+ builder (>= 2.1.2)
55
+ gyoku (~> 1.2)
56
+ httpi (~> 2.3)
57
+ nokogiri (>= 1.4.0)
58
+ nori (~> 2.4)
59
+ wasabi (~> 3.4)
60
+ socksify (1.7.0)
61
+ wasabi (3.5.0)
62
+ httpi (~> 2.0)
63
+ nokogiri (>= 1.4.2)
64
+
65
+ PLATFORMS
66
+ ruby
67
+
68
+ DEPENDENCIES
69
+ bundler (~> 1.7)
70
+ debugger (~> 1.6)
71
+ rake (~> 10.0)
72
+ rspec (~> 3.4)
73
+ viafirma-api!
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 David García
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,67 @@
1
+ # Viafirma::Api
2
+
3
+ API for connect and manage e-sign with viafirma platform
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'viafirma-api'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install viafirma-api
20
+
21
+ ## Usage
22
+
23
+ Viafirma API facade initialization:
24
+
25
+ facade = Viafirma::Api::Facade.new(server: <address>, user: <username>, apikey: <apikey>)
26
+
27
+ By default the gem will use the port 80 for the requests, but you can change it with aditional parameter in the initialization hash (`port: <portnumber>`)
28
+
29
+ ### Ping
30
+ For testing the connection with the API you can call the ping method of the facade
31
+
32
+ facade.ping
33
+ the response should be a Hash like this:
34
+
35
+ {:error=>false, :message=>nil, :response_code=>"SUCCESS", :result=>"pingResponse"}
36
+
37
+ ### Prepare sign request
38
+ This method will throw the sign process throught the viafirma platform
39
+
40
+ facade.prepare_sign_request(<personId>, <documentName>, <documentContent>, <returnURL>)
41
+
42
+ `personId`: Viafirma person id of active user that will sign.
43
+
44
+ `documentName`: Name of the document to sign.
45
+
46
+ `documentContent`: Binary content of the document to sign.
47
+
48
+ `returnURL`: Return url where the Viafirma will redirect after the sign request with the result of the sign.
49
+
50
+ The server response Hash for the call should include a redirectURL with the url where the user will sign the document.
51
+
52
+ ### Other methods
53
+
54
+ For other methods of the API you can use it with the 'raw' savon call method and do dirty things :)
55
+
56
+ facade.call(:get_request_info, message: { request_id: <requestId> })
57
+ The first parameter is the method name, and the last is a message payload hash with the request parameters.
58
+
59
+ For further info check the [viafirma developers](https://developers.viafirma.com/en) page
60
+
61
+ ## Contributing
62
+
63
+ 1. Fork it ( https://github.com/[my-github-username]/viafirma-api/fork )
64
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
65
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
66
+ 4. Push to the branch (`git push origin my-new-feature`)
67
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,41 @@
1
+ require 'savon'
2
+
3
+ module Viafirma
4
+ module Api
5
+ class Client
6
+
7
+ def initialize(credentials)
8
+ validate(credentials)
9
+ @client = Savon.client(wsdl: self.class.wsdl(credentials), basic_auth: [credentials[:user], credentials[:apikey]])
10
+ end
11
+
12
+ def self.wsdl(credentials)
13
+ "http://#{credentials[:server]}:#{credentials[:port] || 80}/inbox/serviceWS?wsdl"
14
+ end
15
+
16
+ def call(*args)
17
+ response = @client.call(*args)
18
+ parse_response(response.body)
19
+ end
20
+
21
+ def parse_response(response)
22
+ response_key = response.keys.detect{|k,v| k.to_s.end_with?('_response')}
23
+ data = response[response_key][:return]
24
+
25
+ if data[:error]
26
+ raise "#{data[:response_code]}: #{data[:message]}"
27
+ else
28
+ data
29
+ end
30
+ end
31
+
32
+ private
33
+
34
+ def validate(credentials)
35
+ raise "Server endpoint missing!!" if credentials[:server].blank?
36
+ raise "User can't be blank!!" if credentials[:user].blank?
37
+ raise "Apikey can't be blank!!" if credentials[:apikey].blank?
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,5 @@
1
+ module Viafirma
2
+ module Api
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,30 @@
1
+ require 'active_support/core_ext/hash/indifferent_access'
2
+ require 'active_support/core_ext/module/delegation'
3
+
4
+ module Viafirma
5
+ module Api
6
+ class Facade
7
+ delegate :call, to: :@client
8
+
9
+ def initialize(credentials)
10
+ @client = Client.new(credentials.with_indifferent_access)
11
+ end
12
+
13
+ def ping
14
+ @client.call(:ping, message: { param: 'pingResponse' })
15
+ end
16
+
17
+ def prepare_sign_request(person_id, document_name, document_content, return_url, metadata={})
18
+ params = {
19
+ person_id: person_id,
20
+ document_name: document_name,
21
+ document_content: Base64.encode64(document_content),
22
+ return_url: return_url,
23
+ metadatos: metadata
24
+ }
25
+ @client.call(:prepare_sign_request, message: params)
26
+ end
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,73 @@
1
+ require 'spec_helper'
2
+ require 'viafirma/api/client'
3
+
4
+ describe Viafirma::Api::Client do
5
+
6
+ let(:config){ { server: 'whatever', port: 11, user: 'test', apikey: '123' } }
7
+ let(:client){ Viafirma::Api::Client }
8
+
9
+ describe "#initialize" do
10
+ it "should build a well formed client" do
11
+ expect{ client.new(config) }.to_not raise_error
12
+ end
13
+
14
+ context "invalid config" do
15
+ it "should raise error if server not specified" do
16
+ expect{ client.new(config.merge(server: nil)) }.to raise_error(RuntimeError, /server/i)
17
+ end
18
+
19
+ it "should raise error if user not specified" do
20
+ expect{ client.new(config.merge(user: nil)) }.to raise_error(RuntimeError, /user/i)
21
+ end
22
+
23
+ it "should raise error if apikey not specified" do
24
+ expect{ client.new(config.merge(apikey: nil)) }.to raise_error(RuntimeError, /apikey/i)
25
+ end
26
+ end
27
+ end
28
+
29
+ describe "#call" do
30
+ let(:response_body){ {:ping_response=>{:return=>{:error=>false, :message=>nil, :response_code=>"SUCCESS", :result=>"pingResponse"}, :"@xmlns:ns2"=>"http://tray.viavansi.com"}} }
31
+ let(:response){ double("Savon::Response", :body => response_body) }
32
+ let(:savon_client){ double("Savon::Client") }
33
+
34
+ before(:each){ allow(Savon).to receive(:client).and_return(savon_client) }
35
+
36
+ it "should invoke savon call method with the same args" do
37
+ c = client.new(config)
38
+ expect(savon_client).to receive(:call).with(:ping, message: {param: 'pingResponse'}).and_return(response)
39
+ c.call(:ping, message: {param: 'pingResponse'})
40
+ end
41
+
42
+ it "should parse response" do
43
+ c = client.new(config)
44
+ allow(savon_client).to receive(:call).and_return(response)
45
+ expect(c).to receive(:parse_response).with(response_body)
46
+ c.call(:ping)
47
+ end
48
+ end
49
+
50
+ describe "#parse_response" do
51
+
52
+ it "should return the result for valid responses" do
53
+ response_body = {:method_response=>{:return=>{:error=>false, :message=>nil, :response_code=>"SUCCESS", :result=>"methodResponse"}, :"@xmlns:ns2"=>"http://tray.viavansi.com"}}
54
+ expect(client.new(config).parse_response(response_body)).to eq response_body[:method_response][:return]
55
+ end
56
+
57
+ it "should raise error with a message" do
58
+ error_response = {:method_response=>{:return=>{:error=>true, :message=>"I'm a error!", :response_code=>"ERROR_0"}, :"@xmlns:ns2"=>"http://tray.viavansi.com"}}
59
+ expect{client.new(config).parse_response(error_response)}.to raise_error("ERROR_0: I'm a error!")
60
+ end
61
+ end
62
+
63
+ describe ".wdsl" do
64
+ it "should build wdsl url for viafirma platform" do
65
+ expect(client.wsdl(config)).to eq("http://whatever:11/inbox/serviceWS?wsdl")
66
+ end
67
+
68
+ it "should use port 80 by default" do
69
+ expect(client.wsdl(config.merge(port: nil))).to eq("http://whatever:80/inbox/serviceWS?wsdl")
70
+ end
71
+ end
72
+
73
+ end
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+ require 'viafirma/facade'
3
+
4
+ describe Viafirma::Api::Facade do
5
+
6
+ let(:facade){ Viafirma::Api::Facade }
7
+
8
+ describe "#prepare_sign_request" do
9
+
10
+ let(:client){ double("Client") }
11
+ before(:each){ allow(Viafirma::Api::Client).to receive(:new).and_return(client) }
12
+
13
+ it "should encode document content before send the soap request" do
14
+ allow(client).to receive(:call).with(:prepare_sign_request, message: hash_including(document_content: Base64.encode64('content')))
15
+ facade.new({}).prepare_sign_request('1234', 'name', 'content', 'return.url', {metadata_key: 'metadata_value'})
16
+ end
17
+
18
+ #IMPORTANT IF THE KEY IS NOT PRESENT THE API RESPONDS WITH NULLPOINTEREXCEPTION!!
19
+ it "should include 'metadatos' in the soap request even if it's empty" do
20
+ allow(client).to receive(:call).with(:prepare_sign_request, message: hash_including(metadatos: {}))
21
+ facade.new({}).prepare_sign_request('1234', 'name', 'content', 'return.url')
22
+ end
23
+
24
+ end
25
+
26
+ end
@@ -0,0 +1,98 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ require 'ruby-debug'
20
+
21
+ RSpec.configure do |config|
22
+ # rspec-expectations config goes here. You can use an alternate
23
+ # assertion/expectation library such as wrong or the stdlib/minitest
24
+ # assertions if you prefer.
25
+ config.expect_with :rspec do |expectations|
26
+ # This option will default to `true` in RSpec 4. It makes the `description`
27
+ # and `failure_message` of custom matchers include text for helper methods
28
+ # defined using `chain`, e.g.:
29
+ # be_bigger_than(2).and_smaller_than(4).description
30
+ # # => "be bigger than 2 and smaller than 4"
31
+ # ...rather than:
32
+ # # => "be bigger than 2"
33
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
34
+ end
35
+
36
+ # rspec-mocks config goes here. You can use an alternate test double
37
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
38
+ config.mock_with :rspec do |mocks|
39
+ # Prevents you from mocking or stubbing a method that does not exist on
40
+ # a real object. This is generally recommended, and will default to
41
+ # `true` in RSpec 4.
42
+ mocks.verify_partial_doubles = true
43
+ end
44
+
45
+ # The settings below are suggested to provide a good initial experience
46
+ # with RSpec, but feel free to customize to your heart's content.
47
+ =begin
48
+ # These two settings work together to allow you to limit a spec run
49
+ # to individual examples or groups you care about by tagging them with
50
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
51
+ # get run.
52
+ config.filter_run :focus
53
+ config.run_all_when_everything_filtered = true
54
+
55
+ # Allows RSpec to persist some state between runs in order to support
56
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
57
+ # you configure your source control system to ignore this file.
58
+ config.example_status_persistence_file_path = "spec/examples.txt"
59
+
60
+ # Limits the available syntax to the non-monkey patched syntax that is
61
+ # recommended. For more details, see:
62
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
63
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
64
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
65
+ config.disable_monkey_patching!
66
+
67
+ # This setting enables warnings. It's recommended, but in some cases may
68
+ # be too noisy due to issues in dependencies.
69
+ config.warnings = true
70
+
71
+ # Many RSpec users commonly either run the entire suite or an individual
72
+ # file, and it's useful to allow more verbose output when running an
73
+ # individual spec file.
74
+ if config.files_to_run.one?
75
+ # Use the documentation formatter for detailed output,
76
+ # unless a formatter has already been configured
77
+ # (e.g. via a command-line flag).
78
+ config.default_formatter = 'doc'
79
+ end
80
+
81
+ # Print the 10 slowest examples and example groups at the
82
+ # end of the spec run, to help surface which specs are running
83
+ # particularly slow.
84
+ config.profile_examples = 10
85
+
86
+ # Run specs in random order to surface order dependencies. If you find an
87
+ # order dependency and want to debug it, you can fix the order by providing
88
+ # the seed, which is printed after each run.
89
+ # --seed 1234
90
+ config.order = :random
91
+
92
+ # Seed global randomization in this process using the `--seed` CLI option.
93
+ # Setting this allows you to use `--seed` to deterministically reproduce
94
+ # test failures related to randomization by passing the same `--seed` value
95
+ # as the one that triggered the failure.
96
+ Kernel.srand config.seed
97
+ =end
98
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require 'viafirma/api/version'
6
+ require 'viafirma/api/client'
7
+ require 'viafirma/facade'
8
+
9
+
10
+ Gem::Specification.new do |spec|
11
+ spec.name = "viafirma-api"
12
+ spec.version = Viafirma::Api::VERSION
13
+ spec.authors = ["David García Lorigados"]
14
+ spec.email = ["dglo1985@gmail.com"]
15
+ spec.summary = %q{API for connect and manage e-sign with viafirma platform}
16
+ spec.description = %q{}
17
+ spec.homepage = ""
18
+ spec.license = "MIT"
19
+
20
+ spec.files = `git ls-files -z`.split("\x0")
21
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.7"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec", '~> 3.4'
28
+ spec.add_development_dependency "debugger", '~> 1.6'
29
+
30
+ spec.add_dependency "savon", '~> 2.11'
31
+ spec.add_dependency "activesupport", '~> 3.2'
32
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: viafirma-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David García Lorigados
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: debugger
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: savon
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '2.11'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '2.11'
83
+ - !ruby/object:Gem::Dependency
84
+ name: activesupport
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '3.2'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '3.2'
97
+ description: ''
98
+ email:
99
+ - dglo1985@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .gitignore
105
+ - .rspec
106
+ - Gemfile
107
+ - Gemfile.lock
108
+ - LICENSE
109
+ - README.md
110
+ - Rakefile
111
+ - lib/viafirma/api/client.rb
112
+ - lib/viafirma/api/version.rb
113
+ - lib/viafirma/facade.rb
114
+ - spec/client_spec.rb
115
+ - spec/facade_spec.rb
116
+ - spec/spec_helper.rb
117
+ - viafirma-api.gemspec
118
+ homepage: ''
119
+ licenses:
120
+ - MIT
121
+ metadata: {}
122
+ post_install_message:
123
+ rdoc_options: []
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ requirements: []
137
+ rubyforge_project:
138
+ rubygems_version: 2.4.3
139
+ signing_key:
140
+ specification_version: 4
141
+ summary: API for connect and manage e-sign with viafirma platform
142
+ test_files:
143
+ - spec/client_spec.rb
144
+ - spec/facade_spec.rb
145
+ - spec/spec_helper.rb