ruby_isds 0.10.5 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +2 -2
- data/lib/ruby_isds.rb +1 -0
- data/lib/ruby_isds/configuration.rb +1 -1
- data/lib/ruby_isds/request.rb +7 -5
- data/lib/ruby_isds/version.rb +1 -1
- data/lib/ruby_isds/web_services/db_search/request.rb +1 -1
- data/lib/ruby_isds/web_services/dm_info/request.rb +1 -1
- data/lib/ruby_isds/web_services/dm_operations/request.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54ede4561991fb53260b706dbddb06013979c899
|
4
|
+
data.tar.gz: 937cee57008872648c4f70b7e38031c858cb9594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d005c35b9fbda580317430ffc37f50e2e6804da489396fa87e97ac67f8e0d571fb899974ecb389e337606601d1a4e37fa6e407282331c901c2319b8ad0b4958c
|
7
|
+
data.tar.gz: 9f25f7db228a8f022054c13926c85d2d8c21632bf4e1cbe094feb369857c444134f51c63a1a29b0db33ca5e9fb0549c33f919a95de3bce7556d8ca9b3c8cf7d5
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.1
|
data/Gemfile.lock
CHANGED
data/lib/ruby_isds.rb
CHANGED
data/lib/ruby_isds/request.rb
CHANGED
@@ -13,14 +13,16 @@ module RubyIsds
|
|
13
13
|
# rubocop:disable Metrics/AbcSize
|
14
14
|
def call
|
15
15
|
uri = URI(full_url)
|
16
|
+
|
16
17
|
request = Net::HTTP::Post.new(uri)
|
17
18
|
default_headers.each { |k, v| request[k] = v }
|
18
19
|
request.body = to_xml
|
19
20
|
request.basic_auth RubyIsds.configuration.username, RubyIsds.configuration.password
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
|
22
|
+
https = Net::HTTP.new(uri.hostname, uri.port)
|
23
|
+
https.use_ssl = true
|
24
|
+
https.ssl_version = :TLSv1_2_client
|
25
|
+
response = https.request(request)
|
24
26
|
call_reponse_wrapper(response)
|
25
27
|
end
|
26
28
|
# rubocop:enable Metrics/AbcSize
|
@@ -91,7 +93,7 @@ module RubyIsds
|
|
91
93
|
# URL will differ based on endpoint that it accesses
|
92
94
|
#
|
93
95
|
def xml_url
|
94
|
-
"
|
96
|
+
"https://#{RubyIsds.configuration.xml_url}"
|
95
97
|
end
|
96
98
|
|
97
99
|
##
|
data/lib/ruby_isds/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_isds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrej Antas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -296,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
296
|
version: '0'
|
297
297
|
requirements: []
|
298
298
|
rubyforge_project:
|
299
|
-
rubygems_version: 2.
|
299
|
+
rubygems_version: 2.5.1
|
300
300
|
signing_key:
|
301
301
|
specification_version: 4
|
302
302
|
summary: Ruby client to access ISDS
|