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 +4 -4
- data/.github/workflows/test.yml +4 -4
- data/.idea/inspectionProfiles/Project_Default.xml +6 -0
- data/Gemfile.lock +1 -1
- data/lib/sterile/data/smart_format_rules.rb +2 -0
- data/lib/sterile/version.rb +1 -1
- data/test/test_sterile.rb +8 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80dc35ba4862f316494b3de4c438279931d258e93c8bb82d8efe61e69706855c
|
4
|
+
data.tar.gz: f3a78cdfd802b5dae8ffb91a838eb931b02328f154dfb4aed6fde64bc0ced030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b426ba9b0c9281bd9fac1e8fb568470eed98ef9aabab6965c61ca16848f67a8252e0f28350ee46ae0dfafef6fe4ebcbd51f9bb7e485b602235c5db2c19a48e67
|
7
|
+
data.tar.gz: 4270732de1d8ae39317f94fc374848021e14806205c183e52787f2a243507a55de4d8b211adefd8c0cb1e1b4a1c380172fec3eda6e889d11c2ee0c88ba75bc68
|
data/.github/workflows/test.yml
CHANGED
@@ -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@
|
21
|
+
- uses: actions/checkout@v3
|
22
22
|
- uses: ruby/setup-ruby@v1
|
23
23
|
with:
|
24
24
|
ruby-version: ${{ matrix.ruby-version }}
|
25
|
-
|
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
@@ -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"],
|
data/lib/sterile/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|