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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fdd84e2bf0afe8d344da8823488765821b9587d
4
- data.tar.gz: ec152fc432ac23d54613a3a525ecc383b541b937
3
+ metadata.gz: 5e39f5621132864348a91cf2a283dfa5f08fa151
4
+ data.tar.gz: 7563de60d0de93e695b24967698b43f5ea2a1ff8
5
5
  SHA512:
6
- metadata.gz: 348b7a975ec3011a255009d9d0f02942c2cfaeb5515f39648b16673a8226a60b88bd00ab2b6cc47f67bc9001e6b26ab1c28cf938854c0dcaf910dfa40eb133ab
7
- data.tar.gz: a53e9736e8aeaf38714ddd5944d349a36104eb288190dacac123770b2d7f41cc1dc7484d8562ab1a10cc6c01beea9337ddecb591df520da93ec9df5b05db953d
6
+ metadata.gz: 48adc53dea6797bc4543a2c206813a0f3e1e06d5036555be3fcab96c71112b0dde6197378d47a740e7384b4193bfd928bda0a9f1db0f10e88dd5e61216d579f2
7
+ data.tar.gz: 4d8cc748a6a406afbec9bce4afe3a4d2ac5e4dd4b4ca1818a936beb547f8d6530e47e89f1d894f1751d83a7cd5f281c262104ee397151ad533b2d5a2ee9aa8c2
@@ -1,7 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- v2.2.0.pre.3 (2014-06-30)
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
@@ -760,7 +760,7 @@ module Parser
760
760
  ], send_unary_op_map(not_t, nil_node))
761
761
  else
762
762
  n(:send, [ receiver, :'!' ],
763
- send_unary_op_map(not_t, receiver))
763
+ send_map(nil, nil, not_t, begin_t, [receiver], end_t))
764
764
  end
765
765
  end
766
766
  end
@@ -913,7 +913,7 @@ class Parser::Lexer
913
913
  # foo
914
914
  # 2"
915
915
  #
916
- # which, incidentally, evaluates to "bar\n12".
916
+ # which, incidentally, evaluates to "bar\n1\n2".
917
917
  p = @herebody_s - 1
918
918
  @herebody_s = nil
919
919
  end
@@ -1,3 +1,3 @@
1
1
  module Parser
2
- VERSION = '2.2.0.pre.3'
2
+ VERSION = '2.2.0.pre.4'
3
3
  end
@@ -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.7'
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
 
@@ -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.3
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-07-01 00:00:00.000000000 Z
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: '0.7'
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: '0.7'
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.2.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.