oppen 0.9.4 → 0.9.5

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: 5a2178222eed2a9789223d62624ee4d5b468ec35dbd65c602bfdea24e5e08c77
4
- data.tar.gz: 3ef37f2ad458bac064f77e7a37959fac18f33fc2d31dfc9ddbf4a4b88f527270
3
+ metadata.gz: d2e8ac9f3609e4e4d0f64e5b4b9fdbbe6856e23532b995a52281a14577a894c9
4
+ data.tar.gz: 5451a9f1c73b37f7d66693698ba6d1cc6551c85b98a0953b057a4bf7de145081
5
5
  SHA512:
6
- metadata.gz: 3a83e465f4279d02b9689d58f4023c61287b5f2ba03a0f209fcfdedc55e8451e05802fa61e01c0f1c898afb3e5577b0321fd60002a1c08924130991e9769a490
7
- data.tar.gz: 11d507ea9e4f5e6b5c0fe258c478b47243fd04c1a348bd935ce4404cd56d005776f161f11d52d93326ca1ecf5739bbbed2f360d397c37a5e497ec1b1ed103bcd
6
+ metadata.gz: c3a98ad61c3486094b13cb9fd200f18184fd6b475c35fc76284e58e2b194c2c74ab4a42568ae405c385a0165e75f1b6d144c96e1fb2f70e330bde063fed7c89b
7
+ data.tar.gz: d760f00dc3c26800c254b07b19ecb62703920e4feaa6023814c1d611d3989768f2b916296615358a0729d45fdee2369f1fdf880e3c5c1e97ac7c97d5c4a46d65
data/lib/oppen/version.rb CHANGED
@@ -5,5 +5,5 @@ module Oppen
5
5
  # Oppen version
6
6
  #
7
7
  # @return [String] current version
8
- VERSION = '0.9.4' # managed by release.sh
8
+ VERSION = '0.9.5' # managed by release.sh
9
9
  end
data/lib/wadler/print.rb CHANGED
@@ -146,11 +146,17 @@ module Oppen
146
146
 
147
147
  # Open a consistent group.
148
148
  #
149
- # @param indent [Integer]
149
+ # @param inconsistent [Boolean]
150
+ # @param indent [Integer]
150
151
  #
151
152
  # @return [Nil]
152
- def group_open(indent: 0)
153
- tokens << Oppen.begin_consistent(offset: indent)
153
+ def group_open(inconsistent: false, indent: 0)
154
+ tokens <<
155
+ if inconsistent
156
+ Oppen.begin_inconsistent(offset: indent)
157
+ else
158
+ Oppen.begin_consistent(offset: indent)
159
+ end
154
160
  end
155
161
 
156
162
  # Close a group.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oppen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amine Mike El Maalouf <amine.el-maalouf@epita.fr>
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-10-25 00:00:00.000000000 Z
12
+ date: 2024-11-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Implementation of the Oppen's pretty printing algorithm
15
15
  email: