syntax_tree-rbs 0.3.0 → 0.4.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: b1e99e71213620e9dfe7a1e9e647e6fcf7186b30781244c60172195380ccc3fc
4
- data.tar.gz: cd6abd3a1376537eb1aae97301d6c02ca529a628da1cb8740c117e6b66e592e3
3
+ metadata.gz: 7e0550ed09644f60c85734f0633143c5fa621356c9fada7f073446070037ca2e
4
+ data.tar.gz: fbad990727e58695a58c37cbf31eea3a0f5ed418b4666d38416a8b4fe2aecdaf
5
5
  SHA512:
6
- metadata.gz: eee3cdcf67b8237f7cf26fbb38e6a95e3fd06642c55995407dac5865354c23f6ca32223db3cea72fe15079cd0e66e65d9624540c78b9972db9396fad822a0e66
7
- data.tar.gz: d400e2ec62b9ee1249fbaa659ce0010df25babbb8ec0ce6e5350f72d3a102dd141ff96aa2b3ed8c25a78af331182617b9fbcc4016d409f4e288c06cf0284032a
6
+ metadata.gz: 1c95de371dba5bbffb0b8d78251f77c6143de8db74c17576ae674125b46173db0b35d65ab97eb6ebd8cf44e91311e33a138c78ff84ab5b17c13d0cb914217af9
7
+ data.tar.gz: d4bf5bc46aa49848425f119937e45e9e15f131e0dc623b8f6bc4c3f93863cb21a5ce824fbca5aa6fbcf9f34129dd1093eb1ee16806cc27003b3b3b21382d3021
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.4.0] - 2022-05-13
10
+
11
+ ### Added
12
+
13
+ - Add an optional `maxwidth` second argument to `SyntaxTree::RBS.format`.
14
+
9
15
  ## [0.3.0] - 2022-05-13
10
16
 
11
17
  ### Changed
@@ -26,7 +32,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
26
32
 
27
33
  - 🎉 Initial release! 🎉
28
34
 
29
- [unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.3.0...HEAD
35
+ [unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.4.0...HEAD
36
+ [0.4.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.3.0...v0.4.0
30
37
  [0.3.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.2.0...v0.3.0
31
38
  [0.2.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.1.0...v0.2.0
32
39
  [0.1.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/93efc7...v0.1.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- syntax_tree-rbs (0.3.0)
4
+ syntax_tree-rbs (0.4.0)
5
5
  prettier_print
6
6
  rbs
7
7
  syntax_tree (>= 2.0.1)
@@ -20,7 +20,8 @@ GEM
20
20
  simplecov_json_formatter (~> 0.1)
21
21
  simplecov-html (0.12.3)
22
22
  simplecov_json_formatter (0.1.4)
23
- syntax_tree (2.4.1)
23
+ syntax_tree (2.5.0)
24
+ prettier_print
24
25
 
25
26
  PLATFORMS
26
27
  x86_64-darwin-19
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SyntaxTree
4
4
  module RBS
5
- VERSION = "0.3.0"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
@@ -69,8 +69,8 @@ module SyntaxTree
69
69
  end
70
70
 
71
71
  class << self
72
- def format(source)
73
- formatter = Formatter.new(source, [])
72
+ def format(source, maxwidth = 80)
73
+ formatter = Formatter.new(source, [], maxwidth)
74
74
  parse(source).format(formatter)
75
75
 
76
76
  formatter.flush
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syntax_tree-rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Newton
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.4.0.dev
161
+ rubygems_version: 3.3.3
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Syntax Tree support for RBS