sterile 1.0.23 → 1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/.gitignore +8 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/sterile.iml +15 -0
- data/.idea/vcs.xml +6 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +7 -9
- data/lib/sterile/data/smart_format_rules.rb +1 -1
- data/lib/sterile/version.rb +1 -1
- data/test/test_helper.rb +2 -2
- data/test/test_sterile.rb +9 -0
- metadata +8 -5
- data/.ruby-gemset +0 -2
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6609d623434f38f1a8c5fc7955679b834150bfc370855be55bcc74767bed32a6
|
4
|
+
data.tar.gz: eb41eeb0a06250a0113eb92f8b49568db1a52c57e9f125a0105b279d3c50ccb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8002656ad9b4b7006ee57fe64e69c0cd71995dfe764f7ac6a12ae2f1d5d0a8f3244245b6ec80d46307d5f007e1aa8cf5269102433490fb326271b11d566da4a2
|
7
|
+
data.tar.gz: 4b0748aaa375dc18f7150818feb90d81b591ed93cc13b93df05cc3bcdf4074683df240d4ef35de3963bf3a1b7908c5242517519b920ee5311e681c45ac6abd03
|
data/.idea/.gitignore
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
data/.idea/sterile.iml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
4
|
+
<shared />
|
5
|
+
</component>
|
6
|
+
<component name="NewModuleRootManager">
|
7
|
+
<content url="file://$MODULE_DIR$">
|
8
|
+
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
|
9
|
+
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
10
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
11
|
+
</content>
|
12
|
+
<orderEntry type="inheritedJdk" />
|
13
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
14
|
+
</component>
|
15
|
+
</module>
|
data/.idea/vcs.xml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sterile (1.0.
|
4
|
+
sterile (1.0.24)
|
5
5
|
nokogiri (>= 1.11.7)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
nokogiri (1.11.7)
|
13
|
-
mini_portile2 (~> 2.5.0)
|
10
|
+
minitest (5.18.0)
|
11
|
+
nokogiri (1.14.3-arm64-darwin)
|
14
12
|
racc (~> 1.4)
|
15
|
-
racc (1.
|
16
|
-
rake (13.0.
|
13
|
+
racc (1.6.2)
|
14
|
+
rake (13.0.6)
|
17
15
|
|
18
16
|
PLATFORMS
|
19
|
-
|
17
|
+
arm64-darwin-22
|
20
18
|
|
21
19
|
DEPENDENCIES
|
22
20
|
minitest
|
@@ -24,4 +22,4 @@ DEPENDENCIES
|
|
24
22
|
sterile!
|
25
23
|
|
26
24
|
BUNDLED WITH
|
27
|
-
2.
|
25
|
+
2.4.6
|
data/lib/sterile/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "minitest/autorun"
|
2
|
+
require "sterile"
|
data/test/test_sterile.rb
CHANGED
@@ -45,6 +45,15 @@ class TestSterile < Minitest::Test
|
|
45
45
|
assert_equal "“He said, ‘Away, Drake!’”", Sterile.smart_format(s)
|
46
46
|
end
|
47
47
|
|
48
|
+
def test_smart_format_times
|
49
|
+
assert_equal "1×1", Sterile.smart_format("1x1")
|
50
|
+
assert_equal "0×1", Sterile.smart_format("0x1")
|
51
|
+
assert_equal "1×0", Sterile.smart_format("1x0")
|
52
|
+
assert_equal "12×21", Sterile.smart_format("12x21")
|
53
|
+
assert_equal "01x1", Sterile.smart_format("01x1")
|
54
|
+
assert_equal "1x01", Sterile.smart_format("1x01")
|
55
|
+
end
|
56
|
+
|
48
57
|
def test_smart_format_tags
|
49
58
|
# ?
|
50
59
|
end
|
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.24
|
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: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -34,8 +34,11 @@ extra_rdoc_files: []
|
|
34
34
|
files:
|
35
35
|
- ".github/workflows/test.yml"
|
36
36
|
- ".gitignore"
|
37
|
-
- ".
|
38
|
-
- ".
|
37
|
+
- ".idea/.gitignore"
|
38
|
+
- ".idea/misc.xml"
|
39
|
+
- ".idea/modules.xml"
|
40
|
+
- ".idea/sterile.iml"
|
41
|
+
- ".idea/vcs.xml"
|
39
42
|
- ".yardopts"
|
40
43
|
- Gemfile
|
41
44
|
- Gemfile.lock
|
@@ -78,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
81
|
- !ruby/object:Gem::Version
|
79
82
|
version: '0'
|
80
83
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
84
|
+
rubygems_version: 3.4.6
|
82
85
|
signing_key:
|
83
86
|
specification_version: 4
|
84
87
|
summary: Sterilize your strings! Transliterate, generate slugs, smart format, strip
|
data/.ruby-gemset
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.7.2
|