anystyle 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 694288a5b219077818965fffd8eed72aa01c3a096a99647c2ee6014edeb13e38
4
- data.tar.gz: db7aefb69e10d359aaf55a1da8d0c6041bfefb91088f5e1cc330e6bb3a13e005
3
+ metadata.gz: 04e3f1bd54b4eb47cb42438060ebaaff0eae59c336a8f061c99df6c54908cd6d
4
+ data.tar.gz: 1f8a15903c5dd2c6df72c7ab0d7eabc7d59d2d784188c0d749ca952b401c0cb5
5
5
  SHA512:
6
- metadata.gz: 595b8627b93a7e61912fc65f1d1c14a4a0dbd6263d7612c21184aa1e9e42856e16c265a29c6e8b2b3588da1b6a70ca456145ae72c4f4980fea502a7fde314de7
7
- data.tar.gz: d14ae39fd0e156e76619b8b23e171a8b364fa1d14e00c4f9517edd8bc40d5ff082c83073343fcb345f42a3a5b6828c4358a29593067f35696584d8e868113cfa
6
+ metadata.gz: 8f21252addef11dccbbc0cb27ea159fddb8d6897a0be33551382678c155d9dfd65a33afc0ecfa27e8ef2ed5b3232fa6206f9a0bd78c02bdf5c5bb96d988955b0
7
+ data.tar.gz: 4a4a58a2203d233bc3132cf25c272a9cb1514c5c9dd128e05e65a8e1fd53e7b9563b989b81918fa9728fbd3d1e3ea083c430842e552484e84c4584f88d29d904
@@ -171,17 +171,17 @@ module AnyStyle
171
171
  delta == 0,
172
172
  b.length < 50,
173
173
  a.length < 65,
174
- a.match?(/[,;:&\p{Pd}]$/),
175
- b.match?(/^\p{Ll}/) || a.match?(/\p{L}$/) && b.match?(/^\p{L}/)
174
+ !!a.match(/[,;:&\p{Pd}]$/),
175
+ !!b.match(/^\p{Ll}/) || !!a.match(/\p{L}$/) && !!b.match(/^\p{L}/)
176
176
  ].count(true)
177
177
 
178
178
  con = [
179
179
  indent < 0,
180
180
  delta > 8,
181
- a.match?(/\.\]$/),
181
+ !!a.match(/\.\]$/),
182
182
  a.length > 500,
183
183
  (b.length - a.length) > 12,
184
- b.match?(/^(\p{Pd}\p{Pd}|\p{Lu}\p{Ll}+, \p{Lu}\.|\[\d)/)
184
+ !!b.match(/^(\p{Pd}\p{Pd}|\p{Lu}\p{Ll}+, \p{Lu}\.|\[\d)/)
185
185
  ].count(true)
186
186
 
187
187
  (pro - con) > 1
@@ -1,3 +1,3 @@
1
1
  module AnyStyle
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anystyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil