stringex 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +7 -1
- data/VERSION +1 -1
- data/lib/stringex/localization/conversion_expressions.rb +1 -1
- data/stringex.gemspec +5 -5
- data/test/unit/string_extensions_test.rb +3 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjRmMzU0YzkxYjIwY2FmY2ZhZTg2OWZkMzc5YTA0ZjIxZmMyMGU1Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGVkM2NlYmJhZDg4NTg2NDgyMzQ3ZDg4MWFjMjJhNzk1ZGI1NTIwZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTE4MjZmODY3ZmQwYWI4ZDY1ZmJkMDc0NGYyMDZiZGYxYjBmY2JmMmMwYzlm
|
10
|
+
MDBkODc1MTU5NDlhMDQ4N2RmZTU3YTE4M2FkYmFjZmUyZGZhMzI0MTM4M2Uz
|
11
|
+
NWQzMTEyZGViOWU3MTgwNDM1ODNlZDliNzY3N2NjYjA5NTQwN2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWE0NzNlNTQ1YWNkZDE0YmVkMGZhY2JlMzI2MzE3OWQ2NTAyMDFiNjcyZWVm
|
14
|
+
OWE2ZTMwMWUzMTFlY2M5MDJlNjM4YWFhNzMxNGZhZmJlNTZiNmRkNWZlM2Q2
|
15
|
+
MGVkZjZmYzE1YjFiM2RlMmZkZTZkYzAwMzZlZjZjZjc1ZDJjZjI=
|
data/Gemfile
CHANGED
@@ -14,7 +14,13 @@ group :development do
|
|
14
14
|
puts "Mongoid requires Ruby higher than 1.8.x"
|
15
15
|
end
|
16
16
|
gem "RedCloth", "4.2.9" # Can I state that I really dislike camelcased gem names?
|
17
|
-
gem "sqlite3", "1.3.7"
|
18
17
|
gem "travis-lint", "1.7.0"
|
19
18
|
gem "i18n", "0.6.1"
|
19
|
+
# For non-Jruby...
|
20
|
+
gem "sqlite3", "1.3.7", :platform => [:ruby, :mswin, :mingw]
|
21
|
+
# And for Jruby...
|
22
|
+
platform :jruby do
|
23
|
+
# gem "jdbc-sqlite3"
|
24
|
+
# gem "activerecord-jdbcsqlite3-adapter"
|
25
|
+
end
|
20
26
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Stringex
|
4
4
|
module Localization
|
5
5
|
module ConversionExpressions
|
6
|
-
ABBREVIATION = /(\s|^)([[:alpha:]](\.[[:alpha:]])+(\.?)[[:alpha:]]*(\s|$))/
|
6
|
+
ABBREVIATION = /(\s|\(|^)([[:alpha:]](\.[[:alpha:]])+(\.?)[[:alpha:]]*(\s|\)|$))/
|
7
7
|
|
8
8
|
ACCENTED_HTML_ENTITY = /&([A-Za-z])(grave|acute|circ|tilde|uml|ring|cedil|slash);/
|
9
9
|
|
data/stringex.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "stringex"
|
8
|
-
s.version = "2.1.
|
8
|
+
s.version = "2.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Russell Norris"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-11-13"
|
13
13
|
s.description = "Some [hopefully] useful extensions to Ruby's String class. Stringex is made up of three libraries: ActsAsUrl [permalink solution with better character translation], Unidecoder [Unicode to ASCII transliteration], and StringExtensions [miscellaneous helper methods for the String class]."
|
14
14
|
s.email = "rsl@luckysneaks.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -280,9 +280,9 @@ Gem::Specification.new do |s|
|
|
280
280
|
s.add_development_dependency(%q<jeweler>, ["= 1.8.4"])
|
281
281
|
s.add_development_dependency(%q<mongoid>, ["= 3.1.4"])
|
282
282
|
s.add_development_dependency(%q<RedCloth>, ["= 4.2.9"])
|
283
|
-
s.add_development_dependency(%q<sqlite3>, ["= 1.3.7"])
|
284
283
|
s.add_development_dependency(%q<travis-lint>, ["= 1.7.0"])
|
285
284
|
s.add_development_dependency(%q<i18n>, ["= 0.6.1"])
|
285
|
+
s.add_development_dependency(%q<sqlite3>, ["= 1.3.7"])
|
286
286
|
else
|
287
287
|
s.add_dependency(%q<activerecord>, ["= 3.2.13"])
|
288
288
|
s.add_dependency(%q<dm-core>, ["= 1.2.0"])
|
@@ -292,9 +292,9 @@ Gem::Specification.new do |s|
|
|
292
292
|
s.add_dependency(%q<jeweler>, ["= 1.8.4"])
|
293
293
|
s.add_dependency(%q<mongoid>, ["= 3.1.4"])
|
294
294
|
s.add_dependency(%q<RedCloth>, ["= 4.2.9"])
|
295
|
-
s.add_dependency(%q<sqlite3>, ["= 1.3.7"])
|
296
295
|
s.add_dependency(%q<travis-lint>, ["= 1.7.0"])
|
297
296
|
s.add_dependency(%q<i18n>, ["= 0.6.1"])
|
297
|
+
s.add_dependency(%q<sqlite3>, ["= 1.3.7"])
|
298
298
|
end
|
299
299
|
else
|
300
300
|
s.add_dependency(%q<activerecord>, ["= 3.2.13"])
|
@@ -305,9 +305,9 @@ Gem::Specification.new do |s|
|
|
305
305
|
s.add_dependency(%q<jeweler>, ["= 1.8.4"])
|
306
306
|
s.add_dependency(%q<mongoid>, ["= 3.1.4"])
|
307
307
|
s.add_dependency(%q<RedCloth>, ["= 4.2.9"])
|
308
|
-
s.add_dependency(%q<sqlite3>, ["= 1.3.7"])
|
309
308
|
s.add_dependency(%q<travis-lint>, ["= 1.7.0"])
|
310
309
|
s.add_dependency(%q<i18n>, ["= 0.6.1"])
|
310
|
+
s.add_dependency(%q<sqlite3>, ["= 1.3.7"])
|
311
311
|
end
|
312
312
|
end
|
313
313
|
|
@@ -89,7 +89,9 @@ class StringExtensionsTest < Test::Unit::TestCase
|
|
89
89
|
"Rabbits aren't real" =>
|
90
90
|
"rabbits-arent-real",
|
91
91
|
"R$ isn't R" =>
|
92
|
-
"reais-isnt-r"
|
92
|
+
"reais-isnt-r",
|
93
|
+
"Last Friday Night (T.G.I.F.)" =>
|
94
|
+
"last-friday-night-tgif"
|
93
95
|
}.each do |html, plain|
|
94
96
|
assert_equal plain, html.to_url
|
95
97
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stringex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Norris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -123,47 +123,47 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 4.2.9
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: travis-lint
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
131
|
+
version: 1.7.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
138
|
+
version: 1.7.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: i18n
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.6.1
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.6.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: sqlite3
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 1.3.7
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 1.3.7
|
167
167
|
description: ! 'Some [hopefully] useful extensions to Ruby''s String class. Stringex
|
168
168
|
is made up of three libraries: ActsAsUrl [permalink solution with better character
|
169
169
|
translation], Unidecoder [Unicode to ASCII transliteration], and StringExtensions
|