ridley 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/ridley/client.rb +7 -5
- data/lib/ridley/version.rb +1 -1
- data/ridley.gemspec +1 -1
- metadata +7 -7
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Ridley
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/ridley.png)](http://badge.fury.io/rb/ridley)
|
3
|
-
[![Build Status](https://secure.travis-ci.org/
|
4
|
-
[![Dependency Status](https://gemnasium.com/
|
5
|
-
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/
|
3
|
+
[![Build Status](https://secure.travis-ci.org/RiotGames/ridley.png?branch=master)](http://travis-ci.org/RiotGames/ridley)
|
4
|
+
[![Dependency Status](https://gemnasium.com/RiotGames/ridley.png?travis)](https://gemnasium.com/RiotGames/ridley)
|
5
|
+
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/RiotGames/ridley)
|
6
6
|
|
7
7
|
A reliable Chef API client with a clean syntax
|
8
8
|
|
data/lib/ridley/client.rb
CHANGED
@@ -103,8 +103,13 @@ module Ridley
|
|
103
103
|
# * :verify (Boolean) [true] set to false to disable SSL verification
|
104
104
|
# @option options [URI, String, Hash] :proxy
|
105
105
|
# URI, String, or Hash of HTTP proxy options
|
106
|
+
#
|
107
|
+
# @raise [Errors::ClientKeyFileNotFound] if the option for :client_key does not contain
|
108
|
+
# a file path pointing to a readable client key
|
106
109
|
def initialize(options = {})
|
107
110
|
log.info { "Ridley starting..." }
|
111
|
+
super()
|
112
|
+
|
108
113
|
@options = options.reverse_merge(
|
109
114
|
ssh: Hash.new
|
110
115
|
).deep_symbolize_keys
|
@@ -127,7 +132,6 @@ module Ridley
|
|
127
132
|
raise Errors::ClientKeyFileNotFound, "client key not found at: '#{@options[:client_key]}'"
|
128
133
|
end
|
129
134
|
|
130
|
-
super(Celluloid::Registry.new)
|
131
135
|
pool(Ridley::Connection, size: 4, args: [
|
132
136
|
@options[:server_url],
|
133
137
|
@options[:client_name],
|
@@ -227,17 +231,15 @@ module Ridley
|
|
227
231
|
alias_method :sync, :evaluate
|
228
232
|
|
229
233
|
def finalize
|
230
|
-
connection.terminate if connection.alive?
|
234
|
+
connection.terminate if connection && connection.alive?
|
231
235
|
end
|
232
236
|
|
233
237
|
def connection
|
234
|
-
registry[:connection_pool]
|
238
|
+
@registry[:connection_pool]
|
235
239
|
end
|
236
240
|
|
237
241
|
private
|
238
242
|
|
239
|
-
attr_reader :registry
|
240
|
-
|
241
243
|
def method_missing(method, *args, &block)
|
242
244
|
if block_given?
|
243
245
|
@self_before_instance_eval ||= eval("self", block.binding)
|
data/lib/ridley/version.rb
CHANGED
data/ridley.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_runtime_dependency 'faraday', '>= 0.8.4'
|
29
29
|
s.add_runtime_dependency 'activesupport', '>= 3.2.0'
|
30
30
|
s.add_runtime_dependency 'solve', '>= 0.4.1'
|
31
|
-
s.add_runtime_dependency 'celluloid'
|
31
|
+
s.add_runtime_dependency 'celluloid', '~> 0.13.0'
|
32
32
|
s.add_runtime_dependency 'net-ssh'
|
33
33
|
s.add_runtime_dependency 'erubis'
|
34
34
|
s.add_runtime_dependency 'net-http-persistent', '>= 2.8'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -192,17 +192,17 @@ dependencies:
|
|
192
192
|
requirement: !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
|
-
- -
|
195
|
+
- - ~>
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
197
|
+
version: 0.13.0
|
198
198
|
type: :runtime
|
199
199
|
prerelease: false
|
200
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
201
|
none: false
|
202
202
|
requirements:
|
203
|
-
- -
|
203
|
+
- - ~>
|
204
204
|
- !ruby/object:Gem::Version
|
205
|
-
version:
|
205
|
+
version: 0.13.0
|
206
206
|
- !ruby/object:Gem::Dependency
|
207
207
|
name: net-ssh
|
208
208
|
requirement: !ruby/object:Gem::Requirement
|
@@ -401,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
401
401
|
version: '0'
|
402
402
|
segments:
|
403
403
|
- 0
|
404
|
-
hash:
|
404
|
+
hash: 3721242510601733249
|
405
405
|
requirements: []
|
406
406
|
rubyforge_project:
|
407
407
|
rubygems_version: 1.8.24
|