yml_reader 0.3 → 0.4

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: 5bfe993b578a70e1fff6cc17919872d84078a7fd
4
- data.tar.gz: 12b3a3509448820a6eb14b0113bbaf7cdd283fef
3
+ metadata.gz: 02cbb257c6369b29ce93ff614fb487520a7aca53
4
+ data.tar.gz: b3a4bd09228aaee3b51d7c736d65e93220015dbe
5
5
  SHA512:
6
- metadata.gz: ec79d7f84afeeb1ef00ed048d9d9e21408337f6cb6c0c8b6800fef6c49d50b61a25f59b330db8ab9094dc0ac232f55a4d056a672f98c2521bf32928e0e16cf98
7
- data.tar.gz: aa0f57e897e7fce02e2202214b25923b29d355e55ad3846bdbe8563b8963fd146abba9fbce10f89a832f59f0d02412b55d015066469ccd966fb6b2aa24d6413d
6
+ metadata.gz: 22881fa997fdeb0b2e636b6c2c1ee8c043f309a4bd15d344bceb5371304150ca10bb160dc7fbbfdce7b674de651cdd55d2c00976f435d1026393e6b58f5fd7f9
7
+ data.tar.gz: e2997f2874ba23a8e92bc5fc3ebdb68812dc2129b251ef587280655da734901d3082eb95f57ed2334148d01122a9359139f72234ec8d269be505f7b5a8a16fb9
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ === Version 0.4 / 2014-9-21
2
+ * Fixes
3
+ * require yaml so it works with latest ruby
4
+
1
5
  === Version 0.3 / 2014-6-1
2
6
  * Enhancements
3
7
  * Updated so yml file can now include erb (thanks Justin Rolston)
@@ -1,3 +1,3 @@
1
1
  module YmlReader
2
- VERSION = "0.3"
2
+ VERSION = "0.4"
3
3
  end
data/lib/yml_reader.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "yml_reader/version"
2
+ require 'yaml'
2
3
 
3
4
  module YmlReader
4
5
 
@@ -23,7 +24,7 @@ module YmlReader
23
24
  # directory specified by a call to the yml_directory= method.
24
25
  #
25
26
  def load(filename)
26
- @yml = YAML.load(ERB.new(File.read("#{yml_directory}/#{filename}")).result)
27
+ @yml = ::YAML.load(ERB.new(File.read("#{yml_directory}/#{filename}")).result)
27
28
  end
28
29
 
29
30
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'yaml'
2
3
 
3
4
  module MyModule
4
5
  extend YmlReader
@@ -24,11 +25,4 @@ describe YmlReader do
24
25
  end
25
26
  end
26
27
 
27
- context "when reading yml files" do
28
- it "should read files from the yml_directory" do
29
- MyModule.yml_directory = 'conf'
30
- YAML.should_receive(:load_file).with('conf/test').and_return({})
31
- MyModule.load('test')
32
- end
33
- end
34
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yml_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-01 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Sets a directory and reads yml files
14
14
  email: