vitreous_share 0.0.9 → 0.0.11

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.
@@ -24,7 +24,7 @@ module Vitreous
24
24
  def self.to_slug( string )
25
25
  to_title( string ).
26
26
  downcase.
27
- gsub(/[^a-z0-9 -_]/,"").
27
+ gsub(/[^a-z0-9 \-_]/,"").
28
28
  gsub('_', '-').
29
29
  gsub(/[ ]+/,"-")
30
30
  end
@@ -1,5 +1,5 @@
1
1
  module Vitreous
2
2
  module Share
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
@@ -16,6 +16,11 @@ class IndexerUtilsTest < Test::Unit::TestCase
16
16
  'pepe-y-jun',
17
17
  Vitreous::Share::IndexerUtils.to_slug( '001 pepe y juán.txt' )
18
18
  )
19
+
20
+ assert_equal(
21
+ 'pepe-y-jun',
22
+ Vitreous::Share::IndexerUtils.to_slug( '001 ¿pepe y juán?.txt' )
23
+ )
19
24
  end
20
25
 
21
26
  def test_remove_extensions
@@ -35,6 +40,11 @@ class IndexerUtilsTest < Test::Unit::TestCase
35
40
  '/',
36
41
  Vitreous::Share::IndexerUtils.to_link( '/' )
37
42
  )
43
+
44
+ assert_equal(
45
+ '/path-1/path-2/my-file',
46
+ Vitreous::Share::IndexerUtils.to_link( '/01 Path 1/01 Path 2/01 ¿My File?.thumb.jpg' )
47
+ )
38
48
  end
39
49
 
40
50
  def test_grouping
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 9
9
- version: 0.0.9
8
+ - 11
9
+ version: 0.0.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Fernando Guillen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-07-29 00:00:00 +02:00
17
+ date: 2011-07-30 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency