ragoon 1.1.0 → 1.1.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
- SHA1:
3
- metadata.gz: 6d599f1d03691cb88ef6728c4cecdbf69d1762ef
4
- data.tar.gz: 18f8ce5b9989c066663da7f0079db320510b499a
2
+ SHA256:
3
+ metadata.gz: 1501cdddfdd227dfdc52c0ec55fbfab3bb4eb13a3f58083d69ce1204357c69d3
4
+ data.tar.gz: e82e70f2078b0f829ba3f4b609e620705dcf718c3a30cac97abd82a224e74997
5
5
  SHA512:
6
- metadata.gz: '009eefbef6e6e0175c27233b6ff1fa167806601f7fc1ead1f17cb3556759ddb5fba0977f71ae3eb1ed2a80db810b6e8a16cef3a84395dbefe24292735644a89c'
7
- data.tar.gz: d5e4ad9a3f7f5bfd8f9c478f8a40207d4ce8c9bedf49d57dc07634bf11ef74e828d61d47d1bbbbd6da8d7f7d0275aa763f4fc236b1ea4436749f347931a8e978
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
@@ -21,6 +21,7 @@ module Ragoon
21
21
  password: ENV['GAROON_PASSWORD'] || raise_option_error('password'),
22
22
  version: ENV['GAROON_VERSION'] || 4,
23
23
  retry: ENV['GAROON_RETRY'] || 10,
24
+ skip_verify_ssl: !!ENV['SKIP_VERIFY_SSL'] || false,
24
25
  }
25
26
  end
26
27
 
@@ -37,7 +37,14 @@ class Ragoon::Client
37
37
  reset
38
38
  @action_name = action_name
39
39
  @body_node = body_node
40
- @response = RestClient.post(endpoint, Ragoon::XML.render(action_name, body_node, @options))
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
@@ -1,3 +1,3 @@
1
1
  module Ragoon
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
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.0
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: 2017-09-08 00:00:00.000000000 Z
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.6.13
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.