dot_hash 0.5.4 → 0.5.5
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 +7 -0
- data/lib/dot_hash/version.rb +1 -1
- data/test/dot_hash/custom_settings_test.rb +3 -9
- metadata +9 -19
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 322482c93381a58cef01d8c63506852217c9c82c
|
|
4
|
+
data.tar.gz: b235f02b98eb9a0459ce6e25dc700f7ecb7cad14
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4c937e870e8cf7937c4e74d5d661fd8ab3281cde75e08c06b88e9ff855c05381c7c8ce19a7e9ff80833c31afef517c87a609937c432c525496b0b36b0d50a1ea
|
|
7
|
+
data.tar.gz: 8f00f82bbf141b8e192c8330177c2717db6f5a1fc7699ea27e9d5feb300d3484068e9af4cd65c5423fddb6f9cf0c41160c8527de3ecc6dec0f73cc5cddc1a4fb
|
data/lib/dot_hash/version.rb
CHANGED
|
@@ -5,16 +5,10 @@ class CustomSettings < DotHash::Settings
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
describe CustomSettings do
|
|
8
|
-
it "loads the
|
|
8
|
+
it "loads the given settings" do
|
|
9
9
|
CustomSettings.attributes.power.must_equal 10
|
|
10
10
|
CustomSettings.attributes.skills.must_equal ["fireball", "frost"]
|
|
11
11
|
end
|
|
12
|
-
|
|
13
|
-
it "loads the settings within the namespace" do
|
|
14
|
-
CustomSettings.namespace "attributes"
|
|
15
|
-
CustomSettings.power.must_equal 10
|
|
16
|
-
CustomSettings.skills.must_equal ["fireball", "frost"]
|
|
17
|
-
end
|
|
18
12
|
end
|
|
19
13
|
|
|
20
14
|
|
|
@@ -25,7 +19,7 @@ end
|
|
|
25
19
|
|
|
26
20
|
describe CustomSettings2 do
|
|
27
21
|
it "loads the settings within the namespace" do
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
CustomSettings2.power.must_equal 10
|
|
23
|
+
CustomSettings2.skills.must_equal ["fireball", "frost"]
|
|
30
24
|
end
|
|
31
25
|
end
|
metadata
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dot_hash
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.5.5
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Marcelo Eden
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-05-
|
|
11
|
+
date: 2013-05-15 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: rake
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - '>='
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '0'
|
|
22
20
|
type: :development
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - '>='
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: '0'
|
|
30
27
|
description: Access hash values using the dot notation
|
|
@@ -59,33 +56,26 @@ files:
|
|
|
59
56
|
- test/test_helper.rb
|
|
60
57
|
homepage: https://github.com/3den/dot_hash
|
|
61
58
|
licenses: []
|
|
59
|
+
metadata: {}
|
|
62
60
|
post_install_message:
|
|
63
61
|
rdoc_options: []
|
|
64
62
|
require_paths:
|
|
65
63
|
- lib
|
|
66
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
|
-
none: false
|
|
68
65
|
requirements:
|
|
69
|
-
- -
|
|
66
|
+
- - '>='
|
|
70
67
|
- !ruby/object:Gem::Version
|
|
71
68
|
version: '0'
|
|
72
|
-
segments:
|
|
73
|
-
- 0
|
|
74
|
-
hash: -2644970010809512324
|
|
75
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
|
-
none: false
|
|
77
70
|
requirements:
|
|
78
|
-
- -
|
|
71
|
+
- - '>='
|
|
79
72
|
- !ruby/object:Gem::Version
|
|
80
73
|
version: '0'
|
|
81
|
-
segments:
|
|
82
|
-
- 0
|
|
83
|
-
hash: -2644970010809512324
|
|
84
74
|
requirements: []
|
|
85
75
|
rubyforge_project:
|
|
86
|
-
rubygems_version:
|
|
76
|
+
rubygems_version: 2.0.3
|
|
87
77
|
signing_key:
|
|
88
|
-
specification_version:
|
|
78
|
+
specification_version: 4
|
|
89
79
|
summary: Converts hash.to_properties so you can access values using properties.some_key
|
|
90
80
|
test_files:
|
|
91
81
|
- test/dot_hash/custom_settings_test.rb
|