knife-supermarket 0.0.1 → 0.0.2

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: b98c12c576f19cea5c2ed66f27956b4101d0e3c4
4
- data.tar.gz: 8971bcef631ea1af65d89abdb6c0db1c6be5e42c
3
+ metadata.gz: ebbcbca8c8ed6d7cc61f60c8965d998e339331b2
4
+ data.tar.gz: 9c58f8594dbce990143c726ff588d99d8c47f225
5
5
  SHA512:
6
- metadata.gz: 98b87fbea5edf8e7b54a19e03c3a379e30c28adf5abea0509a79856f00fbe28e64ca3f2c651bd3147fd1c40997bddb369985de5c53826641f23257584e72aedb
7
- data.tar.gz: 3ca502968725e62f6e9b3a7609964b0b4da8eda5a07026bab9f68c11f3905c530fe79023ad90ff0a2c60b7ea645bfa4ccea52f7a2e47860b724f854d0ec5d8be
6
+ metadata.gz: 95f545aced83cadbf4ebe118839b56a604ba3b7ffcf2d17d32c358c96194aa67c5c8e49dd43996e2e9fcfc143038be65b204ff6e958225ec99c5ed3354bf9914
7
+ data.tar.gz: 6d7c913d37dacee113c65ade7d55427fb1f7cc9dbe7c77490100e726c3abedb6a6bc26989f0201648edc8cef86847d99cd094b445e0b353f0edad30617c5f885
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## v0.0.2
2
+ * Fix `knife supermarket search` after removal of the `run` method
3
+
4
+ ## v0.0.1
5
+ * Initial release
@@ -32,6 +32,10 @@ class Chef
32
32
  :default => 'supermarket-staging.getchef.com',
33
33
  :proc => Proc.new { |supermarket| Chef::Config[:knife][:supermarket_site] = supermarket }
34
34
 
35
+ def run
36
+ output(search_cookbook(name_args[0]))
37
+ end
38
+
35
39
  def search_cookbook(query, items=10, start=0, cookbook_collection={})
36
40
  cookbooks_url = "http://#{config[:supermarket_site]}/api/v1/search?q=#{query}&items=#{items}&start=#{start}"
37
41
  cr = noauth_rest.get_rest(cookbooks_url)
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Supermarket
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-supermarket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Webber
@@ -31,6 +31,7 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - ".gitignore"
34
+ - CHANGELOG.md
34
35
  - LICENSE
35
36
  - README.md
36
37
  - Rakefile