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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5771f63d52f488981d32c3a9f57c469c7213ede58c14cb64323311219ea4a3c
4
- data.tar.gz: 72a3368f8ae587325862637100d31bc3d3a9ef048af65f94936afc3d49ec9c5e
3
+ metadata.gz: 7e199ffa7dd3198248bcfce214810e20d2005bdd4ab82cc93704e9c04bc00e2e
4
+ data.tar.gz: a7ad48635544e1baec6467f8d9981834c875f0b5ffde9faacd909088346a3d64
5
5
  SHA512:
6
- metadata.gz: 38a4559e469d498c2e5612847b36bb113dccaf35060b3a59c412b2ed0240c1e91fabb4b12cc8e4d0cc0d183d88dfdade5b25152c6c27f5d529d5e00575d40835
7
- data.tar.gz: a01fc79b62aa7c72fd9a47efbe66fd4612d6625725bfca94464149ec5fba9590b0a35d12887dc390d2a1494c55b4f979864c203c73813b7fcf05ddb7c161a4e8
6
+ metadata.gz: c3d0132d36c53f2013043ddc4b3dfd5f838e035cfd89cf0085a3883ef7febd2d2c8af7468bdbd4a79668526685a772d3bd47c7b07fe086d87acec538c137ddba
7
+ data.tar.gz: fbb6cace28c92b14160716497fadcdb895f067141508160543fe259fd869f54fede04c6c4788db009529ef21ccf8c31d8fccb7c44fa6c0951b2a8e806ad15eeb
@@ -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
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Sterile
4
- VERSION = "1.0.19"
4
+ VERSION = "1.0.20"
5
5
  end
6
6
 
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.19
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: 2020-12-29 00:00:00.000000000 Z
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: []