mifiel 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mifiel/document.rb +3 -1
- data/lib/mifiel/version.rb +1 -1
- data/mifiel.gemspec +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 202e1a5ee696fcd1a42eba6aeedd9faf8906dce0
|
4
|
+
data.tar.gz: 8e339531052e3a140214567254c4d354554b174f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3139f2aa18d3856386e9204f95cd1662c3a0a2b8acc9425a6dd482dd8fc30a91bf2aba1730152644b81a97488b57faf5fb2eebb6a692c7fac7920dc5d6c3987
|
7
|
+
data.tar.gz: df4d1ac6f776051e549913e2e1f2d7d166e53aee7d87d2ff8913d6ee26e55fbffa71f8df9a69718b55522bd6e4cb5867b5c987327dd3e16497981c43a7e1e873
|
data/lib/mifiel/document.rb
CHANGED
@@ -7,7 +7,9 @@ module Mifiel
|
|
7
7
|
put :save, '/documents/:id'
|
8
8
|
delete :delete, '/documents/:id'
|
9
9
|
|
10
|
-
def self.create(
|
10
|
+
def self.create(signatories:, file:nil, hash:nil, callback_url:nil)
|
11
|
+
fail ArgumentError, 'Either file or hash must be provided' if !file && !hash
|
12
|
+
fail ArgumentError, 'Only one of file or hash must be provided' if file && hash
|
11
13
|
sgries = {}
|
12
14
|
signatories.each_with_index { |s, i| sgries[i] = s }
|
13
15
|
rest_request = RestClient::Request.new(
|
data/lib/mifiel/version.rb
CHANGED
data/mifiel.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
|
+
spec.required_ruby_version = '~> 2.1'
|
19
20
|
|
20
21
|
spec.add_runtime_dependency 'rest-client', '~> 1.7'
|
21
22
|
spec.add_runtime_dependency 'json', '~> 1.8'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mifiel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genaro Madrid
|
@@ -271,9 +271,9 @@ require_paths:
|
|
271
271
|
- lib
|
272
272
|
required_ruby_version: !ruby/object:Gem::Requirement
|
273
273
|
requirements:
|
274
|
-
- - "
|
274
|
+
- - "~>"
|
275
275
|
- !ruby/object:Gem::Version
|
276
|
-
version: '
|
276
|
+
version: '2.1'
|
277
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
278
|
requirements:
|
279
279
|
- - ">="
|