typerb 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/Gemfile.lock +7 -7
- data/lib/typerb/variable_name.rb +1 -1
- data/lib/typerb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ee985e57292c037f842de48682659f4fb90e6f18d26811e065c4b32983a5bbb
|
4
|
+
data.tar.gz: f4960c88faa5d885690405c70a514cbcea191e12964f7e83b50d925bb0848911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c816163ee5396ecfcd09234b9e2590b8a75bc06ef6ea839897da6bc2722c44bbe9bdbc3c1aef75858be28ae6df118ad834e6548b68449a140381d3188b3d9684
|
7
|
+
data.tar.gz: 84a1286086584e24305f1816f93cf573bef0a257f7fb541e223986e260697c780ea14d6c22fe9cc59857df95e99f1be4f4a438a9b48265072b055d3823dc5819
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.0-
|
1
|
+
2.6.0-rc1
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
diff-lcs (1.3)
|
13
13
|
ffi (1.9.25)
|
14
14
|
formatador (0.2.5)
|
15
|
-
guard (2.
|
15
|
+
guard (2.15.0)
|
16
16
|
formatador (>= 0.2.4)
|
17
17
|
listen (>= 2.7, < 4.0)
|
18
18
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
rb-inotify (~> 0.9, >= 0.9.7)
|
33
33
|
ruby_dep (~> 1.2)
|
34
34
|
lumberjack (1.0.13)
|
35
|
-
method_source (0.9.
|
35
|
+
method_source (0.9.2)
|
36
36
|
nenv (0.3.0)
|
37
37
|
notiffany (0.1.1)
|
38
38
|
nenv (~> 0.1)
|
@@ -41,11 +41,11 @@ GEM
|
|
41
41
|
parser (2.5.3.0)
|
42
42
|
ast (~> 2.4.0)
|
43
43
|
powerpack (0.1.2)
|
44
|
-
pry (0.12.
|
44
|
+
pry (0.12.2)
|
45
45
|
coderay (~> 1.1.0)
|
46
46
|
method_source (~> 0.9.0)
|
47
47
|
rainbow (3.0.0)
|
48
|
-
rake (
|
48
|
+
rake (12.3.2)
|
49
49
|
rb-fsevent (0.10.3)
|
50
50
|
rb-inotify (0.9.10)
|
51
51
|
ffi (>= 0.5.0, < 2)
|
@@ -62,7 +62,7 @@ GEM
|
|
62
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
63
63
|
rspec-support (~> 3.8.0)
|
64
64
|
rspec-support (3.8.0)
|
65
|
-
rubocop (0.
|
65
|
+
rubocop (0.61.1)
|
66
66
|
jaro_winkler (~> 1.5.1)
|
67
67
|
parallel (~> 1.10)
|
68
68
|
parser (>= 2.5, != 2.5.1.1)
|
@@ -75,7 +75,7 @@ GEM
|
|
75
75
|
shellany (0.0.1)
|
76
76
|
super_awesome_print (0.2.5)
|
77
77
|
awesome_print
|
78
|
-
thor (0.20.
|
78
|
+
thor (0.20.3)
|
79
79
|
unicode-display_width (1.4.0)
|
80
80
|
|
81
81
|
PLATFORMS
|
@@ -93,4 +93,4 @@ DEPENDENCIES
|
|
93
93
|
typerb!
|
94
94
|
|
95
95
|
BUNDLED WITH
|
96
|
-
1.17.
|
96
|
+
1.17.2
|
data/lib/typerb/variable_name.rb
CHANGED
@@ -21,7 +21,7 @@ module Typerb
|
|
21
21
|
|
22
22
|
def from_ast(caller_method) # rubocop: disable Metrics/AbcSize not worth fixing
|
23
23
|
code = File.read(file).lines[line - 1].strip
|
24
|
-
node = RubyVM::
|
24
|
+
node = RubyVM::AbstractSyntaxTree.parse(code)
|
25
25
|
if node.children.last.children.size == 3 && node.children.last.children[1] == caller_method # rubocop: disable Style/IfUnlessModifier, Style/GuardClause
|
26
26
|
node.children.last.children.first.children.first
|
27
27
|
end
|
data/lib/typerb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typerb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Antonyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 3.0.0.
|
171
|
+
rubygems_version: 3.0.0.beta3
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Typecheck sugar for Ruby.
|