valise 1.1.1 → 1.1.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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTc2N2MyYjJjZGU4YWJkNWY2OTNkOTYyN2Q4YjZiMzAzZTZkNjc5MQ==
5
- data.tar.gz: !binary |-
6
- Y2ZjYTA0YzQzYjhiN2MzNzUyNjkyYmJiODQ2NTk4Mjk5MDZiYmRlNQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- YmMzYmZlNmMwNTc5ZTgyMmEyNmVlN2VhZWI2NDFkYmIyYWI4MzE3YjI4MDhh
10
- MWMxMzE3Y2Y5NWVmMjBhZDU0YjJiNjViMzE3YjgwNTM5MTcxYmZiODlhYjYx
11
- OTdkY2M3NGY2ZmQzMGU3NmE2NGUwM2QyOTc5ZmZlYTI1MWEwNDM=
12
- data.tar.gz: !binary |-
13
- MDg0YWI1ZDAyMzkzOTU5ODEwNzc0NmU0MDY0YmE5ZWVmOGUwMzQxMzkwNjVl
14
- ODI1NjliMjQyYmFkYWQxNjhiZDI3MDk4Y2E1NDlkMWJhNjRkZDViOTFhOWQ2
15
- M2M1MDk1NmFhMDVlYTU2NjM4MTFjZGRkMjI3OTFkOGYyZjk4YTY=
2
+ SHA1:
3
+ metadata.gz: 595572bd8badbc1f6cdc0180301b97c39b5a5db9
4
+ data.tar.gz: 51ce6702114d48371432dd2bbe9747d6dcea9b83
5
+ SHA512:
6
+ metadata.gz: 34cd3b95ab86795ff19f622fa8f9e6dc7601bd87470ba5eff8c27cf5eaab9a803b7812fd0f422efc190877055b1b1cb6ea0a58ff74912d44ec6a95062c21a112
7
+ data.tar.gz: 6b1e8ccf94867befc5e5c1897bbfd8a650de738cfac98e8d28381303c889fa1b5e853f13d56e9b353abb4d247760a3b28821ed9ab3a76b9aeb9eaab47fb68dc6
data/doc/README CHANGED
@@ -18,7 +18,7 @@ Essentially, Valise::Set lets you do this:
18
18
 
19
19
  set = Valise::Set.define do
20
20
  rw %w{.myapp}
21
- rw %w{~ .myapp}
21
+ rw %w{~ .myapp}
22
22
  rw [""] + %w{etc myapp}
23
23
  ro from_here("myapp_defaults")
24
24
  end
data/doc/Specification CHANGED
@@ -38,19 +38,19 @@ FileSet::Item
38
38
 
39
39
  Failures:
40
40
 
41
- 1) FileSet::Item full_path
41
+ 1) FileSet::Item full_path
42
42
  Failure/Error: its (:full_path) { should == "./root/item" }
43
43
  TypeError:
44
44
  can't convert String into Array
45
45
  # ./spec/item.rb:11
46
46
 
47
- 2) FileSet::Item raw_file
47
+ 2) FileSet::Item raw_file
48
48
  Failure/Error: its (:raw_file) { should == File::open("./root/item") }
49
49
  TypeError:
50
50
  can't convert String into Array
51
51
  # ./spec/item.rb:12
52
52
 
53
- 3) FileSet::Item contents
53
+ 3) FileSet::Item contents
54
54
  Failure/Error: its (:contents) { should == nil }
55
55
  TypeError:
56
56
  can't convert String into Array
data/spec/merge-diff.rb CHANGED
@@ -70,8 +70,17 @@ describe Valise do
70
70
  middle_hash[:a] = {:a => {:a => 2}}
71
71
  top_hash[:a] = {:a => {:a => 1}}
72
72
 
73
+ item.contents[:a][:a][:a].should == 1
73
74
  item.stack.map{|stack| stack.contents[:a][:a][:a]}.should == [1,2,3,3]
74
75
  end
76
+
77
+ it "should merge hashes" do
78
+ bottom_hash["a"] = {"a" => 1, "c" => "1"}
79
+ middle_hash["a"] = {"b" => 2}
80
+ top_hash["a"] = {"c" => 3}
81
+
82
+ item.contents["a"].should == {"a" => 1, "b" => 2, "c" => 3}
83
+ end
75
84
  end
76
85
 
77
86
  describe "diff" do
metadata CHANGED
@@ -1,33 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-24 00:00:00.000000000 Z
11
+ date: 2014-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: corundum
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: ! " Valise provides an API for accessing configuration and data files
28
- for your\n application, including the population of default values, and managing
29
- search\n paths. Written to encourage a cross-platform approach to maintaining
30
- configs\n for an application.\n"
27
+ description: |2
28
+ Valise provides an API for accessing configuration and data files for your
29
+ application, including the population of default values, and managing search
30
+ paths. Written to encourage a cross-platform approach to maintaining configs
31
+ for an application.
31
32
  email:
32
33
  - nyarly@gmail.com
33
34
  executables: []
@@ -101,7 +102,6 @@ extra_rdoc_files:
101
102
  files:
102
103
  - doc/README
103
104
  - doc/Specification
104
- - doc/Specifications
105
105
  - lib/valise.rb
106
106
  - lib/valise/item-enum.rb
107
107
  - lib/valise/utils.rb
@@ -138,6 +138,7 @@ files:
138
138
  - spec_help/spec_helper.rb
139
139
  - spec_help/ungemmer.rb
140
140
  - doc/overview-diagram.svg
141
+ - doc/Specifications
141
142
  - doc/coverage/lib-fileset-utils_rb.html
142
143
  - doc/coverage/rcov.js
143
144
  - doc/coverage/jquery-1.3.2.min.js
@@ -209,17 +210,17 @@ rdoc_options:
209
210
  - --main
210
211
  - doc/README
211
212
  - --title
212
- - valise-1.1.1 RDoc
213
+ - valise-1.1.2 RDoc
213
214
  require_paths:
214
215
  - lib/
215
216
  required_ruby_version: !ruby/object:Gem::Requirement
216
217
  requirements:
217
- - - ! '>='
218
+ - - '>='
218
219
  - !ruby/object:Gem::Version
219
220
  version: '0'
220
221
  required_rubygems_version: !ruby/object:Gem::Requirement
221
222
  requirements:
222
- - - ! '>='
223
+ - - '>='
223
224
  - !ruby/object:Gem::Version
224
225
  version: '0'
225
226
  requirements: []