yaml-sugar 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- # hash-config bundle version
1
+ # yaml-sugar gem version
2
2
  module YamlSugar
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
@@ -7,9 +7,6 @@ require 'ostruct'
7
7
  # YamlSugar class
8
8
  module YamlSugar
9
9
  attr_reader :config
10
- class << self
11
- attr_reader :class_instance_variable
12
- end
13
10
 
14
11
  # Define on self, since it's a module method
15
12
  def self.method_missing(method_sym, *_args)
@@ -26,7 +23,8 @@ module YamlSugar
26
23
  end
27
24
  end
28
25
 
29
- def self.load(dir, deep_merge: false)
26
+ def self.load(dir, args = {})
27
+ deep_merge = args.fetch :deep_merge, false
30
28
  fail "Parameter #{File.join(Dir.pwd, dir)} is not a valid directory" unless File.directory? dir
31
29
 
32
30
  @yaml_files ||= []
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml-sugar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Daniel Han
@@ -13,6 +14,7 @@ dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: hashugar
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: deep_merge
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -50,25 +55,26 @@ files:
50
55
  homepage: https://github.com/hex0cter/yaml-sugar
51
56
  licenses:
52
57
  - MIT
53
- metadata: {}
54
58
  post_install_message:
55
59
  rdoc_options: []
56
60
  require_paths:
57
61
  - lib
58
62
  required_ruby_version: !ruby/object:Gem::Requirement
63
+ none: false
59
64
  requirements:
60
- - - '>='
65
+ - - ! '>='
61
66
  - !ruby/object:Gem::Version
62
- version: 2.0.0
67
+ version: '0'
63
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
64
70
  requirements:
65
- - - '>='
71
+ - - ! '>='
66
72
  - !ruby/object:Gem::Version
67
73
  version: '0'
68
74
  requirements: []
69
75
  rubyforge_project:
70
- rubygems_version: 2.0.14.1
76
+ rubygems_version: 1.8.23.2
71
77
  signing_key:
72
- specification_version: 4
78
+ specification_version: 3
73
79
  summary: Read yaml into an OpenStruct
74
80
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 199c45e2f6bb5f213aaf92afdff027a08a7f1acc
4
- data.tar.gz: df29f1f4c88d4fb0040361d45c12f1e06287cf3d
5
- SHA512:
6
- metadata.gz: e3eb6f62bef8c5aa39db5060e90285476265dc34211ebe4508d64f184c7c911165b0962df8bbf2ef0cd73b7a05de636e25c64167ea2bacc0730b81579c7abfe7
7
- data.tar.gz: 7d5522b79abe8c704fab1b32ea58ff9120fc72849e2bea732fbc32af9072d30392bf630a2b3c1e47421bb44e7ca065c872498b047a026b2f0702caf2e96261fc