ridley 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7da3aeb7959de4937cc94f7ca1f72214816ed75
4
- data.tar.gz: e103b754e4768cf2a704104978da665fcccf27f3
3
+ metadata.gz: eb6b2d972e7cad1c5ff8f3146d8f89bb13b195d8
4
+ data.tar.gz: 528c096c325dbd733bdf34bfd9db7626e0b4c881
5
5
  SHA512:
6
- metadata.gz: 52b2039fca91e517019c01472e0bd8679a33427c964f7508989d77f19ca60037e5a5a68ceb75a6089f7997c5812c83516139cea71f6c0c68006b65ef8642c223
7
- data.tar.gz: d550361f34542efa082c38ff3c8abd71aca4d0ee59a4427f640e49e3a9405db7fadf8b56b6e7fa8903ccb160406391114206ddd25c0836f9cfd636350fd7f6b6
6
+ metadata.gz: f61bf70fb4e308195fa5217b993a5e4bc143532ed544f2904b97936b054a5c5f123a0a7e204b14b836fec1e1deb3189111252ed78c0bc876273d31b6470a51a5
7
+ data.tar.gz: ac987d268761de5aeb80435726d81c0436c8adf40b750774d7e129b98f29838dcd748a3e0234333edb1876b10a78c44b1f75b1bb6e41646ce13fefc5dd5160fa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.4.0
2
+
3
+ * Add support for Chef 11 User Objects
4
+
1
5
  # 2.1.0
2
6
 
3
7
  * [#228](https://github.com/RiotGames/ridley/pull/228) Add a new API for filtering log output. Useful for output you might not want to display because it is sensitive.
data/README.md CHANGED
@@ -122,7 +122,7 @@ end
122
122
 
123
123
  ### Manipulating Chef Resources
124
124
 
125
- Resources are access by instance functions on a new instance of `Ridley::Client`.
125
+ Resources are accessed by instance functions on a new instance of `Ridley::Client`.
126
126
 
127
127
  ```ruby
128
128
  ridley = Ridley.new(...)
@@ -151,7 +151,7 @@ Most resources can be listed, retrieved, created, updated, and destroyed. These
151
151
 
152
152
  #### Create
153
153
 
154
- A new Chef Object can be created in a four ways
154
+ A new Chef Object can be created in four ways
155
155
 
156
156
  _With the `#create` function and an attribute hash_
157
157
 
@@ -192,7 +192,7 @@ Most resources have two read functions
192
192
 
193
193
  ##### Listing
194
194
 
195
- If you wanted to get a list of all of the roles on your Chef server
195
+ If you want to get a list of all of the roles on your Chef server
196
196
 
197
197
  ```ruby
198
198
  ridley = Ridley.new(...)
@@ -248,7 +248,7 @@ obj.save #=> #<Ridley::RoleObject: chef_id:motherbrain_srv, description="saving
248
248
 
249
249
  #### Destroy
250
250
 
251
- Destroying a resource can be express in three ways
251
+ Destroying a resource can be expressed in three ways
252
252
 
253
253
  _With the `#delete` function and the ID of the Object to destroy_
254
254
 
@@ -267,7 +267,7 @@ ridley.role.delete(obj) => #<Ridley::RoleObject: chef_id:motherbrain_srv ...>
267
267
  _With the `#destroy` function on an instance of a Chef Object_
268
268
 
269
269
  ```ruby
270
- obj = conn.role.find("motherbrain_srv")
270
+ obj = ridley.role.find("motherbrain_srv")
271
271
  obj.destroy #=> true
272
272
  ```
273
273
 
@@ -385,7 +385,7 @@ User Resource
385
385
 
386
386
  Works the same way as with a client resource.
387
387
 
388
- ### Authenticating user's password
388
+ ### Authenticating a user's password
389
389
 
390
390
  ```ruby
391
391
  ridley = Ridley.new(...)
@@ -17,9 +17,9 @@ module Ridley::Chef
17
17
  ignore = chefignore(path)
18
18
 
19
19
  if ignore
20
- log.debug "Using Chefignore at '#{ignore}'"
20
+ log.debug "Using '#{FILENAME}' at '#{ignore}'"
21
21
  else
22
- log.debug "Could not find a Chefignore at '#{path}'"
22
+ log.debug "Could not find '#{FILENAME}' at '#{path}'"
23
23
  end
24
24
 
25
25
  super(ignore, base: path)
data/lib/ridley/client.rb CHANGED
@@ -204,7 +204,7 @@ module Ridley
204
204
  @resources_registry[:search_resource].run(index, query, @resources_registry, options)
205
205
  end
206
206
 
207
- # Return the array of all possible search indexes for the including connection
207
+ # Return an array of all possible search indexes for the including connection
208
208
  #
209
209
  # @example
210
210
  # ridley = Ridley.new(...)
@@ -216,7 +216,7 @@ module Ridley
216
216
  @resources_registry[:search_resource].indexes
217
217
  end
218
218
 
219
- # Perform a partial search the Chef Server. Partial objects or a smaller hash will be returned resulting
219
+ # Perform a partial search on the Chef Server. Partial objects or a smaller hash will be returned resulting
220
220
  # in a faster response for larger response sets. Specify the attributes you want returned with the
221
221
  # attributes parameter.
222
222
  #
@@ -10,8 +10,8 @@ module Ridley
10
10
  represented_by Ridley::ClientObject
11
11
 
12
12
  # Retrieves a client from the remote connection matching the given chef_id
13
- # and regenerates it's private key. An instance of the updated object will
14
- # be returned and have a value set for the 'private_key' accessor.
13
+ # and regenerates its private key. An instance of the updated object will
14
+ # be returned and will have a value set for the 'private_key' accessor.
15
15
  #
16
16
  # @param [String, #chef_id] chef_client
17
17
  #
@@ -2,15 +2,15 @@ module Ridley
2
2
  # @example listing all users
3
3
  # conn = Ridley.new(...)
4
4
  # conn.user.all #=> [
5
- # #<Ridley::ClientObject chef_id:'admin'>
5
+ # #<Ridley::UserObject chef_id:'admin'>
6
6
  # ]
7
7
  class UserResource < Ridley::Resource
8
8
  set_resource_path "users"
9
9
  represented_by Ridley::UserObject
10
10
 
11
11
  # Retrieves a user from the remote connection matching the given chef_id
12
- # and regenerates it's private key. An instance of the updated object will
13
- # be returned and have a value set for the 'private_key' accessor.
12
+ # and regenerates its private key. An instance of the updated object will
13
+ # be returned and will have a value set for the 'private_key' accessor.
14
14
  #
15
15
  # @param [String, #chef_id] chef_user
16
16
  #
@@ -1,3 +1,3 @@
1
1
  module Ridley
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
data/ridley.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.required_ruby_version = ">= 1.9.1"
19
19
 
20
20
  s.add_dependency 'addressable'
21
- s.add_dependency 'varia_model', '~> 0.1'
21
+ s.add_dependency 'varia_model', '~> 0.3'
22
22
  s.add_dependency 'buff-config', '~> 0.2'
23
23
  s.add_dependency 'buff-extensions', '~> 0.3'
24
24
  s.add_dependency 'buff-ignore', '~> 1.1'
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.add_dependency 'celluloid', '~> 0.15'
27
27
  s.add_dependency 'celluloid-io', '~> 0.15'
28
28
  s.add_dependency 'erubis'
29
- s.add_dependency 'faraday', '>= 0.8.4'
29
+ s.add_dependency 'faraday', '~> 0.8.4'
30
30
  s.add_dependency 'hashie', '>= 2.0.2'
31
31
  s.add_dependency 'json', '>= 1.7.7'
32
32
  s.add_dependency 'mixlib-authentication', '>= 1.3.0'
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: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-16 00:00:00.000000000 Z
12
+ date: 2014-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - ~>
33
33
  - !ruby/object:Gem::Version
34
- version: '0.1'
34
+ version: '0.3'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ~>
40
40
  - !ruby/object:Gem::Version
41
- version: '0.1'
41
+ version: '0.3'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: buff-config
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -141,14 +141,14 @@ dependencies:
141
141
  name: faraday
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - '>='
144
+ - - ~>
145
145
  - !ruby/object:Gem::Version
146
146
  version: 0.8.4
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - '>='
151
+ - - ~>
152
152
  - !ruby/object:Gem::Version
153
153
  version: 0.8.4
154
154
  - !ruby/object:Gem::Dependency