sterile 1.0.25 → 1.0.26

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: 70a089af409dc3faeb91d1ae296cd7d379de674be2e324dc0e13516348cc14aa
4
- data.tar.gz: a02e09d8cbb53895e3d50995edc23b6a55d73fe436ed5e83d1ebced615a83c9a
3
+ metadata.gz: 80dc35ba4862f316494b3de4c438279931d258e93c8bb82d8efe61e69706855c
4
+ data.tar.gz: f3a78cdfd802b5dae8ffb91a838eb931b02328f154dfb4aed6fde64bc0ced030
5
5
  SHA512:
6
- metadata.gz: d97250e7ed5d15960263744b69f608aad2a1cf35e90232c6657c07042e16803dafcc2357cc138ce7a4b15ac283256bb322da388eee16938c37df16585af58b91
7
- data.tar.gz: 439b34d1bff7b1d811f0749ee31619c3b48be9ae3e16f0f6a269ff0d256f186dc605f453e42be555e2e644e958c64c2a209a76c408d0d889f5bdcbedb481a74f
6
+ metadata.gz: b426ba9b0c9281bd9fac1e8fb568470eed98ef9aabab6965c61ca16848f67a8252e0f28350ee46ae0dfafef6fe4ebcbd51f9bb7e485b602235c5db2c19a48e67
7
+ data.tar.gz: 4270732de1d8ae39317f94fc374848021e14806205c183e52787f2a243507a55de4d8b211adefd8c0cb1e1b4a1c380172fec3eda6e889d11c2ee0c88ba75bc68
@@ -14,13 +14,13 @@ jobs:
14
14
  strategy:
15
15
  max-parallel: 3
16
16
  matrix:
17
- os: [ubuntu, macos]
18
- ruby-version: [head, 3.0, 2.7, 2.5]
17
+ os: [ubuntu-latest, macos-latest]
18
+ ruby-version: [head, 3.2, 3.1, 3.0, 2.7, 2.5]
19
19
  runs-on: ${{ matrix.os }}-latest
20
20
  steps:
21
- - uses: actions/checkout@v2
21
+ - uses: actions/checkout@v3
22
22
  - uses: ruby/setup-ruby@v1
23
23
  with:
24
24
  ruby-version: ${{ matrix.ruby-version }}
25
- - run: bundle install
25
+ bundler-cache: true
26
26
  - run: bundle exec rake test
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="RubyLiteralArrayInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sterile (1.0.24)
4
+ sterile (1.0.26)
5
5
  nokogiri (>= 1.11.7)
6
6
 
7
7
  GEM
@@ -28,6 +28,8 @@ module Sterile
28
28
  ["(R)", "®"],
29
29
  ['"/"', "”/“"],
30
30
  ["'/'", "’/‘"],
31
+ [/([iI][nN]\s+)\'(\d\d\D)/, "\\1’\\2"],
32
+ [/([iI][nN]\s+)\'(\d\d)$/, "\\1’\\2"],
31
33
  [/\'(\d\d)(?!’|\'|[^’\'\s]+[’\'][\p{P}\p{Z}])([\p{P}\p{Z}])/, "’\\1\\2"],
32
34
  # [/<p>"/, "<p>\\1″"],
33
35
  [/s\'([^a-zA-Z0-9])/, "s’\\1"],
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Sterile
4
- VERSION = "1.0.25"
4
+ VERSION = "1.0.26"
5
5
  end
6
6
 
data/test/test_sterile.rb CHANGED
@@ -86,5 +86,13 @@ class TestSterile < Minitest::Test
86
86
  assert_equal "‘one’/‘two’", Sterile.smart_format("'one'/'two'")
87
87
  end
88
88
 
89
+ def test_number_single_quote
90
+ assert_equal "War in ’24", Sterile.smart_format("War in '24")
91
+ end
92
+
93
+ def test_number_single_quote_in_double_quotes
94
+ assert_equal "“War in ’24”", Sterile.smart_format("\"War in '24\"")
95
+ end
96
+
89
97
  end
90
98
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sterile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.25
4
+ version: 1.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Hogan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-02 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -35,6 +35,7 @@ files:
35
35
  - ".github/workflows/test.yml"
36
36
  - ".gitignore"
37
37
  - ".idea/.gitignore"
38
+ - ".idea/inspectionProfiles/Project_Default.xml"
38
39
  - ".idea/misc.xml"
39
40
  - ".idea/modules.xml"
40
41
  - ".idea/sterile.iml"
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
82
  - !ruby/object:Gem::Version
82
83
  version: '0'
83
84
  requirements: []
84
- rubygems_version: 3.4.10
85
+ rubygems_version: 3.5.3
85
86
  signing_key:
86
87
  specification_version: 4
87
88
  summary: Sterilize your strings! Transliterate, generate slugs, smart format, strip