imagen 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Rakefile +1 -0
- data/lib/imagen/node.rb +24 -0
- data/lib/imagen/version.rb +1 -1
- metadata +2 -4
- data/bin/console +0 -8
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dc8140161b7b57fd3dc1a901495ba36d90732d2776a52539715ee0896e2b967
|
4
|
+
data.tar.gz: 61ca79f8bcb6db1b2e1cd0dad2fd66430081081206221c8e631300df44770d3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26d7fc98735bb0c54791a8832893a75f96ee593c31d24ddf1c40791530d4ce4a18098eac1a51919b8afbce2fe5c25b18835f9e7800455c76ce367e62814baf03
|
7
|
+
data.tar.gz: 11c7b12979bacdc38bb4e195d17c8e3ebe192f680ee3e958e5f9fda30048b15153c0c587330884ccf466286cfa9c7abaa4238f1d4b3a8b5a2a51c6aa5d27c300
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
data/lib/imagen/node.rb
CHANGED
@@ -12,6 +12,10 @@ module Imagen
|
|
12
12
|
@children = []
|
13
13
|
end
|
14
14
|
|
15
|
+
def human_name
|
16
|
+
raise NotImplementedError
|
17
|
+
end
|
18
|
+
|
15
19
|
def build_from_ast(ast_node)
|
16
20
|
tap { @ast_node = ast_node }
|
17
21
|
end
|
@@ -71,6 +75,10 @@ module Imagen
|
|
71
75
|
self
|
72
76
|
end
|
73
77
|
|
78
|
+
def human_name
|
79
|
+
'root'
|
80
|
+
end
|
81
|
+
|
74
82
|
# TODO: fix wrong inheritance
|
75
83
|
def file_path
|
76
84
|
dir
|
@@ -102,6 +110,10 @@ module Imagen
|
|
102
110
|
super
|
103
111
|
tap { @name = ast_node.children[0].children[1].to_s }
|
104
112
|
end
|
113
|
+
|
114
|
+
def human_name
|
115
|
+
'module'
|
116
|
+
end
|
105
117
|
end
|
106
118
|
|
107
119
|
# Represents a Ruby class
|
@@ -110,6 +122,10 @@ module Imagen
|
|
110
122
|
super
|
111
123
|
tap { @name = ast_node.children[0].children[1].to_s }
|
112
124
|
end
|
125
|
+
|
126
|
+
def human_name
|
127
|
+
'class'
|
128
|
+
end
|
113
129
|
end
|
114
130
|
|
115
131
|
# Represents a Ruby class method
|
@@ -118,6 +134,10 @@ module Imagen
|
|
118
134
|
super
|
119
135
|
tap { @name = ast_node.children[1].to_s }
|
120
136
|
end
|
137
|
+
|
138
|
+
def human_name
|
139
|
+
'class method'
|
140
|
+
end
|
121
141
|
end
|
122
142
|
|
123
143
|
# Represents a Ruby instance method
|
@@ -126,6 +146,10 @@ module Imagen
|
|
126
146
|
super
|
127
147
|
tap { @name = ast_node.children[0].to_s }
|
128
148
|
end
|
149
|
+
|
150
|
+
def human_name
|
151
|
+
'instance method'
|
152
|
+
end
|
129
153
|
end
|
130
154
|
end
|
131
155
|
end
|
data/lib/imagen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Grodowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -140,8 +140,6 @@ files:
|
|
140
140
|
- LICENSE.txt
|
141
141
|
- README.md
|
142
142
|
- Rakefile
|
143
|
-
- bin/console
|
144
|
-
- bin/setup
|
145
143
|
- build.sh
|
146
144
|
- imagen_rb.gemspec
|
147
145
|
- lib/.gitkeep
|
data/bin/console
DELETED