filerary 0.0.4 → 0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dada2e80e774e32a089e8a3797dbacb0275b4a6
4
- data.tar.gz: ac63271136d1de8303d5a63d7cc6e8d69a9720f6
3
+ metadata.gz: 9c0e71d2319658916f1c7b5280c5a03cfa5d22bc
4
+ data.tar.gz: b35f8e013d049adf3051f29c254f8910df6bc2a8
5
5
  SHA512:
6
- metadata.gz: 104bfc5442ee05c60abbc20112c5e09a5644058a55c3dc471c497e7c3c1a12dfb0ec9a042e688a23a97fbbb932718308e52ce10bdc033302d08b4aafbf5842cd
7
- data.tar.gz: 9d66a9d851a1856a07e3d64af1561669fa3b6d70f1641a05b0cb13d8229248678ca9048b27db89e88ee9ce330d0b2efdf31c4447502a1e4e7bb8b1990e52695a
6
+ metadata.gz: 55687ba581394e327e50e79552077f8d3fd50d3e9f08b7ca8d0b3bcd4abc8a42b07f326387e74131841d16bd3f60a7bca50c4147bcd4f5a55540e553f9f4b2db
7
+ data.tar.gz: 9b1c92c656ac0be51eb7ab7b216bf4e98a36d15252ec43c6c121589933d5e8c463d752e4561b45ac265efcfdacf674a5ed7f70de551c7360527a1a330b989845
@@ -1,3 +1,3 @@
1
1
  module Filerary
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "filerary"
4
4
  require "fileutils"
5
+ require "tmpdir"
5
6
 
6
7
  class FileraryTest < Test::Unit::TestCase
7
8
  include FileraryTestUtils
@@ -38,8 +39,11 @@ class FileraryTest < Test::Unit::TestCase
38
39
 
39
40
  class FilePathTest < self
40
41
  def test_multibyte
41
- path = File.join(@test_fixtures_dir, "マルチバイト.txt")
42
- assert_equal([path], @librarian.collect(path))
42
+ Dir.mktmpdir do |tmpdir|
43
+ path = File.join(tmpdir, "マルチバイト.txt")
44
+ FileUtils.touch(path)
45
+ assert_equal([path], @librarian.collect(path))
46
+ end
43
47
  end
44
48
  end
45
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filerary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-17 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grn_mini
@@ -174,7 +174,6 @@ files:
174
174
  - test/filerary-test-utils.rb
175
175
  - test/fixtures/test-excel.xls
176
176
  - test/fixtures/test-pdf.pdf
177
- - test/fixtures/マルチバイト.txt
178
177
  - test/run-test.rb
179
178
  - test/test-librarian.rb
180
179
  homepage: https://github.com/myokoym/filerary
@@ -207,7 +206,6 @@ test_files:
207
206
  - test/filerary-test-utils.rb
208
207
  - test/fixtures/test-excel.xls
209
208
  - test/fixtures/test-pdf.pdf
210
- - test/fixtures/マルチバイト.txt
211
209
  - test/run-test.rb
212
210
  - test/test-librarian.rb
213
211
  has_rdoc: