signore 1.1.1 → 1.1.2
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 +4 -4
- data/gems.locked +3 -3
- data/lib/signore/sig_from_stream.rb +2 -1
- data/signore.gemspec +1 -1
- data/test/signore/sig_from_stream_test.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e95122bc00fde56c3d7e52415e769f9d369f7737be3f779fed410801e8850c3
|
4
|
+
data.tar.gz: cedaa5ee2bf05aab92027a562f0054b9867082a41ddba6b8995f762476e65368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15dd472578ad616ef36d258e9c584638c095a5309537fae7494645e49342915801b6bcca02cd172d0cc2f9782a3310ecd43e7430260bfa1b22114c2745cffa9b
|
7
|
+
data.tar.gz: b3bc83bafd1d76005cba92267ececd083dcef1d656b22782bb42c7cb63f3dab01ee813b62ba7c852afe00ec7c3a54295bf8214f5387926c4990bd52adf1de49f
|
data/gems.locked
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
signore (1.1.
|
4
|
+
signore (1.1.2)
|
5
5
|
lovely_rufus (~> 1.0)
|
6
6
|
pstore (~> 0.2.0)
|
7
7
|
|
@@ -40,7 +40,7 @@ GEM
|
|
40
40
|
dry-inflector (~> 1.0)
|
41
41
|
dry-logic (~> 1.4)
|
42
42
|
zeitwerk (~> 2.6)
|
43
|
-
json (2.12.
|
43
|
+
json (2.12.2)
|
44
44
|
language_server-protocol (3.17.0.5)
|
45
45
|
lint_roller (1.1.0)
|
46
46
|
logger (1.7.0)
|
@@ -65,7 +65,7 @@ GEM
|
|
65
65
|
rexml (~> 3.1)
|
66
66
|
regexp_parser (2.10.0)
|
67
67
|
rexml (3.4.1)
|
68
|
-
rubocop (1.75.
|
68
|
+
rubocop (1.75.7)
|
69
69
|
json (~> 2.3)
|
70
70
|
language_server-protocol (~> 3.17.0.2)
|
71
71
|
lint_roller (~> 1.1.0)
|
@@ -25,7 +25,8 @@ module Signore
|
|
25
25
|
def get_param(param)
|
26
26
|
puts "\n#{param}?"
|
27
27
|
separator = param == :text ? "\n\n" : "\n"
|
28
|
-
input.gets(separator).strip.gsub(
|
28
|
+
input.gets(separator).strip.gsub(' - ', ' – ')
|
29
|
+
.gsub(/(?<=\p{L})['"]/, '’').tr('\'"', '‘')
|
29
30
|
end
|
30
31
|
|
31
32
|
def params
|
data/signore.gemspec
CHANGED
@@ -64,6 +64,14 @@ module Signore
|
|
64
64
|
_(sng).must_equal Signature.new(author: author.strip, text:)
|
65
65
|
_(dbl).must_equal Signature.new(author: author.strip, text:)
|
66
66
|
end
|
67
|
+
|
68
|
+
it 'replaces hyphens with en dashes' do
|
69
|
+
stream = "355/113 - not π, but an incredible simulation.\n\n\n\n\n"
|
70
|
+
sig = nil
|
71
|
+
capture_io { sig = SigFromStream.call(StringIO.new(stream)) }
|
72
|
+
text = '355/113 – not π, but an incredible simulation.'
|
73
|
+
_(sig).must_equal Signature.new(text:)
|
74
|
+
end
|
67
75
|
end
|
68
76
|
end
|
69
77
|
end
|