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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ca7133fb04e7eaee106031a74a765bc1950fa166008f1d698fb9324d7d7b04d
4
- data.tar.gz: 354ea46d073b496a1e9240c843bfa6193ee59e6460992638167f4c42f8dedc7f
3
+ metadata.gz: 7dc8140161b7b57fd3dc1a901495ba36d90732d2776a52539715ee0896e2b967
4
+ data.tar.gz: 61ca79f8bcb6db1b2e1cd0dad2fd66430081081206221c8e631300df44770d3f
5
5
  SHA512:
6
- metadata.gz: 5921d7aa4e7b771ba0d48466ff9351d9e71b7a47395d1b2455ecd7475bb6af96ae09fb8abd9e070b6c401b533b007e17e8869e04a8aedba4d31943f799225774
7
- data.tar.gz: 1b7d7d85d6f239ad858dca1f655da5b52127f9db2e99b8f51812a9001285c70067d18a62deb6b861dd04630766c47aaf451a934bc9ed04711f7c798c0b7422ec
6
+ metadata.gz: 26d7fc98735bb0c54791a8832893a75f96ee593c31d24ddf1c40791530d4ce4a18098eac1a51919b8afbce2fe5c25b18835f9e7800455c76ce367e62814baf03
7
+ data.tar.gz: 11c7b12979bacdc38bb4e195d17c8e3ebe192f680ee3e958e5f9fda30048b15153c0c587330884ccf466286cfa9c7abaa4238f1d4b3a8b5a2a51c6aa5d27c300
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imagen (0.1.0)
4
+ imagen (0.1.1)
5
5
  parser
6
6
 
7
7
  GEM
data/Rakefile CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  $LOAD_PATH << 'lib'
4
4
 
5
+ require 'bundler/gem_tasks'
5
6
  require 'rubocop/rake_task'
6
7
  require 'rspec/core/rake_task'
7
8
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Imagen
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
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.0
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-10 00:00:00.000000000 Z
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
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'imagen_rb'
6
-
7
- require 'pry'
8
- Pry.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here