parlour 0.2.1 → 0.2.2

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: 2d1c171ba47259b6a4ed2a996851cefddaf27fc263dee7cf36e5402dd0825ed7
4
- data.tar.gz: e65db27b829a76f965aa09b01c7725496efef8aa4e7000618c7df6e058a91c81
3
+ metadata.gz: 8fab83bcce7bff17a6f4ded59f19e36b35f61b96c0e4c8e1ef50e5f0856e79fb
4
+ data.tar.gz: 1173903dcff90d2fe2579dbb0e79d361707f6d33041c6c36295f09f43219c630
5
5
  SHA512:
6
- metadata.gz: a59f7d8291d718af02b7bf8885deae8891149ad73f39ba5ff6b92cd19df9738c5e49b7202ab49509a7ac1a719381b88bf67a80df12756a8cf80af939b7e18166
7
- data.tar.gz: 357c2364280f8656372294799e879384019ef706c0b7bccf67b0491c7ea24d018a7af557a0791627810c7956770979708ee6f7b91f67771e4e1a242738695a73
6
+ metadata.gz: 0d3a8e0ac15d49a7cac530bc74c31070532a3960ff7cdaac1d70ab2bb28eeba8e6664125bc1bb52b9c676dcd934c0b31c24c97da02bfb1f65ef411dc480b28a9
7
+ data.tar.gz: 64d2b979abc0ded7506f1dd176269be3c84f39d972d038bedd3c2d0d34262b464dad0de1daf8591543444cdf0f403a9dc5bc648704429a1b3e61acd45a8dc54f
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
5
5
 
6
+ ## [0.2.2] - 2019-07-08
7
+ ### Fixed
8
+ - Fixed a bug which occasionally caused includes and extends to generate incorrectly.
9
+
6
10
  ## [0.2.1] - 2019-07-08
7
11
  ### Added
8
12
  - Added the `add_comment_to_next_child` method to namespaces.
@@ -388,7 +388,11 @@ module Parlour
388
388
  end
389
389
 
390
390
  first, *rest = children
391
- return [] unless first
391
+ unless first
392
+ # Remove any trailing whitespace due to includes
393
+ result.pop if result.last == ''
394
+ return result
395
+ end
392
396
 
393
397
  result += first.generate_rbi(indent_level, options) + T.must(rest)
394
398
  .map { |obj| obj.generate_rbi(indent_level, options) }
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
  module Parlour
3
3
  # The library version.
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parlour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Christiansen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-07 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime