ragoon 1.1.0 → 1.1.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 +5 -5
- data/README.md +15 -0
- data/lib/ragoon.rb +1 -0
- data/lib/ragoon/client.rb +8 -1
- data/lib/ragoon/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 1501cdddfdd227dfdc52c0ec55fbfab3bb4eb13a3f58083d69ce1204357c69d3
|
|
4
|
+
data.tar.gz: e82e70f2078b0f829ba3f4b609e620705dcf718c3a30cac97abd82a224e74997
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ac5f2b320aca1aa80151dbbad9256117065608487720969d7ce629fdcc5d1215aa6b6fa591c0a2c31e4daabc19c661a1173bb118fc1859f58b5a540b2beed74
|
|
7
|
+
data.tar.gz: 72019e81a7ac3b23e51df66d4939bdf9db63902f52c3f4141da55476d09f41c68261d1bb9046b1a502b737ce9e2233b2d1557aee5b8490cf121d89a45937b22a
|
data/README.md
CHANGED
|
@@ -12,6 +12,21 @@ Verson 1.0.0 contains a change with braking compatibility for Garoon 3 (Will be
|
|
|
12
12
|
|
|
13
13
|
Specify your garoon version (3 or 4) on your ENV or secret option.
|
|
14
14
|
|
|
15
|
+
## Environment Variables
|
|
16
|
+
|
|
17
|
+
Specify options via ENV
|
|
18
|
+
|
|
19
|
+
- `GAROON_ENDPOINT`
|
|
20
|
+
- Specify URL of your Garoon's API endpoint that ends with `?WSDL`
|
|
21
|
+
- `GAROON_USERNAME`
|
|
22
|
+
- `GAROON_PASSWORD`
|
|
23
|
+
- `GAROON_VERSION`
|
|
24
|
+
- Default : 4
|
|
25
|
+
- `GAROON_RETRY`
|
|
26
|
+
- Default : 10
|
|
27
|
+
- `SKIP_VERIFY_SSL`
|
|
28
|
+
- If this variable is specified, POST request with `OpenSSL::SSL::VERIFY_NONE`.
|
|
29
|
+
|
|
15
30
|
## Usage
|
|
16
31
|
|
|
17
32
|
### Schedule
|
data/lib/ragoon.rb
CHANGED
data/lib/ragoon/client.rb
CHANGED
|
@@ -37,7 +37,14 @@ class Ragoon::Client
|
|
|
37
37
|
reset
|
|
38
38
|
@action_name = action_name
|
|
39
39
|
@body_node = body_node
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
rest_options = {}
|
|
42
|
+
if (@options[:skip_verify_ssl])
|
|
43
|
+
rest_options[:verify_ssl] = OpenSSL::SSL::VERIFY_NONE
|
|
44
|
+
end
|
|
45
|
+
rest_client = RestClient::Resource.new(endpoint, rest_options)
|
|
46
|
+
|
|
47
|
+
@response = rest_client.post(Ragoon::XML.render(action_name, body_node, @options))
|
|
41
48
|
ensure
|
|
42
49
|
raise_error unless result_set.xpath('//soap:Fault').empty?
|
|
43
50
|
end
|
data/lib/ragoon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ragoon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SHIOYA, Hiromu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
140
|
version: '0'
|
|
141
141
|
requirements: []
|
|
142
142
|
rubyforge_project:
|
|
143
|
-
rubygems_version: 2.
|
|
143
|
+
rubygems_version: 2.7.4
|
|
144
144
|
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: Ragoon is a simple Garoon 3 API client.
|