knife-spork 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDgxNDk5MzE2Mjc3NDc4NjVlOWNhYmExOTQyZDlmNjhkZTc1NDcyZg==
4
+ ZmNkNDZiMDM3MzE5Nzk2NmU3NTcyOTcyM2Y0NjY5MGI3NjRkODA5Yw==
5
5
  data.tar.gz: !binary |-
6
- YzE1ZWVmZGQwMTJiYTA2ZjIyNTU4YjU4OTQ5N2Y5YTM2MGJmZTMxZg==
6
+ NDU3YmIxMDQ4YTJlN2E5MDNmYjcxMDU2YmRjM2ExYTcxNjhhMjg2Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjVmNjkxMDQ1OTJlZTZhOTg4OWNhNmY1MjFkNDM5MGZhOWNhN2U4ZTAxZGFi
10
- ZGI4YWEzZWQ1NDU4ZjBkNmMwYmIyYmJhNzg0MWU3MjFlNDVhMTcwNjVkZDA2
11
- NDVjYWJkYmJlNjJkNTYzYTdhYTczMDBmMjUyMzdlYjEyNzNkOTc=
9
+ ZDc0ZTVjMjQ4M2IyODhhNGMzYmVjZWY2NjY1ZTQ2ODdkNTliYjRlNTI0Y2I3
10
+ NTVhY2JkMjI3MzIzNTU2NGQ4OGQ4OTRkMzMxYWNmNjVjOWJhNTEzNzJlZmY5
11
+ NmY2YzY2MzlhYjkxYThiNmIyMzc4MWUwMWZmNTM4YTU2YWZmNDY=
12
12
  data.tar.gz: !binary |-
13
- Yjg3MTg2YWM4YjBlNzA4NDA5YjkyYThlMmQ3YjdiZTU5ZTA3MWFiZGJlMDAx
14
- NWQ5NjZiODVhMGIwMTA2MjkzMGU0NmQ2ODNiYTIyYjc4YWU5ZWVkOWQ3ZjIw
15
- N2M4MjVmZmEzNzQwOGVhZTc4YjQ5ZmUzZmVkYTEzYThlOTZmOGM=
13
+ NDQzYTgxYzY3MmYyNzhiZTEzZWFjNDdhYWMwYWM4OTUyN2Q1YjZjMTM3ZTE5
14
+ NTBkMDU1OTlhMGUzYTU3OTNkZDJlZjM5YmNhNjk1OGE3YzQ2YzE0ZTVlYmJm
15
+ ZjQxYmVlYjU5OTkyODEwOWU5MzBkNzkxZmI3NDc5Y2FhMmI2MmU=
@@ -1,6 +1,13 @@
1
- ## 1.3.3 (nth May, 2014)
1
+ ## 1.3.4 (2nd June, 2014)
2
+
3
+ Bugfixes:
4
+
5
+ - Fix incorrect endpoint in spork environment check (Thanks to @jperry https://github.com/jonlives/knife-spork/pull/128)
6
+
7
+ ## 1.3.3 (23rd May, 2014)
2
8
 
3
9
  Features:
10
+
4
11
  - Added new preserve_constraint_operators config flag to make spork promote preserve existing version constraint operators (https://github.com/jonlives/knife-spork/issues/101)
5
12
  - Have runner check Chef::Config for environment_path (Thanks to @cstewart87 https://github.com/jonlives/knife-spork/pull/114)
6
13
  - Have spork check autobump when -y option given (Thanks to @slingcode https://github.com/jonlives/knife-spork/pull/108)
@@ -8,6 +15,7 @@ Features:
8
15
  - Spork check environment command to validate constraints specified in environments (Thanks to @jperry https://github.com/jonlives/knife-spork/pull/115)
9
16
 
10
17
  Bugfixes:
18
+
11
19
  - Fix exception when trying to load non existent role or env from file (Thanks to @jperry https://github.com/jonlives/knife-spork/pull/116)
12
20
  - Fix incorrect error message when uploading frozen cookbook (https://github.com/jonlives/knife-spork/issues/117)
13
21
  - Fix invalid API endpoint in cookbook upload check when environment specified in knife.rb (https://github.com/jonlives/knife-spork/issues/106)
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'knife-spork'
5
- gem.version = '1.3.3'
5
+ gem.version = '1.3.4'
6
6
  gem.authors = ["Jon Cowie"]
7
7
  gem.email = 'jonlives@gmail.com'
8
8
  gem.homepage = 'https://github.com/jonlives/knife-spork'
@@ -42,7 +42,7 @@ module KnifeSpork
42
42
 
43
43
  cookbook_versions.each do |cookbook, version_constraint|
44
44
  vc = Chef::VersionConstraint.new(version_constraint)
45
- status = check_cookbook_uploaded(environment, cookbook, vc.version)
45
+ status = check_cookbook_uploaded(cookbook, vc.version)
46
46
  if !status
47
47
  fail_and_exit(cookbook, vc.version)
48
48
  env_status = status
@@ -58,8 +58,8 @@ module KnifeSpork
58
58
  end
59
59
  end
60
60
 
61
- def check_cookbook_uploaded(environment, cookbook_name, version)
62
- api_endpoint = environment ? "environments/#{environment}/cookbooks/#{cookbook_name}" : "cookbooks/#{cookbook_name}"
61
+ def check_cookbook_uploaded(cookbook_name, version)
62
+ api_endpoint = "cookbooks/#{cookbook_name}"
63
63
 
64
64
  begin
65
65
  cookbook = rest.get_rest(api_endpoint)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-spork
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Cowie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-23 00:00:00.000000000 Z
11
+ date: 2014-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef