gorgon 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWNlODZiOTg0MTAyY2U1YWQzNjQzYmI0MTA1NGU0NDZjY2QwNDY1Nw==
4
+ MGU1ZjNlMzdmOTY4MDJiZmVjOTExNzdkMDg1OWZlN2FhNjcxYzRkNw==
5
5
  data.tar.gz: !binary |-
6
- NTg4YTU1ZDRlYWQ3YmEwYmQxNGQxMTUyNGY4ZjQ4OTI4ZWYxNzM0Yg==
6
+ Mjc3MmI1ZGZlODY2OTc2NmE1MGM2NWNiMzZlYzE0ZTBjZDg0Nzg2OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTJmMzRiODAzM2RlZTYyMThmYWM1ZmNhM2QzYjIwZmMzYjVkNzQ3Njg0N2Vm
10
- NDlmZDUyOTcxMmI2MjA1ZGYxZmVkYjQwM2E4ZmZlZWUxNzhkMGIyYzNiYmM0
11
- Y2Y1ZmY4MmY5NTk4NjNjNTM0YjJiYjE2ZThmN2FhZGY3MTlkZDU=
9
+ Y2RlZGJmYzk2OGU0Y2ViNjQ1ZjcyMmFhZmI2YjIyOTI5OGFlN2E4NTkxMzU5
10
+ MDNjZjU2ZGZmNDg1ZjVkYWQ4YWZiN2FjNTI2M2YwNDYwNWI5YjdjYWI0YjEz
11
+ ZjMwNDUyODg0MzJjMDI5OGRkNGUwZWNmMWU1MzlhOTIyZDg2ZTk=
12
12
  data.tar.gz: !binary |-
13
- NmM1NWY4MzA3ZjRkOWM0MDljZjJiZTdkNGIzODVkNmNkZWIxMWQ5ZmViMDY1
14
- MGI2OWIwYmFjNzZkNjRlZGRjZTBmNDFkYzZkOTAxMGViMzEyMDUwZDU5ZGUz
15
- Y2MxZGUzNTZiOWQwZjcwZjU2ZDMzODQ5ZDE2OTA0ZTBjNDU3ZGE=
13
+ MDJhOGY0MjE4ODYzZDZkMGQ0ZTczODAzOTViY2ZmOTkwYWRjMjI0ZTExMjYy
14
+ NzczZDI0NzY3OGJjNTBlZmM2NGM1NjcyOGM4ZjlmYTJlMDAwOWEyODEzYjMx
15
+ MDFjNmU0OGQwMmExZmQ5ODcxNzlhNmQzYjIyNGQ0Y2UwZGQxZTk=
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gorgon (0.10.1)
4
+ gorgon (0.10.2)
5
5
  amqp (~> 1.1.0)
6
6
  awesome_print
7
7
  colorize (~> 0.5.8)
8
8
  open4 (~> 1.3.0)
9
- ruby-progressbar (~> 1.0.1)
9
+ ruby-progressbar (~> 1.7.5)
10
10
  uuidtools (= 2.1.3)
11
11
  yajl-ruby (= 1.1.0)
12
12
 
@@ -31,7 +31,7 @@ GEM
31
31
  rspec-expectations (2.11.3)
32
32
  diff-lcs (~> 1.1.3)
33
33
  rspec-mocks (2.11.3)
34
- ruby-progressbar (1.0.2)
34
+ ruby-progressbar (1.7.5)
35
35
  test-unit (2.5.2)
36
36
  uuidtools (2.1.3)
37
37
  yajl-ruby (1.1.0)
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_runtime_dependency "amqp", '~> 1.1.0'
26
26
  s.add_runtime_dependency "awesome_print"
27
27
  s.add_runtime_dependency "open4", '~>1.3.0'
28
- s.add_runtime_dependency "ruby-progressbar", '~>1.0.1'
28
+ s.add_runtime_dependency "ruby-progressbar", '~>1.7.5'
29
29
  s.add_runtime_dependency "colorize", '~>0.5.8'
30
30
 
31
31
  # this dependencies are clashing with one of our apps
@@ -50,7 +50,7 @@ class ProgressBarView
50
50
  print "\r#{' ' * (LOADING_MSG.length)}\r"
51
51
  puts LEGEND_MSG
52
52
  @progress_bar = ProgressBar.create(:total => @job_state.total_files,
53
- :length => [terminal_size[0], MAX_LENGTH].min,
53
+ :length => [terminal_length, MAX_LENGTH].min,
54
54
  :format => format(bar: :green, title: :white));
55
55
  end
56
56
  end
@@ -83,8 +83,8 @@ private
83
83
  "#{title} | [#{bar}] %c/%C %a"
84
84
  end
85
85
 
86
- def terminal_size
87
- `stty size`.split.map { |x| x.to_i }.reverse
86
+ def terminal_length
87
+ `stty size`.split.map { |x| x.to_i }.reverse[0].to_i
88
88
  end
89
89
 
90
90
  def print_summary
@@ -33,7 +33,7 @@ class RspecRunner
33
33
  orig_configuration = ::RSpec.configuration.clone
34
34
  yield
35
35
  ensure
36
- RSpec.reset
36
+ ::RSpec.reset
37
37
  ::RSpec.instance_variable_set(:@configuration, orig_configuration)
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module Gorgon
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
@@ -45,7 +45,7 @@ module GorgonBunny
45
45
  DEFAULT_CONTINUATION_TIMEOUT = if RUBY_VERSION.to_f < 1.9
46
46
  8000
47
47
  else
48
- 4000
48
+ 15000
49
49
  end
50
50
 
51
51
  # RabbitMQ client metadata
@@ -87,7 +87,7 @@ module GorgonBunny
87
87
  attr_reader :mechanism
88
88
  # @return [Logger]
89
89
  attr_reader :logger
90
- # @return [Integer] Timeout for blocking protocol operations (queue.declare, queue.bind, etc), in milliseconds. Default is 4000.
90
+ # @return [Integer] Timeout for blocking protocol operations (queue.declare, queue.bind, etc), in milliseconds. Default is 15000.
91
91
  attr_reader :continuation_timeout
92
92
 
93
93
 
@@ -105,7 +105,7 @@ module GorgonBunny
105
105
  # @option connection_string_or_opts [String] :tls_cert (nil) Path to client TLS/SSL certificate file (.pem)
106
106
  # @option connection_string_or_opts [String] :tls_key (nil) Path to client TLS/SSL private key file (.pem)
107
107
  # @option connection_string_or_opts [Array<String>] :tls_ca_certificates Array of paths to TLS/SSL CA files (.pem), by default detected from OpenSSL configuration
108
- # @option connection_string_or_opts [Integer] :continuation_timeout (4000) Timeout for client operations that expect a response (e.g. {GorgonBunny::Queue#get}), in milliseconds.
108
+ # @option connection_string_or_opts [Integer] :continuation_timeout (15000) Timeout for client operations that expect a response (e.g. {GorgonBunny::Queue#get}), in milliseconds.
109
109
  #
110
110
  # @option optz [String] :auth_mechanism ("PLAIN") Authentication mechanism, PLAIN or EXTERNAL
111
111
  # @option optz [String] :locale ("PLAIN") Locale RabbitMQ should use
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorgon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Fitzsimmons
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-05-25 00:00:00.000000000 Z
15
+ date: 2016-03-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake
@@ -104,14 +104,14 @@ dependencies:
104
104
  requirements:
105
105
  - - ~>
106
106
  - !ruby/object:Gem::Version
107
- version: 1.0.1
107
+ version: 1.7.5
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ~>
113
113
  - !ruby/object:Gem::Version
114
- version: 1.0.1
114
+ version: 1.7.5
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: colorize
117
117
  requirement: !ruby/object:Gem::Requirement