ruby_universign 1.2.1 → 1.3.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.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/CHANGELOG.md +15 -0
- data/README.md +5 -3
- data/lib/universign/client.rb +5 -1
- data/lib/universign/configuration.rb +6 -4
- data/lib/universign/signature_field.rb +1 -1
- data/lib/universign/version.rb +1 -1
- data/ruby_universign.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cb709339136cbd0245b7d798db80c7107c11bba63390dcfbd602d4f1c69e03c
|
4
|
+
data.tar.gz: 14eb0891dee9adc855633c65cbd011ff01d9afc7e4ce639ee840ac3e25d02433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 506698f5430b9d49ec75a69f46351c926fcba8d5d62e5c4af2869dec95e4bcbf55a1670ecb761a4613813b4a552830deb4f7adaf1dc9b0b543eb0c4efdd77468
|
7
|
+
data.tar.gz: 87b9d900f92c102ce365d3b71c2a2e21c81ad3ad03dcefab8ccd17695fa561c9cbd642684d7e53f426cc4ef6fdca4b61b5dd0dd535e8e46a3d6144b1f9bc09ac
|
data/.gitignore
CHANGED
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 =
|
42
|
-
config.login =
|
43
|
-
config.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
|
|
data/lib/universign/client.rb
CHANGED
@@ -6,7 +6,11 @@ module Universign
|
|
6
6
|
attr_reader :client
|
7
7
|
|
8
8
|
def initialize
|
9
|
-
@client = XMLRPC::Client.new2(
|
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
|
|
data/lib/universign/version.rb
CHANGED
data/ruby_universign.gemspec
CHANGED
@@ -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", "
|
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.
|
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-
|
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
|