elibri_watermarking 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -101,7 +101,7 @@ module ElibriWatermarking
101
101
  req = request_class.new(uri.path)
102
102
  req.set_form_data(data)
103
103
  http = Net::HTTP.new(uri.host, uri.port)
104
- # http.use_ssl = true
104
+ http.use_ssl = true
105
105
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
106
106
  res = http.start {|http| http.request(req) }
107
107
  return validate_response(res)
@@ -111,7 +111,7 @@ module ElibriWatermarking
111
111
  txt_record = self.servers || Net::DNS::Resolver.start("transactional-servers.elibri.com.pl", Net::DNS::TXT).answer.first.txt
112
112
  servers = txt_record.split(",").sort_by { rand }.map(&:strip)
113
113
  servers.each do |server|
114
- uri = URI("http://#{server}.elibri.com.pl/watermarking/#{action}")
114
+ uri = URI("https://#{server}.elibri.com.pl/watermarking/#{action}")
115
115
  logger.info("trying #{uri}") if logger
116
116
  begin
117
117
  yield uri
@@ -1,3 +1,3 @@
1
1
  module ElibriWatermarking
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_watermarking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 2447561301423049049
78
+ hash: 1832785913580236537
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  none: false
81
81
  requirements:
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: 2447561301423049049
87
+ hash: 1832785913580236537
88
88
  requirements: []
89
89
  rubyforge_project: elibri_watermarking
90
90
  rubygems_version: 1.8.25