ridley 2.5.0 → 2.5.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: fc15bc02eeefe10cd38ba78cf3bb5b296b5800e1
4
- data.tar.gz: d9f4af9badd2a49cf3f17f34f27a17a04ab99af8
3
+ metadata.gz: 7015d6698dd19c93412740e2ff16f5432025e0ef
4
+ data.tar.gz: 98f72e264ea4832ab085c887e71a001dad03ca35
5
5
  SHA512:
6
- metadata.gz: b3384b9cad959bf742e6797f2eb2cd952cd6af63ec9a4710a08689f947a28a8d23979ed3a0d45f382b916f82c6dec489e5a30ba34eb1467074a60274bb836275
7
- data.tar.gz: 593191052139432503113ddc78bc0d8e488914a4b0a742c102e227e021027f1f24d11f44619bc14b11fc30eb9f883b529d436f750d96af03ce35f1d83a3a4756
6
+ metadata.gz: 6513631b259a1909e6624c101b0cf2f64757992b754f8dfb51514e606aefacb6b28ba8720491f457daaccfc81a8f2288cb72e3249fc3470247bfda2412176b2e
7
+ data.tar.gz: e7a519e2bd14c9ed26be2bf9981e5d44003268589f8e3976ee4552af5d412f34a7d22d5a33e24871919720214fa64c9c71d54714db3ec3096215ee69d09a7e33
@@ -1,3 +1,7 @@
1
+ # 2.5.1
2
+
3
+ * Fix no method error bug in partial search
4
+
1
5
  # 2.5.0
2
6
 
3
7
  * Releasing 2.5.0 as a proper new version over 2.4.4.
data/README.md CHANGED
@@ -300,6 +300,31 @@ obj.regenerate_key #=> #<Ridley::ClientObject: chef_id:"jamie", private_key="**H
300
300
  Cookbook Resource
301
301
  -----------------
302
302
 
303
+ Cookbooks can be created, listed, updated and deleted as shown in the Manipulating Chef Resources section of this README.
304
+
305
+ To find a cookbook, you must provide both its name and version:
306
+
307
+ ```ruby
308
+ ridley = Ridley.new(...)
309
+ ridley.cookbook.find("apache2", "1.6.6")
310
+ ```
311
+
312
+ Cookbooks can be downloaded. If no download path is specified, the chosen cookbook will be downloaded to a tmp folder.
313
+
314
+ ```ruby
315
+ ridley = Ridley.new(...)
316
+ ridley.cookbook.download("apache2", "1.6.6", "/path/to/download/cookbook") #=> "/path/to/download/cookbook"
317
+ ridley.cookbook.download("apache2", "1.6.6") #=> "/tmp/d20140211-6621-kstalp"
318
+ ```
319
+
320
+ A cookbook's metadata can be accessed using the `#metadata` method:
321
+
322
+ ```ruby
323
+ ridley = Ridley.new(...)
324
+ apache2 = ridley.cookbook.find("apache2", "1.6.6")
325
+ apache2.metadata #=> Hashie::Mash
326
+ ```
327
+
303
328
  Data Bag Resource
304
329
  -----------------
305
330
 
@@ -166,7 +166,7 @@ module Ridley
166
166
  case index.to_sym
167
167
  when :node
168
168
  response[:rows].collect do |item|
169
- attributes = Hash.new
169
+ attributes = Hashie::Mash.new
170
170
  item[:data].each do |key, value|
171
171
  next if key.to_s == chef_id.to_s
172
172
  attributes.deep_merge!(Hash.from_dotted_path(key, value))
@@ -1,3 +1,3 @@
1
1
  module Ridley
2
- VERSION = "2.5.0"
2
+ VERSION = "2.5.1"
3
3
  end
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.5.0
4
+ version: 2.5.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: 2014-02-10 00:00:00.000000000 Z
12
+ date: 2014-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable