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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/parlour/rbi_generator/namespace.rb +5 -1
- data/lib/parlour/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fab83bcce7bff17a6f4ded59f19e36b35f61b96c0e4c8e1ef50e5f0856e79fb
|
4
|
+
data.tar.gz: 1173903dcff90d2fe2579dbb0e79d361707f6d33041c6c36295f09f43219c630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3a8e0ac15d49a7cac530bc74c31070532a3960ff7cdaac1d70ab2bb28eeba8e6664125bc1bb52b9c676dcd934c0b31c24c97da02bfb1f65ef411dc480b28a9
|
7
|
+
data.tar.gz: 64d2b979abc0ded7506f1dd176269be3c84f39d972d038bedd3c2d0d34262b464dad0de1daf8591543444cdf0f403a9dc5bc648704429a1b3e61acd45a8dc54f
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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) }
|
data/lib/parlour/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|