syntax_tree-rbs 0.2.0 → 0.3.0

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: 76d6ef8333e7233a6fbc0bd5511c54a8e9a277f691e5a675d9fc856fdec178fd
4
- data.tar.gz: ed5a55bf995ac0ca43efe0e046c807e701f560f5bcf7eac15df71dacc1dde9ee
3
+ metadata.gz: b1e99e71213620e9dfe7a1e9e647e6fcf7186b30781244c60172195380ccc3fc
4
+ data.tar.gz: cd6abd3a1376537eb1aae97301d6c02ca529a628da1cb8740c117e6b66e592e3
5
5
  SHA512:
6
- metadata.gz: 93d9c4034fc8863f1e2176b3e7127bfe04dc2f3cdd63699474ef0d14467bd075c761bfcb295b7a2d6d1c9c983c893932f2c2972dc9c9154ad828cc074f9d0b8f
7
- data.tar.gz: c484c057bda34ee2a2ebb54a7120a01e16a93bfd66e8b32f32493b155132d7e8cfd3b7da5e1e4940e511d5d93c6f9f35b4a85b06060f46167d8862408645ed6b
6
+ metadata.gz: eee3cdcf67b8237f7cf26fbb38e6a95e3fd06642c55995407dac5865354c23f6ca32223db3cea72fe15079cd0e66e65d9624540c78b9972db9396fad822a0e66
7
+ data.tar.gz: d400e2ec62b9ee1249fbaa659ce0010df25babbb8ec0ce6e5350f72d3a102dd141ff96aa2b3ed8c25a78af331182617b9fbcc4016d409f4e288c06cf0284032a
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.3.0] - 2022-05-13
10
+
11
+ ### Changed
12
+
13
+ - Use the `prettier_print` gem for formatting instead of `prettyprint`.
14
+
9
15
  ## [0.2.0] - 2022-04-22
10
16
 
11
17
  ### Added
@@ -20,6 +26,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
20
26
 
21
27
  - 🎉 Initial release! 🎉
22
28
 
23
- [unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.2.0...HEAD
29
+ [unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.3.0...HEAD
30
+ [0.3.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.2.0...v0.3.0
24
31
  [0.2.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.1.0...v0.2.0
25
32
  [0.1.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/93efc7...v0.1.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- syntax_tree-rbs (0.2.0)
4
+ syntax_tree-rbs (0.3.0)
5
+ prettier_print
5
6
  rbs
6
7
  syntax_tree (>= 2.0.1)
7
8
 
@@ -10,15 +11,16 @@ GEM
10
11
  specs:
11
12
  docile (1.4.0)
12
13
  minitest (5.15.0)
14
+ prettier_print (0.1.0)
13
15
  rake (13.0.6)
14
- rbs (2.3.2)
16
+ rbs (2.4.0)
15
17
  simplecov (0.21.2)
16
18
  docile (~> 1.1)
17
19
  simplecov-html (~> 0.11)
18
20
  simplecov_json_formatter (~> 0.1)
19
21
  simplecov-html (0.12.3)
20
22
  simplecov_json_formatter (0.1.4)
21
- syntax_tree (2.3.0)
23
+ syntax_tree (2.4.1)
22
24
 
23
25
  PLATFORMS
24
26
  x86_64-darwin-19
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SyntaxTree
4
4
  module RBS
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "prettier_print"
3
4
  require "rbs"
4
5
  require "syntax_tree"
5
6
 
@@ -12,11 +13,11 @@ require_relative "rbs/version"
12
13
 
13
14
  module SyntaxTree
14
15
  module RBS
15
- # A slight extension to the default PP formatter that keeps track of the
16
- # source (so that it can be referenced by annotations if they need it) and
17
- # keeps track of the level of intersections and unions so that parentheses
18
- # can be forced if necessary.
19
- class Formatter < PP
16
+ # A slight extension to the default PrettierPrint formatter that keeps track
17
+ # of the source (so that it can be referenced by annotations if they need
18
+ # it) and keeps track of the level of intersections and unions so that
19
+ # parentheses can be forced if necessary.
20
+ class Formatter < PrettierPrint
20
21
  attr_reader :source
21
22
 
22
23
  def initialize(source, ...)
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = %w[lib]
25
25
 
26
+ spec.add_dependency "prettier_print"
26
27
  spec.add_dependency "rbs"
27
28
  spec.add_dependency "syntax_tree", ">= 2.0.1"
28
29
 
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syntax_tree-rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Newton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-22 00:00:00.000000000 Z
11
+ date: 2022-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: prettier_print
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rbs
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
158
  - !ruby/object:Gem::Version
145
159
  version: '0'
146
160
  requirements: []
147
- rubygems_version: 3.2.3
161
+ rubygems_version: 3.4.0.dev
148
162
  signing_key:
149
163
  specification_version: 4
150
164
  summary: Syntax Tree support for RBS