cape 1.6.1 → 1.6.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.
@@ -1,5 +1,9 @@
1
1
  # Version history for the _Cape_ project
2
2
 
3
+ ## <a name="v1.6.2"></a>v1.6.2, Fri 2/22/2013
4
+
5
+ * Correctly update environment variables when set more than once
6
+
3
7
  ## <a name="v1.6.1"></a>v1.6.1, Mon 2/18/2013
4
8
 
5
9
  * Respect the specified order of environment variables in the remote command line
@@ -51,7 +51,7 @@ module Cape
51
51
  Array(pair).first == key
52
52
  end
53
53
  if index
54
- super key, value
54
+ super(index, [key, value])
55
55
  else
56
56
  self << [key, value]
57
57
  end
@@ -1,6 +1,6 @@
1
1
  module Cape
2
2
 
3
3
  # The version of Cape.
4
- VERSION = '1.6.1'
4
+ VERSION = '1.6.2'
5
5
 
6
6
  end
@@ -13,6 +13,7 @@ describe Cape::HashList do
13
13
 
14
14
  describe 'when values are added out of order' do
15
15
  before :each do
16
+ subject['foo'] = 'xxx'
16
17
  subject['foo'] = 'bar'
17
18
  subject['baz'] = 'qux'
18
19
  end
@@ -35,6 +36,7 @@ describe Cape::HashList do
35
36
  it 'should index the values as expected' do
36
37
  subject['foo'].should == 'bar'
37
38
  subject['baz'].should == 'qux'
39
+ subject['not-found'].should be_nil
38
40
  end
39
41
 
40
42
  describe 'when sent #clear' do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cape
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 1
10
- version: 1.6.1
9
+ - 2
10
+ version: 1.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nils Jonsson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-18 00:00:00 Z
18
+ date: 2013-02-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: aruba