ruby_isds 0.10.5 → 0.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d05c35dddd10d2425e0dbec33a3713500976380
4
- data.tar.gz: 7c630c27f8254153fb7f569344c50947038cbfd6
3
+ metadata.gz: 54ede4561991fb53260b706dbddb06013979c899
4
+ data.tar.gz: 937cee57008872648c4f70b7e38031c858cb9594
5
5
  SHA512:
6
- metadata.gz: 297d7ef25f15b10056b042ee35ed8233dec78156ba33eb2b11af08127356491bf19406e7c8d71edf40958f5ab1e46aedabf541825c7810945ec18a7ee4d99659
7
- data.tar.gz: d9aabe48f3981c5c4d812cf493ccfaa796325e0d4431d4a8313bcafb09abc1e904a1c0347b060899bfe92a3895faa43a172fa9d9b2b72d1ed834c5993eb56c50
6
+ metadata.gz: d005c35b9fbda580317430ffc37f50e2e6804da489396fa87e97ac67f8e0d571fb899974ecb389e337606601d1a4e37fa6e407282331c901c2319b8ad0b4958c
7
+ data.tar.gz: 9f25f7db228a8f022054c13926c85d2d8c21632bf4e1cbe094feb369857c444134f51c63a1a29b0db33ca5e9fb0549c33f919a95de3bce7556d8ca9b3c8cf7d5
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.3
1
+ 2.3.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_isds (0.10.5)
4
+ ruby_isds (0.11.0)
5
5
  activesupport
6
6
  nokogiri
7
7
 
@@ -136,4 +136,4 @@ DEPENDENCIES
136
136
  webmock (~> 3.0)
137
137
 
138
138
  BUNDLED WITH
139
- 1.16.2
139
+ 1.16.4
data/lib/ruby_isds.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'net/http'
2
+ require 'net/https'
2
3
  require 'base64'
3
4
  require 'nokogiri'
4
5
  require 'active_support/core_ext/hash'
@@ -36,7 +36,7 @@ module RubyIsds
36
36
 
37
37
  def api_domain
38
38
  case @env
39
- when :production then 'https://ws1c.mojedatovaschranka.cz'
39
+ when :production then 'https://ws1.mojedatovaschranka.cz'
40
40
  else 'https://ws1.czebox.cz'
41
41
  end
42
42
  end
@@ -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
- response = Net::HTTP.start(uri.hostname, uri.port,
21
- use_ssl: uri.scheme == 'https') do |http|
22
- http.request(request)
23
- end
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
- "http://#{RubyIsds.configuration.xml_url}"
96
+ "https://#{RubyIsds.configuration.xml_url}"
95
97
  end
96
98
 
97
99
  ##
@@ -1,3 +1,3 @@
1
1
  module RubyIsds
2
- VERSION = '0.10.5'.freeze
2
+ VERSION = '0.11.0'.freeze
3
3
  end
@@ -11,7 +11,7 @@ module RubyIsds
11
11
  end
12
12
 
13
13
  def xml_url
14
- "http://isds.#{RubyIsds.configuration.xml_url}/v20"
14
+ "https://isds.#{RubyIsds.configuration.xml_url}/v20"
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module RubyIsds
11
11
  end
12
12
 
13
13
  def xml_url
14
- "http://isds.#{RubyIsds.configuration.xml_url}/v20"
14
+ "https://isds.#{RubyIsds.configuration.xml_url}/v20"
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module RubyIsds
11
11
  end
12
12
 
13
13
  def xml_url
14
- "http://isds.#{RubyIsds.configuration.xml_url}/v20"
14
+ "https://isds.#{RubyIsds.configuration.xml_url}/v20"
15
15
  end
16
16
  end
17
17
  end
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.10.5
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-08-07 00:00:00.000000000 Z
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.6.14
299
+ rubygems_version: 2.5.1
300
300
  signing_key:
301
301
  specification_version: 4
302
302
  summary: Ruby client to access ISDS