slugify 1.0.4 → 1.0.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/README CHANGED
@@ -2,4 +2,17 @@ A slugifier that converts utf-8 latin characters to their ascii counterpart.
2
2
  All non-recognized characters are removed, only lowercase alfanumerical characters
3
3
  and dashes are left. Also has an option to strip away starting, ending and double dashes.
4
4
 
5
- Conversion is based on http://en.wikipedia.org/wiki/Latin_characters_in_Unicode
5
+ Conversion is based on http://en.wikipedia.org/wiki/Latin_characters_in_Unicode
6
+
7
+ To use, just install it
8
+
9
+ gem install slugify
10
+
11
+ require it
12
+
13
+ require 'slugify'
14
+
15
+ and use it
16
+
17
+ "test test".slugify
18
+
@@ -1,13 +1,10 @@
1
- # We need utf-8 support
1
+ # encoding: utf-8
2
2
  if RUBY_VERSION < '1.9'
3
3
  $KCODE='u'
4
- else
5
- Encoding.default_external = Encoding::UTF_8
6
- Encoding.default_internal = Encoding::UTF_8
7
4
  end
8
5
 
9
6
  # Loading string extensions
10
- require 'slugify_string'
7
+ require File.dirname(__FILE__) + '/slugify_string'
11
8
 
12
9
  class Slugify
13
10
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'test/unit'
2
3
  require File.dirname(__FILE__) + '/../lib/slugify'
3
4
 
@@ -1,5 +1,6 @@
1
+ # Encoding: utf-8
1
2
  require 'test/unit'
2
- require File.dirname(__FILE__) + "/../lib/slugify_string"
3
+ require File.dirname(__FILE__) + "/../lib/slugify"
3
4
 
4
5
  class StringSlugifyTest < Test::Unit::TestCase
5
6
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slugify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ hash: 29
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefaan Colman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-23 00:00:00 +02:00
18
+ date: 2011-10-26 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -28,10 +28,10 @@ extensions: []
28
28
  extra_rdoc_files: []
29
29
 
30
30
  files:
31
- - lib/slugify_string.rb
32
31
  - lib/slugify.rb
33
- - tests/slugify_test.rb
32
+ - lib/slugify_string.rb
34
33
  - tests/string_slugify_test.rb
34
+ - tests/slugify_test.rb
35
35
  - README
36
36
  has_rdoc: true
37
37
  homepage:
@@ -63,10 +63,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements: []
64
64
 
65
65
  rubyforge_project:
66
- rubygems_version: 1.3.7
66
+ rubygems_version: 1.5.2
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: Adds String#slugify method
70
70
  test_files:
71
- - tests/slugify_test.rb
72
71
  - tests/string_slugify_test.rb
72
+ - tests/slugify_test.rb