knife-supermarket 0.2.2 → 0.2.3

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: dbe81f168d581bc4dae8c8bd3338f8db49b1fe9c
4
- data.tar.gz: d50acda261b2cfe4e7ae09a8380632ae4b481d91
3
+ metadata.gz: 664be1faba55f9a4fc5e7470aad3f5255fbad864
4
+ data.tar.gz: 064da14ead80ae301204ec420a6db57911aeff65
5
5
  SHA512:
6
- metadata.gz: 0dcae880ccd5ec541a075f27ec2e166abd74f235bddfcae20437ea6bcb26f8459d3ab2babfc2f99cb35b56f2395499fd6c64d29ca64e791fc6178f8fe179da14
7
- data.tar.gz: 4e5dbbe206c5815a3b741225b80e9b5902029ead5298eeb4bcac8d4b49b5a6812174098d3c874fb7c7fbc092dfab749809325aca6437bf80d892710ce87632e5
6
+ metadata.gz: 9a2257ce3511909d32c7007ef91c5b2073c9e284fb7d72c0e542f8b4a6a0d05384043180665e9f4935bcf6b8e629f9495653e7262e8bbd131dade69315052ee3
7
+ data.tar.gz: 1ade202fa76908aa37d1478228d2547cfce40e256f7fc8deaab196bb4dcac8807bd5d9b911a6bf229f30ea3cd4f755313e450dbc819c1413153a186b0cf57969
@@ -37,7 +37,7 @@ class Chef
37
37
 
38
38
  def get_cookbook_list(items=10, start=0, cookbook_collection={})
39
39
  cookbooks_url = "#{config[:supermarket_site]}/api/v1/cookbooks?items=#{items}&start=#{start}"
40
- cr = noauth_rest.get_rest(cookbooks_url)
40
+ cr = noauth_rest.get(cookbooks_url)
41
41
  cr["items"].each do |cookbook|
42
42
  cookbook_collection[cookbook["cookbook_name"]] = cookbook
43
43
  end
@@ -38,7 +38,7 @@ class Chef
38
38
 
39
39
  def search_cookbook(query, items=10, start=0, cookbook_collection={})
40
40
  cookbooks_url = "#{config[:supermarket_site]}/api/v1/search?q=#{query}&items=#{items}&start=#{start}"
41
- cr = noauth_rest.get_rest(cookbooks_url)
41
+ cr = noauth_rest.get(cookbooks_url)
42
42
  cr["items"].each do |cookbook|
43
43
  cookbook_collection[cookbook["cookbook_name"]] = cookbook
44
44
  end
@@ -52,8 +52,3 @@ class Chef
52
52
  end
53
53
  end
54
54
  end
55
-
56
-
57
-
58
-
59
-
@@ -46,7 +46,7 @@ class Chef
46
46
 
47
47
  def get_cookbook_list(items=10, start=0, cookbook_collection={})
48
48
  cookbooks_url = "#{config[:supermarket_site]}/api/v1/cookbooks?items=#{items}&start=#{start}"
49
- cr = noauth_rest.get_rest(cookbooks_url)
49
+ cr = noauth_rest.get(cookbooks_url)
50
50
  cr["items"].each do |cookbook|
51
51
  cookbook_collection[cookbook["cookbook_name"]] = cookbook
52
52
  end
@@ -47,7 +47,7 @@ class Chef
47
47
  confirm "Do you really want to unshare the cookbook #{@cookbook_name}"
48
48
 
49
49
  begin
50
- rest.delete_rest "#{config[:supermarket_site]}/api/v1/cookbooks/#{@name_args[0]}"
50
+ rest.delete "#{config[:supermarket_site]}/api/v1/cookbooks/#{@name_args[0]}"
51
51
  rescue Net::HTTPServerException => e
52
52
  raise e unless e.message =~ /Forbidden/
53
53
  ui.error "Forbidden: You must be the maintainer of #{@cookbook_name} to unshare it."
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Supermarket
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-supermarket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Webber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-29 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef