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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5d6232c0ce36ac9911766abf858a6b5b284203ee1d2ac8dc30c85816324f767
4
- data.tar.gz: 1c55135df2c6ae267d8234b231ba7cf5f31ba06c772994fc7f2319043c9b9647
3
+ metadata.gz: 8e95122bc00fde56c3d7e52415e769f9d369f7737be3f779fed410801e8850c3
4
+ data.tar.gz: cedaa5ee2bf05aab92027a562f0054b9867082a41ddba6b8995f762476e65368
5
5
  SHA512:
6
- metadata.gz: d91eab8bb1ca1b1c0fa415223085f7c437edbe4617220d76575457e70965cd7605a4429a1232a895ed0c401866f109967dfffe50682a443967ae5a0e49ab5608
7
- data.tar.gz: ad9382bb5adff4026f2481510b3f9d114c86104735d0c2d424ed764c70ceca257913fdac2344801ffa1ad51364e1dae2f5b231378adee8219e75311cfee14ca3
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.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.0)
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.6)
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(/(?<=\p{L})['"]/, '’').tr('\'"', '')
28
+ input.gets(separator).strip.gsub(' - ', '')
29
+ .gsub(/(?<=\p{L})['"]/, '’').tr('\'"', '‘')
29
30
  end
30
31
 
31
32
  def params
data/signore.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.license = 'AGPL-3.0-or-later'
11
11
  gem.name = 'signore'
12
12
  gem.summary = 'signore: an email signature manager/randomiser'
13
- gem.version = '1.1.1'
13
+ gem.version = '1.1.2'
14
14
 
15
15
  gem.required_ruby_version = '~> 3.4'
16
16
 
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Szotkowski