gorgon 0.10.1 → 0.10.2
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 +8 -8
- data/Gemfile.lock +3 -3
- data/gorgon.gemspec +1 -1
- data/lib/gorgon/progress_bar_view.rb +3 -3
- data/lib/gorgon/rspec_runner.rb +1 -1
- data/lib/gorgon/version.rb +1 -1
- data/lib/gorgon_bunny/lib/gorgon_bunny/session.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGU1ZjNlMzdmOTY4MDJiZmVjOTExNzdkMDg1OWZlN2FhNjcxYzRkNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mjc3MmI1ZGZlODY2OTc2NmE1MGM2NWNiMzZlYzE0ZTBjZDg0Nzg2OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2RlZGJmYzk2OGU0Y2ViNjQ1ZjcyMmFhZmI2YjIyOTI5OGFlN2E4NTkxMzU5
|
10
|
+
MDNjZjU2ZGZmNDg1ZjVkYWQ4YWZiN2FjNTI2M2YwNDYwNWI5YjdjYWI0YjEz
|
11
|
+
ZjMwNDUyODg0MzJjMDI5OGRkNGUwZWNmMWU1MzlhOTIyZDg2ZTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDJhOGY0MjE4ODYzZDZkMGQ0ZTczODAzOTViY2ZmOTkwYWRjMjI0ZTExMjYy
|
14
|
+
NzczZDI0NzY3OGJjNTBlZmM2NGM1NjcyOGM4ZjlmYTJlMDAwOWEyODEzYjMx
|
15
|
+
MDFjNmU0OGQwMmExZmQ5ODcxNzlhNmQzYjIyNGQ0Y2UwZGQxZTk=
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gorgon (0.10.
|
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.
|
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.
|
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)
|
data/gorgon.gemspec
CHANGED
@@ -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.
|
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 => [
|
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
|
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
|
data/lib/gorgon/rspec_runner.rb
CHANGED
data/lib/gorgon/version.rb
CHANGED
@@ -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
|
-
|
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
|
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 (
|
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.
|
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:
|
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.
|
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.
|
114
|
+
version: 1.7.5
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: colorize
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|