dot_why 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dot_why.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb484d6635749169ca57e8843ba6fdf0b9e2f2f2
|
4
|
+
data.tar.gz: fbedc608b6ec0c11153f5e30e4b8ab88dec55ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f04ec75c5f5940db66f5c0e8d1b044b08e31ffe85fa7b9394fbd61f7ce88bcc635d9deb93a9bc4c1c79b6854af36e66cd23f8e065c3cd5b1dd8453aadd559c9
|
7
|
+
data.tar.gz: 38c7dea6186df569c0c1fb9263b2d613c1d2cd76da76477cdee3747a3a655d91d2cb3a5c72dc66c1be20a08c97cf70e9bbb21de71805b3788e6341f811f3f360
|
data/lib/dot_why.rb
CHANGED
@@ -7,10 +7,9 @@ module Dot_Why
|
|
7
7
|
class Template < Erector::Widget
|
8
8
|
|
9
9
|
def initialize raw_file, *args
|
10
|
-
file = File.expand_path(raw_file).sub(".rb", "") + '.rb'
|
10
|
+
@file = file = File.expand_path(raw_file).sub(".rb", "") + '.rb'
|
11
11
|
@_blocks = {}
|
12
12
|
super(*args)
|
13
|
-
eval(File.read("#{file}"), nil, file, 1)
|
14
13
|
end
|
15
14
|
|
16
15
|
class << self
|
@@ -57,6 +56,10 @@ module Dot_Why
|
|
57
56
|
end
|
58
57
|
end
|
59
58
|
|
59
|
+
def eval_main
|
60
|
+
eval(File.read("#{@file}"), nil, @file, 1)
|
61
|
+
end
|
62
|
+
|
60
63
|
def content
|
61
64
|
main
|
62
65
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dot_why
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- da99
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
|
-
rubygems_version: 2.0.
|
73
|
+
rubygems_version: 2.0.7
|
74
74
|
signing_key:
|
75
75
|
specification_version: 4
|
76
76
|
summary: Erector to create other templates.
|