dot_why 2.0.3 → 2.0.4
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 +14 -1
- metadata +24 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7de6861494b4cdf24649f6a97be88e8b7bcbbcc2
|
4
|
+
data.tar.gz: a8ffa34c702a5ec7cb483f917a7bdb54643ae8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa6f6425c988e0486541afdd98ac47e1ffe96493c5e83f660f0eb0c58b4db62326b578e1ea0b257e1724f9950b912e1275dd0dbf8bfbf4e92b37367f5c41d3c
|
7
|
+
data.tar.gz: b258dddead037b02cd731257099be5130c838d95145930ba5b629c26279121f190f59d25dff235c81b3d23c87ef6a2cee6ce9643ca1d29cf390bb9e3b73ab216
|
data/lib/dot_why.rb
CHANGED
@@ -39,7 +39,20 @@ module Dot_Why
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def eval_main
|
42
|
-
eval(File.read(
|
42
|
+
eval(File.read(@file.to_s), nil, @file, 1)
|
43
|
+
end
|
44
|
+
|
45
|
+
def partial file_or_dir, file = nil
|
46
|
+
file = if file
|
47
|
+
dir = Dir.exist?(file_or_dir) ?
|
48
|
+
file_or_dir :
|
49
|
+
Dir.dirname(file_or_dir)
|
50
|
+
File.join(dir, file)
|
51
|
+
else
|
52
|
+
file_or_dir
|
53
|
+
end
|
54
|
+
|
55
|
+
eval(File.read(file), nil, file, 1)
|
43
56
|
end
|
44
57
|
|
45
58
|
def content
|
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: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- da99
|
@@ -14,28 +14,42 @@ dependencies:
|
|
14
14
|
name: erector
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: active_support
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bacon
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
description: Use of Erector to generate various types of templates.
|
@@ -45,11 +59,11 @@ executables:
|
|
45
59
|
extensions: []
|
46
60
|
extra_rdoc_files: []
|
47
61
|
files:
|
62
|
+
- bin/dot_why
|
48
63
|
- lib/Cosmo.rb
|
49
64
|
- lib/Diet_Dot.rb
|
50
|
-
- lib/dot_why.rb
|
51
65
|
- lib/Ok.rb
|
52
|
-
-
|
66
|
+
- lib/dot_why.rb
|
53
67
|
homepage: http://www.github.com/da99/dot_why
|
54
68
|
licenses:
|
55
69
|
- MIT
|
@@ -60,17 +74,17 @@ require_paths:
|
|
60
74
|
- lib
|
61
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
76
|
requirements:
|
63
|
-
- -
|
77
|
+
- - ">="
|
64
78
|
- !ruby/object:Gem::Version
|
65
79
|
version: '0'
|
66
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
81
|
requirements:
|
68
|
-
- -
|
82
|
+
- - ">="
|
69
83
|
- !ruby/object:Gem::Version
|
70
84
|
version: '0'
|
71
85
|
requirements: []
|
72
86
|
rubyforge_project:
|
73
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.2.1
|
74
88
|
signing_key:
|
75
89
|
specification_version: 4
|
76
90
|
summary: Erector to create other templates.
|