hdfs-viking 0.0.6 → 0.0.7
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/viking/version.rb +1 -1
- data/test/test_dir_class_methods.rb +2 -2
- data/test/test_dir_instance_methods.rb +4 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0125ac4d323305291b7ad46b5a1675df66c73766
|
4
|
+
data.tar.gz: d4b365efcb953d701a075814c3eea2b3f769f444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03b0f836f7127c63efd63707dd4e3dd2fe3780152117796491f1f040886ffe38368bf85f140c1bb8fc32980e80a6251935f60886746f44412b4d2c50d5fcb6a2
|
7
|
+
data.tar.gz: 58cc3f4b39dc9ccb6020c411aaaedeb0e642d381ca69e55e27e65e6dedee653c2d1d58d8210a6062b36c0a79fcfbc55c5f3e0aeefeea5403d5e024ea3f631c24
|
data/Gemfile.lock
CHANGED
data/lib/viking/version.rb
CHANGED
@@ -50,7 +50,7 @@ class TestDirClassMethods < MiniTest::Unit::TestCase
|
|
50
50
|
assert_raises(Errno::ENOENT) { Viking::Dir.delete("#{TMP_DIR}/does-not-exists") }
|
51
51
|
assert_raises(Errno::ENOENT) { Viking::Dir.delete(TEST_FILE_PATH_1) }
|
52
52
|
|
53
|
-
assert [TEST_FILE_1, TEST_FILE_2] == Viking::Dir.entries(TMP_DIR)
|
53
|
+
assert [TEST_FILE_1, TEST_FILE_2].sort == Viking::Dir.entries(TMP_DIR).sort
|
54
54
|
end
|
55
55
|
|
56
56
|
def test_exist?
|
@@ -70,7 +70,7 @@ class TestDirClassMethods < MiniTest::Unit::TestCase
|
|
70
70
|
Viking::Dir.foreach(TMP_DIR) do |file_name|
|
71
71
|
file_names << file_name
|
72
72
|
end
|
73
|
-
assert [TEST_FILE_1, TEST_FILE_2] == file_names
|
73
|
+
assert [TEST_FILE_1, TEST_FILE_2].sort == file_names.sort
|
74
74
|
end
|
75
75
|
|
76
76
|
def test_getwd
|
@@ -37,7 +37,7 @@ class TestDirInstanceMethods < MiniTest::Unit::TestCase
|
|
37
37
|
entries << entry
|
38
38
|
end
|
39
39
|
|
40
|
-
assert [TEST_FILE_1, TEST_FILE_2] == entries
|
40
|
+
assert [TEST_FILE_1, TEST_FILE_2].sort == entries.sort
|
41
41
|
end
|
42
42
|
|
43
43
|
def test_path
|
@@ -48,8 +48,7 @@ class TestDirInstanceMethods < MiniTest::Unit::TestCase
|
|
48
48
|
def test_read
|
49
49
|
d = Viking::Dir.new(TMP_DIR)
|
50
50
|
|
51
|
-
assert TEST_FILE_1 == d.read
|
52
|
-
assert TEST_FILE_2 == d.read
|
51
|
+
assert [TEST_FILE_1, TEST_FILE_2].sort == [d.read, d.read].sort
|
53
52
|
assert d.read.nil?
|
54
53
|
assert d.read.nil?
|
55
54
|
end
|
@@ -57,15 +56,13 @@ class TestDirInstanceMethods < MiniTest::Unit::TestCase
|
|
57
56
|
def test_rewind
|
58
57
|
d = Viking::Dir.new(TMP_DIR)
|
59
58
|
|
60
|
-
assert TEST_FILE_1 == d.read
|
61
|
-
assert TEST_FILE_2 == d.read
|
59
|
+
assert [TEST_FILE_1, TEST_FILE_2].sort == [d.read, d.read]
|
62
60
|
assert d.read.nil?
|
63
61
|
assert d.read.nil?
|
64
62
|
|
65
63
|
d.rewind
|
66
64
|
|
67
|
-
assert TEST_FILE_1 == d.read
|
68
|
-
assert TEST_FILE_2 == d.read
|
65
|
+
assert [TEST_FILE_1, TEST_FILE_2].sort == [d.read, d.read]
|
69
66
|
assert d.read.nil?
|
70
67
|
assert d.read.nil?
|
71
68
|
end
|