yarb 0.0.2
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.
- data/Manifest +5 -0
- data/README.rdoc +10 -0
- data/Rakefile +12 -0
- data/lib/yarb.rb +14 -0
- metadata +67 -0
data/Manifest
ADDED
data/README.rdoc
ADDED
data/Rakefile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'rake'
|
|
3
|
+
require 'echoe'
|
|
4
|
+
|
|
5
|
+
Echoe.new('yarb', '0.0.1') do |g|
|
|
6
|
+
g.description = "ERB enabled YAML"
|
|
7
|
+
g.url = "http://github.com/matthewvermaak/yarb"
|
|
8
|
+
g.author = "Matthew Vermaak"
|
|
9
|
+
g.email = "matthewvermaak@gmail.com"
|
|
10
|
+
g.ignore_pattern = ["tmp/*", "script/*"]
|
|
11
|
+
g.development_dependencies = []
|
|
12
|
+
end
|
data/lib/yarb.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'erb'
|
|
2
|
+
require 'yaml'
|
|
3
|
+
|
|
4
|
+
module YARB
|
|
5
|
+
def self.load(read_or_string, options = {:binding => TOPLEVEL_BINDING})
|
|
6
|
+
pass_binding = options[:binding]
|
|
7
|
+
|
|
8
|
+
if read_or_string.respond_to? :read
|
|
9
|
+
YAML::load(ERB.new(read_or_string.read).result(pass_binding))
|
|
10
|
+
else
|
|
11
|
+
YAML::load(ERB.new(read_or_string).result(pass_binding))
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: yarb
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 0
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.0.2
|
|
10
|
+
platform: ruby
|
|
11
|
+
authors:
|
|
12
|
+
- Matthew Vermaak
|
|
13
|
+
autorequire:
|
|
14
|
+
bindir: bin
|
|
15
|
+
cert_chain: []
|
|
16
|
+
|
|
17
|
+
date: 2010-04-26 00:00:00 -04:00
|
|
18
|
+
default_executable:
|
|
19
|
+
dependencies: []
|
|
20
|
+
|
|
21
|
+
description: ERB enabled YAML
|
|
22
|
+
email: matthewvermaak@gmail.com
|
|
23
|
+
executables: []
|
|
24
|
+
|
|
25
|
+
extensions: []
|
|
26
|
+
|
|
27
|
+
extra_rdoc_files: []
|
|
28
|
+
|
|
29
|
+
files:
|
|
30
|
+
- lib/yarb.rb
|
|
31
|
+
- Manifest
|
|
32
|
+
- Rakefile
|
|
33
|
+
- README.rdoc
|
|
34
|
+
has_rdoc: true
|
|
35
|
+
homepage: http://github.com/matthewvermaak/yarb
|
|
36
|
+
licenses: []
|
|
37
|
+
|
|
38
|
+
post_install_message:
|
|
39
|
+
rdoc_options: []
|
|
40
|
+
|
|
41
|
+
require_paths:
|
|
42
|
+
- lib
|
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
segments:
|
|
48
|
+
- 0
|
|
49
|
+
version: "0"
|
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
segments:
|
|
55
|
+
- 1
|
|
56
|
+
- 3
|
|
57
|
+
- 4
|
|
58
|
+
version: 1.3.4
|
|
59
|
+
requirements: []
|
|
60
|
+
|
|
61
|
+
rubyforge_project: yarb
|
|
62
|
+
rubygems_version: 1.3.6
|
|
63
|
+
signing_key:
|
|
64
|
+
specification_version: 3
|
|
65
|
+
summary: ERB enabled YAML
|
|
66
|
+
test_files: []
|
|
67
|
+
|