parser 2.2.0.pre.3 → 2.2.0.pre.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +2 -0
- data/lib/parser/builders/default.rb +1 -1
- data/lib/parser/lexer.rl +1 -1
- data/lib/parser/version.rb +1 -1
- data/parser.gemspec +2 -1
- data/test/test_parser.rb +2 -2
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e39f5621132864348a91cf2a283dfa5f08fa151
|
4
|
+
data.tar.gz: 7563de60d0de93e695b24967698b43f5ea2a1ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48adc53dea6797bc4543a2c206813a0f3e1e06d5036555be3fcab96c71112b0dde6197378d47a740e7384b4193bfd928bda0a9f1db0f10e88dd5e61216d579f2
|
7
|
+
data.tar.gz: 4d8cc748a6a406afbec9bce4afe3a4d2ac5e4dd4b4ca1818a936beb547f8d6530e47e89f1d894f1751d83a7cd5f281c262104ee397151ad533b2d5a2ee9aa8c2
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
-
v2.2.0.pre.
|
4
|
+
v2.2.0.pre.4 (2014-08-09)
|
5
|
+
-------------------------
|
6
|
+
|
7
|
+
Bugs fixed:
|
8
|
+
* builders/default: "not(x)": fix source map (fixes #158). (Peter Zotov)
|
9
|
+
|
10
|
+
v2.2.0.pre.3 (2014-07-02)
|
5
11
|
-------------------------
|
6
12
|
|
7
13
|
Features implemented:
|
data/README.md
CHANGED
@@ -41,6 +41,8 @@ Access the AST's source map:
|
|
41
41
|
p Parser::CurrentRuby.parse("2 + 2").loc.selector.source
|
42
42
|
# "+"
|
43
43
|
|
44
|
+
Traverse the AST: see the documentation for [gem ast](http://whitequark.github.io/ast/).
|
45
|
+
|
44
46
|
Parse a chunk of code and display all diagnostics:
|
45
47
|
|
46
48
|
parser = Parser::CurrentRuby.new
|
data/lib/parser/lexer.rl
CHANGED
data/lib/parser/version.rb
CHANGED
data/parser.gemspec
CHANGED
@@ -37,10 +37,11 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_development_dependency 'kramdown'
|
38
38
|
|
39
39
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
40
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
40
|
+
spec.add_development_dependency 'simplecov', '~> 0.8.2'
|
41
41
|
spec.add_development_dependency 'coveralls'
|
42
42
|
spec.add_development_dependency 'json_pure' # for coveralls on 1.9.2
|
43
43
|
spec.add_development_dependency 'mime-types', '~> 1.25' # for coveralls on 1.8.7
|
44
|
+
spec.add_development_dependency 'rest-client', '~> 1.6.7' # 1.8.7
|
44
45
|
|
45
46
|
spec.add_development_dependency 'simplecov-sublime-ruby-coverage'
|
46
47
|
|
data/test/test_parser.rb
CHANGED
@@ -2907,13 +2907,13 @@ class TestParser < Minitest::Test
|
|
2907
2907
|
assert_parses(
|
2908
2908
|
s(:send, s(:lvar, :foo), :'!'),
|
2909
2909
|
%q{not(foo)},
|
2910
|
-
%{},
|
2910
|
+
%q{~~~~~~~~ expression},
|
2911
2911
|
ALL_VERSIONS - %w(1.8))
|
2912
2912
|
|
2913
2913
|
assert_parses(
|
2914
2914
|
s(:send, s(:begin), :'!'),
|
2915
2915
|
%q{not()},
|
2916
|
-
%{},
|
2916
|
+
%q{~~~~~ expression},
|
2917
2917
|
ALL_VERSIONS - %w(1.8))
|
2918
2918
|
end
|
2919
2919
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0.pre.
|
4
|
+
version: 2.2.0.pre.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Zotov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -160,14 +160,14 @@ dependencies:
|
|
160
160
|
requirements:
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
163
|
+
version: 0.8.2
|
164
164
|
type: :development
|
165
165
|
prerelease: false
|
166
166
|
version_requirements: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
168
|
- - "~>"
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version:
|
170
|
+
version: 0.8.2
|
171
171
|
- !ruby/object:Gem::Dependency
|
172
172
|
name: coveralls
|
173
173
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,6 +210,20 @@ dependencies:
|
|
210
210
|
- - "~>"
|
211
211
|
- !ruby/object:Gem::Version
|
212
212
|
version: '1.25'
|
213
|
+
- !ruby/object:Gem::Dependency
|
214
|
+
name: rest-client
|
215
|
+
requirement: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - "~>"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: 1.6.7
|
220
|
+
type: :development
|
221
|
+
prerelease: false
|
222
|
+
version_requirements: !ruby/object:Gem::Requirement
|
223
|
+
requirements:
|
224
|
+
- - "~>"
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: 1.6.7
|
213
227
|
- !ruby/object:Gem::Dependency
|
214
228
|
name: simplecov-sublime-ruby-coverage
|
215
229
|
requirement: !ruby/object:Gem::Requirement
|
@@ -359,7 +373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
359
373
|
version: 1.3.1
|
360
374
|
requirements: []
|
361
375
|
rubyforge_project:
|
362
|
-
rubygems_version: 2.
|
376
|
+
rubygems_version: 2.4.1
|
363
377
|
signing_key:
|
364
378
|
specification_version: 4
|
365
379
|
summary: A Ruby parser written in pure Ruby.
|