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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc66276b9a8bff575feb38b986ca0e544f09d513
4
- data.tar.gz: 4878ddad4c274767abb2b15db94099bb946ca652
3
+ metadata.gz: 360282871d8d48b8b93618a84438caa0417be95d
4
+ data.tar.gz: 05e22a50b040c9e225cf722670f03523c8219a4f
5
5
  SHA512:
6
- metadata.gz: a8cd6558e6ffdbf7ef649e2d195ad1ed1e836011c1504cb8e462cbfc5862d0df6a2141e3bf6037182c60673fa78c0ef34e1cea080250d6d33fb15e8fded5e69d
7
- data.tar.gz: 591594aaa2ca3ed7e22c4187321fd6767209f2e4d1527355c4eaa08d752ddcb1a3415f36e6a1650bcc5ca76855bdf3718e49dfba3a08dacb97229afbb5f54199
6
+ metadata.gz: b89f00a1ff34064adb9364f8141a2e2ee85408d95c7baac13d5e24c617caa09b63b54708dff9a735b187376e23db4353f6322b53926d8136dad4ed571822572c
7
+ data.tar.gz: 54d9d328af1cee03b7197bd26eb735e8353a204f2e76412522edecb4e2e729d5c0d7732c1c26d3cda65ace7b0738e9c4ac6dbfa3710df55100804ff2d45585c9
@@ -1,4 +1,4 @@
1
1
  # hash-config bundle version
2
2
  module YamlSugar
3
- VERSION = '0.0.2'.freeze
3
+ VERSION = '0.0.3'
4
4
  end
@@ -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 "Parametr #{dir} is not a valid directory" unless File.directory? dir
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.2
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.7'
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.7'
54
+ version: '5.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement