yaml_pack 0.0.1.alpha → 0.0.1.beta

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.
Files changed (2) hide show
  1. data/lib/yaml_pack.rb +2 -7
  2. metadata +3 -3
data/lib/yaml_pack.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'core_ext/hash'
2
2
 
3
3
  class YamlPack
4
- VERSION = "0.0.1.alpha"
4
+ VERSION = "0.0.1.beta"
5
5
 
6
6
  KEY_CONVERTERS = {
7
7
  :symbolize => Proc.new{|key, previous_keys| key.respond_to?(:to_sym) ? key.to_sym : key }
@@ -9,10 +9,6 @@ class YamlPack
9
9
 
10
10
  attr_reader :files, :base_dir
11
11
 
12
- def self.load_deep_merged(files, opts = {})
13
- new(files, opts).load_deep_merged
14
- end
15
-
16
12
  def initialize(files, opts = {})
17
13
  @files = [files].flatten
18
14
 
@@ -45,7 +41,7 @@ class YamlPack
45
41
 
46
42
  def content(file_path)
47
43
  body = File.read(file_path) || ""
48
- header + body
44
+ [header, body].join("\n")
49
45
  end
50
46
 
51
47
  def header
@@ -59,7 +55,6 @@ class YamlPack
59
55
 
60
56
  protected
61
57
 
62
-
63
58
  def convert_keys_recursive(result, previous_keys = [])
64
59
  if result.is_a?(Hash)
65
60
  hsh = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha
4
+ version: 0.0.1.beta
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70121952134780 !ruby/object:Gem::Requirement
16
+ requirement: &70130604858320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70121952134780
24
+ version_requirements: *70130604858320
25
25
  description: ! "\n YamlPack is a small framework for writing large and complex
26
26
  configuration files in yml.\n It supports nesting and merging merging yaml files.\n
27
27
  \ "