signore 1.1.0 → 1.1.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: 3836fca9879726bbdd969adeb450e296799c3bbcbce890d3f00bae4381ae0fde
4
- data.tar.gz: 5bbe4c90bd1f80dd63d6062a89f2708f9f92be3f4f69917c0f8fa00cb08454a3
3
+ metadata.gz: a5d6232c0ce36ac9911766abf858a6b5b284203ee1d2ac8dc30c85816324f767
4
+ data.tar.gz: 1c55135df2c6ae267d8234b231ba7cf5f31ba06c772994fc7f2319043c9b9647
5
5
  SHA512:
6
- metadata.gz: e5e6381cb3b0067c61c8f8951528c166deeca50b2cdaf00aff640f42b3ab203fe4366925948cf20f0506a8b2a432028933020d1918d46548c9fe90e5a3a4a1b0
7
- data.tar.gz: 72170f9b4ae8a52d92ac780fa2a581b87cdc5202cd613ea440506c582b5aefd69515c55f784da530b34201febb915b65e0780c18221bc8242c660ba63a6a6070
6
+ metadata.gz: d91eab8bb1ca1b1c0fa415223085f7c437edbe4617220d76575457e70965cd7605a4429a1232a895ed0c401866f109967dfffe50682a443967ae5a0e49ab5608
7
+ data.tar.gz: ad9382bb5adff4026f2481510b3f9d114c86104735d0c2d424ed764c70ceca257913fdac2344801ffa1ad51364e1dae2f5b231378adee8219e75311cfee14ca3
data/gems.locked CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- signore (1.0.0)
4
+ signore (1.1.1)
5
5
  lovely_rufus (~> 1.0)
6
6
  pstore (~> 0.2.0)
7
7
 
@@ -25,7 +25,7 @@ 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(/(?<=\p{L})['"]/, '’').tr('\'"', '‘')
29
29
  end
30
30
 
31
31
  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.0'
13
+ gem.version = '1.1.1'
14
14
 
15
15
  gem.required_ruby_version = '~> 3.4'
16
16
 
@@ -52,14 +52,17 @@ module Signore
52
52
  _(sig).must_equal Signature.new(author: 'Patrick Ewing', text: text)
53
53
  end
54
54
 
55
- it 'replaces apostrophes with proper quotation marks' do
56
- simple = "There's no 'i' in 'denial'."
57
- author = 'ʎoɟ ʎɹoɔ'
58
- input = StringIO.new("#{simple}\n\n#{author}\n\n\n")
59
- sig = nil
60
- capture_io { sig = SigFromStream.call input }
55
+ it 'replaces apostrophes and quotation marks with typographic ones' do
56
+ sng = nil
57
+ dbl = nil
58
+ single = "There's no 'i' in 'denial'."
59
+ double = 'There"s no "i" in "denial".'
60
+ author = "\n\nʎoɟ ʎɹoɔ\n\n\n"
61
+ capture_io { sng = SigFromStream.call(StringIO.new(single + author)) }
62
+ capture_io { dbl = SigFromStream.call(StringIO.new(double + author)) }
61
63
  text = 'There’s no ‘i’ in ‘denial’.'
62
- _(sig).must_equal Signature.new(author:, text:)
64
+ _(sng).must_equal Signature.new(author: author.strip, text:)
65
+ _(dbl).must_equal Signature.new(author: author.strip, text:)
63
66
  end
64
67
  end
65
68
  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.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Szotkowski