gf-dircat 0.0.3 → 0.0.4

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.
@@ -26,7 +26,7 @@ require 'dircat/dircat.rb'
26
26
  class TC_DirCat < Test::Unit::TestCase
27
27
 
28
28
  def setup
29
- @data_dir = File.join($DIRCAT_HOME, "test", "dircat", "data")
29
+ @data_dir = File.join($DIRCAT_HOME, "test_data", "dircat", "data")
30
30
  @tmp_dir = File.join( @data_dir, "tmp" )
31
31
  end
32
32
 
@@ -76,6 +76,8 @@ class TC_DirCat < Test::Unit::TestCase
76
76
  dircat1_bis = DirCat.loadfromfile( tmp_file )
77
77
  assert_equal( 0, (dircat1 - dircat1_bis).size )
78
78
  assert_equal( 0, (dircat1_bis - dircat1).size )
79
+
80
+ FileUtils.rm( tmp_file )
79
81
  end
80
82
 
81
83
  end
@@ -11,7 +11,7 @@ require 'dircat/cli/dircat_build.rb'
11
11
  class TC_DirCatBuild < Test::Unit::TestCase
12
12
 
13
13
  def setup
14
- @testdata_dirname = File.join( $DIRCAT_HOME, "test", "dircat", "data")
14
+ @testdata_dirname = File.join( $DIRCAT_HOME, "test_data", "dircat", "data")
15
15
  @dir1_dirname = File.join( @testdata_dirname, "dir1" )
16
16
  @dir2_dirname = File.join( @testdata_dirname, "dir2" )
17
17
  @certified_output_dirname = File.join( @testdata_dirname, "certified_output" )
@@ -36,6 +36,8 @@ class TC_DirCatBuild < Test::Unit::TestCase
36
36
 
37
37
  assert_equal( 0, (cat_result - cat_expect).size )
38
38
  assert_equal( 0, (cat_expect - cat_result).size )
39
+
40
+ FileUtils.rm(result_filename)
39
41
  end
40
42
 
41
43
  end
@@ -0,0 +1,20 @@
1
+ --- !ruby/object:DirCatSer
2
+ table:
3
+ :ctime: 2009-05-22T13:09:03+02:00
4
+ :entries:
5
+ - !ruby/object:EntrySer
6
+ table:
7
+ :md5: 60b725f10c9c85c70d97880dfe8191b3
8
+ :size: 2
9
+ :name: file1.txt
10
+ :mtime: 2009-05-19 20:40:00 +02:00
11
+ :path: .
12
+ - !ruby/object:EntrySer
13
+ table:
14
+ :md5: 4124bc0a9335c27f086f24ba207a4912
15
+ :size: 2
16
+ :name: file3.txt
17
+ :mtime: 2009-05-19 20:40:00 +02:00
18
+ :path: subdir
19
+ :dirname: /media/Interzone/GioPrj/projects.git/dircat/test/dircat/data/dir1
20
+ :version: 0.1
@@ -0,0 +1,27 @@
1
+ --- !ruby/object:DirCatSer
2
+ table:
3
+ :ctime: !timestamp 2006-12-27T16:21:43+0100
4
+ :version: 0.1
5
+ :entries:
6
+ - !ruby/object:EntrySer
7
+ table:
8
+ :mtime: 2006-12-16 10:39:57 +01:00
9
+ :path: subdir
10
+ :name: file3.txt
11
+ :size: 2
12
+ :md5: 4124bc0a9335c27f086f24ba207a4912
13
+ - !ruby/object:EntrySer
14
+ table:
15
+ :mtime: 2006-12-16 10:39:57 +01:00
16
+ :path: .
17
+ :name: file2.txt
18
+ :size: 3
19
+ :md5: c5053d4da03789bfbc4bee760fade936
20
+ - !ruby/object:EntrySer
21
+ table:
22
+ :mtime: 2006-12-16 10:39:57 +01:00
23
+ :path: .
24
+ :name: file1.txt
25
+ :size: 3
26
+ :md5: 933222b19ff3e7ea5f65517ea1f7d57e
27
+ :dirname: C:/prj/dircat/test/data/dir2
@@ -0,0 +1 @@
1
+ a
@@ -0,0 +1 @@
1
+ a
@@ -0,0 +1 @@
1
+ b
@@ -0,0 +1 @@
1
+ a
@@ -0,0 +1 @@
1
+ This file exists so git create this directory
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gf-dircat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - gf
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-23 00:00:00 -07:00
12
+ date: 2009-05-24 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -41,10 +41,20 @@ files:
41
41
  - lib/dircat/cli/dircat_cmp.rb
42
42
  - lib/dircat/cli/dircat_query.rb
43
43
  - lib/dircat/dircat.rb
44
+ - test_data/dircat/data/certified_output/dircat1.yaml
45
+ - test_data/dircat/data/certified_output/dircat2.yaml
46
+ - test_data/dircat/data/dir1/file1.txt
47
+ - test_data/dircat/data/dir1/subdir/file3.txt
48
+ - test_data/dircat/data/dir2/file1.txt
49
+ - test_data/dircat/data/dir2/file2.txt
50
+ - test_data/dircat/data/dir2/subdir/file3.txt
51
+ - test_data/dircat/data/dir3/file1.txt
52
+ - test_data/dircat/data/dir3/subdir/file1.txt
53
+ - test_data/dircat/data/tmp/dummy.txt
44
54
  - LICENSE
45
55
  - README.rdoc
46
56
  has_rdoc: true
47
- homepage: http://github.com/gf/tree_visitor
57
+ homepage: http://github.com/gf/dircat
48
58
  post_install_message:
49
59
  rdoc_options:
50
60
  - --charset=UTF-8