knife-solo_data_bag 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,10 +1,13 @@
1
1
  ## head
2
2
 
3
+ ## 0.2.2 (08/07/2012)
4
+ * Fixed an issue which prevented the create command from working in some cases (props to Florian Dütsch @der-flo)
5
+
3
6
  ## 0.2.1 (07/08/2012)
4
- * Fixed an issue with show command and JSON output format (props to Ziad Sawalha)
7
+ * Fixed an issue with show command and JSON output format (props to Ziad Sawalha @ziadsawalha)
5
8
 
6
9
  ## 0.2.0 (07/01/2012)
7
- * Add support for specifying JSON content on the command line (props to BK Box)
10
+ * Add support for specifying JSON content on the command line (props to BK Box @gondoi)
8
11
 
9
12
  ## 0.1.0 (05/17/2012)
10
13
  * Initial release
@@ -44,6 +44,7 @@ module KnifeSoloDataBag
44
44
  end
45
45
 
46
46
  def create_item_object
47
+ item = nil
47
48
  if config[:json_string].nil?
48
49
  create_object({'id' => item_name}, "data_bag_item[#{item_name}]") do |output|
49
50
  item = Chef::DataBagItem.from_hash bag_item_content(output)
@@ -51,6 +52,7 @@ module KnifeSoloDataBag
51
52
  else
52
53
  item = Chef::DataBagItem.from_hash bag_item_content(convert_json_string)
53
54
  end
55
+ item
54
56
  end
55
57
 
56
58
  def create_bag_item
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module SoloDataBag
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
@@ -41,7 +41,7 @@ describe KnifeSoloDataBag::SoloDataBagCreate do
41
41
  @knife.name_args << 'bar'
42
42
  @input_data = {'id' => 'foo', 'key_1' => 'value_1', 'key_2' => 'value_2'}
43
43
  @item_path = "#{@bag_path}/bar.json"
44
- @knife.stub(:create_object).and_yield(@input_data)
44
+ @knife.stub(:create_object).and_yield(@input_data).and_return(nil)
45
45
  end
46
46
 
47
47
  it 'should create the data bag item' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-solo_data_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-09 00:00:00.000000000Z
12
+ date: 2012-08-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
16
- requirement: &70133067504540 !ruby/object:Gem::Requirement
16
+ requirement: &70213216551840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.10.10
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70133067504540
24
+ version_requirements: *70213216551840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70133067504120 !ruby/object:Gem::Requirement
27
+ requirement: &70213216551420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70133067504120
35
+ version_requirements: *70213216551420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70133067503580 !ruby/object:Gem::Requirement
38
+ requirement: &70213081759440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.10.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70133067503580
46
+ version_requirements: *70213081759440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: fakefs
49
- requirement: &70133067503080 !ruby/object:Gem::Requirement
49
+ requirement: &70213081758940 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 0.4.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70133067503080
57
+ version_requirements: *70213081758940
58
58
  description: A knife plugin for working with data bags and chef solo
59
59
  email:
60
60
  - bishop.thomas@gmail.com