has_slug 0.2.4 → 0.2.5
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/lib/has_slug.rb +5 -3
- metadata +4 -4
data/lib/has_slug.rb
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
2
|
|
|
3
3
|
begin
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
unicode_lib = RUBY_VERSION >= "1.9" ? 'unicode_utils' : 'unicode'
|
|
5
|
+
require unicode_lib
|
|
6
|
+
|
|
7
|
+
rescue
|
|
8
|
+
puts "Could not find gem: #{unicode_lib}. Install with `gem install #{unicode_lib}` in order to allow unicode normalization"
|
|
7
9
|
end
|
|
8
10
|
|
|
9
11
|
require 'has_slug/slug'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: has_slug
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom-Eric Gerritsen
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-
|
|
12
|
+
date: 2010-02-12 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -56,8 +56,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
57
|
version: "0"
|
|
58
58
|
version:
|
|
59
|
-
requirements:
|
|
60
|
-
|
|
59
|
+
requirements:
|
|
60
|
+
- unicode_utils or unicode gem install
|
|
61
61
|
rubyforge_project:
|
|
62
62
|
rubygems_version: 1.3.5
|
|
63
63
|
signing_key:
|