elibri_watermarking 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -88,7 +88,7 @@ module ElibriWatermarking
88
88
 
89
89
  def try_with_different_servers(action)
90
90
  txt_record = self.servers || Net::DNS::Resolver.start("transactional-servers.elibri.com.pl", Net::DNS::TXT).answer.first.txt
91
- servers = txt_record.split(",").sort_by(&:rand).map(&:strip)
91
+ servers = txt_record.split(",").sort_by { rand }.map(&:strip)
92
92
  servers.each do |server|
93
93
  uri = URI("https://#{server}.elibri.com.pl/watermarking/#{action}")
94
94
  logger.info("trying #{uri}") if logger
@@ -1,3 +1,3 @@
1
1
  module ElibriWatermarking
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_watermarking
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
9
+ - 2
10
+ version: 0.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Piotr Szmielew
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-11-06 00:00:00 +01:00
19
+ date: 2012-12-10 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency