vitreous_share 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use 1.8.7@vitreous_share
1
+ rvm use 1.9.2@vitreous_share
@@ -26,7 +26,7 @@ module Vitreous
26
26
  'uri' => uri( e.path ),
27
27
  'type' => e.directory? ? 'directory' : 'file',
28
28
  'elements' => e.directory? ? tree( e.path ) : [],
29
- 'content' => CommonStructure.txt?( e.path ) ? @session.download( e.path ) : nil
29
+ 'content' => CommonStructure.txt?( e.path ) ? @session.download( e.path ).force_encoding('utf-8') : nil
30
30
  }
31
31
  end
32
32
  end
@@ -13,7 +13,7 @@ module Vitreous
13
13
  'uri' => uri( path ),
14
14
  'type' => File.directory?( path ) ? 'directory' : 'file',
15
15
  'elements' => File.directory?( path ) ? tree( path ) : [],
16
- 'content' => CommonStructure.txt?( path ) ? File.read( path ) : nil
16
+ 'content' => CommonStructure.txt?( path ) ? File.read( path ).force_encoding('utf-8') : nil
17
17
  }
18
18
  end
19
19
 
@@ -1,5 +1,5 @@
1
1
  module Vitreous
2
2
  module Share
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  # encoding: UTF-8
2
+
2
3
  require File.expand_path( "#{File.dirname(__FILE__)}/test_helper" )
3
4
 
4
5
  class IndexerUtilsTest < Test::Unit::TestCase
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Fernando Guillen