string_utils 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +3 -3
- data/lib/string_utils.rb +2 -2
- data/lib/string_utils/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
string_utils (1.0.
|
|
5
|
-
activesupport (
|
|
4
|
+
string_utils (1.0.2)
|
|
5
|
+
activesupport (>= 2.3.5)
|
|
6
6
|
i18n
|
|
7
7
|
|
|
8
8
|
GEM
|
|
@@ -24,7 +24,7 @@ PLATFORMS
|
|
|
24
24
|
ruby
|
|
25
25
|
|
|
26
26
|
DEPENDENCIES
|
|
27
|
-
activesupport (
|
|
27
|
+
activesupport (>= 2.3.5)
|
|
28
28
|
i18n
|
|
29
29
|
rspec (>= 2.0.0)
|
|
30
30
|
string_utils!
|
data/lib/string_utils.rb
CHANGED
|
@@ -118,9 +118,9 @@ module StringUtils
|
|
|
118
118
|
# hooray!
|
|
119
119
|
def mb_charify(text)
|
|
120
120
|
if RUBY_VERSION >= '1.9'
|
|
121
|
-
text
|
|
121
|
+
text.dup
|
|
122
122
|
elsif text.respond_to?(:mb_chars)
|
|
123
|
-
text.mb_chars
|
|
123
|
+
text.frozen? ? text.dup.mb_chars : text.mb_chars
|
|
124
124
|
else
|
|
125
125
|
raise "StringUtils: No unicode support for strings"
|
|
126
126
|
end
|
data/lib/string_utils/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: string_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 1.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Gleb Mazovetskiy
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-12-
|
|
18
|
+
date: 2010-12-13 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|