sterile 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sterile/smart_format.rb +2 -0
- data/lib/sterile/version.rb +1 -1
- data/sterile.gemspec +1 -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: 7e199ffa7dd3198248bcfce214810e20d2005bdd4ab82cc93704e9c04bc00e2e
|
4
|
+
data.tar.gz: a7ad48635544e1baec6467f8d9981834c875f0b5ffde9faacd909088346a3d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d0132d36c53f2013043ddc4b3dfd5f838e035cfd89cf0085a3883ef7febd2d2c8af7468bdbd4a79668526685a772d3bd47c7b07fe086d87acec538c137ddba
|
7
|
+
data.tar.gz: fbb6cace28c92b14160716497fadcdb895f067141508160543fe259fd869f54fede04c6c4788db009529ef21ccf8c31d8fccb7c44fa6c0951b2a8e806ad15eeb
|
data/lib/sterile/smart_format.rb
CHANGED
@@ -9,6 +9,8 @@ module Sterile
|
|
9
9
|
# q{"He said, 'Away with you, Drake!'"}.smart_format # => “He said, ‘Away with you, Drake!’”
|
10
10
|
#
|
11
11
|
def smart_format(string)
|
12
|
+
string = string.to_s
|
13
|
+
string = string.dup if string.frozen?
|
12
14
|
smart_format_rules.each do |rule|
|
13
15
|
string.gsub! rule[0], rule[1]
|
14
16
|
end
|
data/lib/sterile/version.rb
CHANGED
data/sterile.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ["Patrick Hogan"]
|
11
11
|
s.email = ["pbhogan@gmail.com"]
|
12
12
|
s.homepage = "https://github.com/pbhogan/sterile"
|
13
|
+
s.licenses = ['MIT']
|
13
14
|
s.summary = %q{Sterilize your strings! Transliterate, generate slugs, smart format, strip tags, encode/decode entities and more.}
|
14
15
|
s.description = s.summary
|
15
16
|
|
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.20
|
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: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -57,7 +57,8 @@ files:
|
|
57
57
|
- sterile
|
58
58
|
- sterile.gemspec
|
59
59
|
homepage: https://github.com/pbhogan/sterile
|
60
|
-
licenses:
|
60
|
+
licenses:
|
61
|
+
- MIT
|
61
62
|
metadata: {}
|
62
63
|
post_install_message:
|
63
64
|
rdoc_options: []
|