rpr 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -2
- data/lib/rpr/parser/rubocop.rb +4 -1
- data/lib/rpr/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f0fbdde13a55d1971fd6d219eccca8a7c85ce4aba233b4397a72153e745bbfaa
|
4
|
+
data.tar.gz: eaebeed683d97108d31c7d58ef2be935b75c559b530a3d6cb52daf2000048398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3578486f12009d88f800d67a532d909589549d1750c93f2c8037861b863177e6bc2045718b39c4ed462f4317633a4ad5681cdc175d1fbe9893bbf377bf69a6b0
|
7
|
+
data.tar.gz: 1aab005d3ad069d10621ee908c368b15c665e3b32a0c75f879fd32e4740e2530c47f9470e592a8888021e700e0134ae9a9b024edeedfc6f5243d23e5fb4c8823
|
data/.travis.yml
CHANGED
data/lib/rpr/parser/rubocop.rb
CHANGED
@@ -4,7 +4,10 @@ module Rpr
|
|
4
4
|
module Parser
|
5
5
|
module Rubocop
|
6
6
|
def self.parse(code)
|
7
|
-
|
7
|
+
version = RUBY_VERSION.to_f
|
8
|
+
# XXX: Parser gem does not support Ruby 2.6
|
9
|
+
version = 2.5 if version == 2.6
|
10
|
+
r = RuboCop::ProcessedSource.new(code, version)
|
8
11
|
return r.ast
|
9
12
|
end
|
10
13
|
end
|
data/lib/rpr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Kuwabara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
version: '0'
|
245
245
|
requirements: []
|
246
246
|
rubyforge_project:
|
247
|
-
rubygems_version: 2.
|
247
|
+
rubygems_version: 2.7.3
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: RPR displays Ruby's AST on command line.
|