ruby_universign 1.2.1 → 1.3.1

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
  SHA256:
3
- metadata.gz: be66f3f3888dfa5be80ae0a7b04bb24abdcd1d968459fe947155195354774323
4
- data.tar.gz: e8a8bb26267e7b475f29f36bb2e5d019b18766c29e0a1381f2cfff20c2ee302b
3
+ metadata.gz: 6cb709339136cbd0245b7d798db80c7107c11bba63390dcfbd602d4f1c69e03c
4
+ data.tar.gz: 14eb0891dee9adc855633c65cbd011ff01d9afc7e4ce639ee840ac3e25d02433
5
5
  SHA512:
6
- metadata.gz: dbe62e8c57efec45a9680380e478564750d8cdae030cd59697a7b6cd02ce49410a2fc1465c03729eca7f1d725f1669b6aef19933069b964e94295a69c7e2b6bb
7
- data.tar.gz: fb66dd95ce4c4806217ac2f921148823de882045b845631bee2f564470a3d53b768f014aa4becb3a8612f9ee6e3499d3e3faaa4d2526681828702d1d0b5087cc
6
+ metadata.gz: 506698f5430b9d49ec75a69f46351c926fcba8d5d62e5c4af2869dec95e4bcbf55a1670ecb761a4613813b4a552830deb4f7adaf1dc9b0b543eb0c4efdd77468
7
+ data.tar.gz: 87b9d900f92c102ce365d3b71c2a2e21c81ad3ad03dcefab8ccd17695fa561c9cbd642684d7e53f426cc4ef6fdca4b61b5dd0dd535e8e46a3d6144b1f9bc09ac
data/.gitignore CHANGED
@@ -8,4 +8,6 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .env
11
- .idea
11
+ .idea
12
+ *.swp
13
+ *.swo
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ v1.3.1
2
+ -------------------------
3
+
4
+ - Fixing regressions added
5
+
6
+ v1.3.0 - NOT WORKING
7
+ -------------------------
8
+
9
+ - Adding the possibility to configure proxy and timeout options for the XMLRPC Client
10
+
11
+ v1.2.1
12
+ -------------------------
13
+
14
+ - Bumping rake development dependancy due to security issues
15
+
1
16
  v1.2.0
2
17
  -------------------------
3
18
 
data/README.md CHANGED
@@ -38,9 +38,11 @@ Configuration:
38
38
  ```ruby
39
39
  # if you're using Rails, put this in an initializer
40
40
  Universign.configure do |config|
41
- config.endpoint = ENV['UNIVERSIGN_ENDPOINT']
42
- config.login = ENV['UNIVERSIGN_LOGIN']
43
- config.password = ENV['UNIVERSIGN_PASSWORD']
41
+ config.endpoint = 'your_universign_endpoint' # Required ...
42
+ config.login = 'your_login' # Required ...
43
+ config.password = 'your_password' # Required ...
44
+ config.proxy = 'your_proxy_uri:your_proxy_port' # Optionnal ...
45
+ config.timeout = 30 # Optionnal if you wanna change the default XMLRPC Timeout ...
44
46
  end
45
47
  ```
46
48
 
@@ -6,7 +6,11 @@ module Universign
6
6
  attr_reader :client
7
7
 
8
8
  def initialize
9
- @client = XMLRPC::Client.new2(Universign.configuration.endpoint)
9
+ @client = XMLRPC::Client.new2(
10
+ Universign.configuration.endpoint,
11
+ Universign.configuration.proxy,
12
+ Universign.configuration.timeout
13
+ )
10
14
  @client.user = Universign.configuration.login
11
15
  @client.password = Universign.configuration.password
12
16
  end
@@ -1,11 +1,13 @@
1
1
  module Universign
2
2
  class Configuration
3
- attr_accessor :login, :password, :endpoint
3
+ attr_accessor :login, :password, :endpoint, :proxy, :timeout
4
4
 
5
5
  def initialize
6
- @login = ''
7
- @password = ''
8
- @endpoint = ''
6
+ @login = nil
7
+ @password = nil
8
+ @endpoint = nil
9
+ @proxy = nil
10
+ @timeout = nil
9
11
  end
10
12
  end
11
13
 
@@ -2,7 +2,7 @@ module Universign
2
2
  class SignatureField
3
3
  attr_reader :params
4
4
 
5
- def initialize(coordinate:, name: nil, page:, signer_index:)
5
+ def initialize(coordinate:, name: nil, page:, signer_index: 0)
6
6
  @coordinate = coordinate || [0, 0]
7
7
  @name = name
8
8
  @page = page
@@ -1,3 +1,3 @@
1
1
  module Universign
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_runtime_dependency 'activesupport', '>= 4.1'
29
29
 
30
- spec.add_development_dependency "bundler", "~> 1.10"
30
+ spec.add_development_dependency "bundler", ">= 1.10"
31
31
  spec.add_development_dependency "rake", ">= 12.3.3"
32
32
  spec.add_development_dependency "rspec", "~> 3.0"
33
33
  spec.add_development_dependency "dotenv", "~> 2.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_universign
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Besnard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-11-03 00:00:00.000000000 Z
13
+ date: 2020-11-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  name: bundler
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '1.10'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '1.10'
43
43
  - !ruby/object:Gem::Dependency