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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f273b8cbbfbffa64f1e4c141bf8f02a29dcfbd34
4
- data.tar.gz: 682f35bda80e9c2d625b18256cb607edd9229597
3
+ metadata.gz: 202e1a5ee696fcd1a42eba6aeedd9faf8906dce0
4
+ data.tar.gz: 8e339531052e3a140214567254c4d354554b174f
5
5
  SHA512:
6
- metadata.gz: 6a088f2857cc587af2576982cc21e604a3bd11f52c8c141f50c2fb66348b3c3d7794d15188d8b3c64c0a67ed35551e1d288d9943118d729e27935a6bc6a197e1
7
- data.tar.gz: 3b7d079a06bd1ba6b5747df3f3b7e3df00d51b0ef0dca76250118f9a1dbf34460ffafb63b35b5416615c457b008c4578260d85f29ab72e51271d95cab02f1b7b
6
+ metadata.gz: a3139f2aa18d3856386e9204f95cd1662c3a0a2b8acc9425a6dd482dd8fc30a91bf2aba1730152644b81a97488b57faf5fb2eebb6a692c7fac7920dc5d6c3987
7
+ data.tar.gz: df4d1ac6f776051e549913e2e1f2d7d166e53aee7d87d2ff8913d6ee26e55fbffa71f8df9a69718b55522bd6e4cb5867b5c987327dd3e16497981c43a7e1e873
@@ -7,7 +7,9 @@ module Mifiel
7
7
  put :save, '/documents/:id'
8
8
  delete :delete, '/documents/:id'
9
9
 
10
- def self.create(file:, signatories:, hash:nil, callback_url:nil)
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(
@@ -1,3 +1,3 @@
1
1
  module Mifiel
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
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.2
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: '0'
276
+ version: '2.1'
277
277
  required_rubygems_version: !ruby/object:Gem::Requirement
278
278
  requirements:
279
279
  - - ">="