unparser 0.4.6 → 0.4.7

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: e7b6ae43ecab2e1b02ad4688d19015cb19930b66c7c72b0d84603696a3bdd6a6
4
- data.tar.gz: 21b9230570b7a1124c070b35c58c1704c3640d54581b07003fc9400b18a8f4ca
3
+ metadata.gz: cc149df7cd940bb78d005b8f3d30635a877c270d37f40cfe8e7d9ba8b305ab8a
4
+ data.tar.gz: c8a1d3dd4aba58f7fd6a6188341916566857057663d660bd24a2d40f6247158a
5
5
  SHA512:
6
- metadata.gz: 580f2639ae9a1bfe704be90ed16c390d6151bbfaf19644f84aa31012bb896a6e763cfc4e24573674df92c4329f68e3303e381ffa02097c818e66e6f42a28d2c2
7
- data.tar.gz: 1bb2d10d2fa4f30e7b18ebe880d80e22b21e4fdf325518d3b9b65f2c2ec2f456307f74502a22399bad75f90a9ba26500ae553affd8ab71b126b9198a5cf15269
6
+ metadata.gz: 1cba4e5c9f029441dbca0eb39304478562e76c13023ec22b83dc5eeb58d7640d5c0d83878dad104e45ae6369662f3be0e7141398fb7cf37f6e4932075e305b0b
7
+ data.tar.gz: 2c61445c8d43bf01f24bb2f79dd2c49ba96fceef9479c6f1b94a77d7b5eba43fb79f0bbbf7d3995e143b81d208da6ad04852ec761daaf210741f46a049da0893
@@ -1,7 +1,7 @@
1
1
  defaults: &defaults
2
2
  working_directory: ~/unparser
3
3
  docker:
4
- - image: circleci/ruby:2.5.5
4
+ - image: circleci/ruby:2.6.5
5
5
  version: 2
6
6
  jobs:
7
7
  unit_specs:
@@ -1,3 +1,9 @@
1
+ # v0.4.7 2020-01-03
2
+
3
+ * Add support for endless ranges
4
+ * Change to allow parser 2.7, even while syntax is not yet supported.
5
+ This reduces downstream complexity.
6
+
1
7
  # v0.4.6 2020-01-02
2
8
 
3
9
  * Upgrades to allow parser dependency to ~> 2.6.5
data/Gemfile CHANGED
@@ -4,8 +4,6 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'mutant', git: 'https://github.com/mbj/mutant.git', branch: 'upgrade/parser'
8
-
9
7
  source 'https://oss:Px2ENN7S91OmWaD5G7MIQJi1dmtmYrEh@gem.mutant.dev' do
10
8
  gem 'mutant-license'
11
9
  end
@@ -1,33 +1,13 @@
1
- GIT
2
- remote: https://github.com/mbj/mutant.git
3
- revision: f138cc7b16ed6dab728ef2e2f46731754086b9e8
4
- branch: upgrade/parser
5
- specs:
6
- mutant (0.9.1)
7
- abstract_type (~> 0.0.7)
8
- adamantium (~> 0.2.0)
9
- anima (~> 0.3.1)
10
- ast (~> 2.2)
11
- concord (~> 0.1.5)
12
- diff-lcs (~> 1.3)
13
- equalizer (~> 0.0.9)
14
- ice_nine (~> 0.11.1)
15
- memoizable (~> 0.4.2)
16
- mutant-license (~> 0.1.0)
17
- parser (~> 2.6.5)
18
- procto (~> 0.0.2)
19
- unparser (~> 0.4.5)
20
-
21
1
  PATH
22
2
  remote: .
23
3
  specs:
24
- unparser (0.4.6)
4
+ unparser (0.4.7)
25
5
  abstract_type (~> 0.0.7)
26
6
  adamantium (~> 0.2.0)
27
7
  concord (~> 0.1.5)
28
8
  diff-lcs (~> 1.3)
29
9
  equalizer (~> 0.0.9)
30
- parser (~> 2.6.5)
10
+ parser (>= 2.6.5)
31
11
  procto (~> 0.0.2)
32
12
 
33
13
  GEM
@@ -101,7 +81,31 @@ GEM
101
81
  equalizer (~> 0.0.9)
102
82
  ice_nine (~> 0.11.0)
103
83
  procto (~> 0.0.2)
84
+ mprelude (0.1.0)
85
+ abstract_type (~> 0.0.7)
86
+ adamantium (~> 0.2.0)
87
+ concord (~> 0.1.5)
88
+ equalizer (~> 0.0.9)
89
+ ice_nine (~> 0.11.1)
90
+ procto (~> 0.0.2)
91
+ mutant (0.9.4)
92
+ abstract_type (~> 0.0.7)
93
+ adamantium (~> 0.2.0)
94
+ anima (~> 0.3.1)
95
+ ast (~> 2.2)
96
+ concord (~> 0.1.5)
97
+ diff-lcs (~> 1.3)
98
+ equalizer (~> 0.0.9)
99
+ ice_nine (~> 0.11.1)
100
+ memoizable (~> 0.4.2)
101
+ mprelude (~> 0.1.0)
102
+ parser (~> 2.6.5)
103
+ procto (~> 0.0.2)
104
+ unparser (~> 0.4.6)
104
105
  mutant-license (0.1.0)
106
+ mutant-rspec (0.9.4)
107
+ mutant (~> 0.9.4)
108
+ rspec-core (>= 3.8.0, < 4.0.0)
105
109
  parallel (1.19.1)
106
110
  parser (2.6.5.0)
107
111
  ast (~> 2.4.0)
@@ -168,8 +172,9 @@ DEPENDENCIES
168
172
  anima (~> 0.3.1)
169
173
  devtools (~> 0.1.23)
170
174
  morpher (~> 0.2.6)
171
- mutant!
175
+ mutant (~> 0.9.4)
172
176
  mutant-license!
177
+ mutant-rspec (~> 0.9.4)
173
178
  unparser!
174
179
 
175
180
  BUNDLED WITH
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 13
3
- total_score: 644
3
+ total_score: 638
@@ -27,7 +27,7 @@ module Unparser
27
27
  def dispatch
28
28
  visit(begin_node)
29
29
  write(TOKENS.fetch(node.type))
30
- visit(end_node)
30
+ visit(end_node) if end_node
31
31
  end
32
32
 
33
33
  end # Range
@@ -265,6 +265,7 @@ describe Unparser, mutant_expression: 'Unparser::Emitter*' do
265
265
  end
266
266
 
267
267
  context 'irange' do
268
+ assert_unterminated '1..'
268
269
  assert_unterminated '1..2'
269
270
  assert_unterminated '(0.0 / 0.0)..1'
270
271
  assert_unterminated '1..(0.0 / 0.0)'
@@ -272,6 +273,7 @@ describe Unparser, mutant_expression: 'Unparser::Emitter*' do
272
273
  end
273
274
 
274
275
  context 'erange' do
276
+ assert_unterminated '1...'
275
277
  assert_unterminated '1...2'
276
278
  end
277
279
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'unparser'
3
- gem.version = '0.4.6'
3
+ gem.version = '0.4.7'
4
4
 
5
5
  gem.authors = ['Markus Schirp']
6
6
  gem.email = 'mbj@schirp-dso.com'
@@ -21,10 +21,12 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency('equalizer', '~> 0.0.9')
22
22
  gem.add_dependency('diff-lcs', '~> 1.3')
23
23
  gem.add_dependency('concord', '~> 0.1.5')
24
- gem.add_dependency('parser', '~> 2.6.5')
24
+ gem.add_dependency('parser', '>= 2.6.5')
25
25
  gem.add_dependency('procto', '~> 0.0.2')
26
26
 
27
- gem.add_development_dependency('anima', '~> 0.3.1')
28
- gem.add_development_dependency('devtools', '~> 0.1.23')
29
- gem.add_development_dependency('morpher', '~> 0.2.6')
27
+ gem.add_development_dependency('anima', '~> 0.3.1')
28
+ gem.add_development_dependency('devtools', '~> 0.1.23')
29
+ gem.add_development_dependency('morpher', '~> 0.2.6')
30
+ gem.add_development_dependency('mutant', '~> 0.9.4')
31
+ gem.add_development_dependency('mutant-rspec', '~> 0.9.4')
30
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
@@ -84,14 +84,14 @@ dependencies:
84
84
  name: parser
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.6.5
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.6.5
97
97
  - !ruby/object:Gem::Dependency
@@ -150,6 +150,34 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.2.6
153
+ - !ruby/object:Gem::Dependency
154
+ name: mutant
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.9.4
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.9.4
167
+ - !ruby/object:Gem::Dependency
168
+ name: mutant-rspec
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.9.4
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.9.4
153
181
  description: Generate equivalent source for parser gem AST nodes
154
182
  email: mbj@schirp-dso.com
155
183
  executables: