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.
|
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
|
|
data/test/indexer_utils_test.rb
CHANGED