yaml-sugar 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yaml-sugar/version.rb +1 -1
- data/lib/yaml-sugar/yaml-sugar.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 360282871d8d48b8b93618a84438caa0417be95d
|
4
|
+
data.tar.gz: 05e22a50b040c9e225cf722670f03523c8219a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b89f00a1ff34064adb9364f8141a2e2ee85408d95c7baac13d5e24c617caa09b63b54708dff9a735b187376e23db4353f6322b53926d8136dad4ed571822572c
|
7
|
+
data.tar.gz: 54d9d328af1cee03b7197bd26eb735e8353a204f2e76412522edecb4e2e729d5c0d7732c1c26d3cda65ace7b0738e9c4ac6dbfa3710df55100804ff2d45585c9
|
data/lib/yaml-sugar/version.rb
CHANGED
@@ -22,8 +22,14 @@ module YamlSugar
|
|
22
22
|
config
|
23
23
|
end
|
24
24
|
|
25
|
+
def self.set(attr, value)
|
26
|
+
self.class.instance_eval do
|
27
|
+
define_method(attr) { value }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
25
31
|
def self.load(dir)
|
26
|
-
fail "
|
32
|
+
fail "Parameter #{File.join(Dir.pwd, dir)} is not a valid directory" unless File.directory? dir
|
27
33
|
|
28
34
|
@yaml_files ||= []
|
29
35
|
Find.find(dir) do |path|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml-sugar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Han
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '5.
|
47
|
+
version: '5.8'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '5.
|
54
|
+
version: '5.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|