casket 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe Casket do
4
+
5
+ before(:each) do
6
+ @casket = Casket.new
7
+ end
8
+
9
+ it "should generate package from directory" do
10
+ directory = Dir.new "."
11
+ casket.pack directory.path
12
+ directory.to_a.any? { |file| file =~ /.casket/ }.should == true
13
+ end
14
+
15
+ it "should unpack package to temporary directory" do
16
+ tmpdir = Dir.new(Dir.tmpdir)
17
+ name = Dir.pwd.split(File::SEPARATOR).last
18
+ casket.pack "."
19
+ casket.unpack "#{name}.casket"
20
+ tmpdir.to_a.include?("#{name}.casket").should == true
21
+ casket.close
22
+ end
23
+
24
+ # it "should format actor in nested hash" do
25
+ #
26
+ # end
27
+
28
+ end
@@ -0,0 +1,9 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+
4
+ require 'casket'
5
+ require 'spec'
6
+ require 'spec/autorun'
7
+
8
+ Spec::Runner.configure do |config|
9
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: casket
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
11
+ platform: ruby
12
+ authors:
13
+ - "Pawe\xC5\x82 Placzy\xC5\x84ski"
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-11-15 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: Packaging system for Ruby similar to JAR in Java.
23
+ email: placek@ragnarson.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README.rdoc
30
+ files:
31
+ - .gitignore
32
+ - README.rdoc
33
+ - casket.gemspec
34
+ - bin/casket
35
+ - lib/casket.rb
36
+ - lib/minitar.rb
37
+ - lib/minitar/command.rb
38
+ - spec/casket_spec.rb
39
+ - spec/spec_helper.rb
40
+ has_rdoc: true
41
+ homepage: http://github.com/placek/casket
42
+ licenses: []
43
+
44
+ post_install_message:
45
+ rdoc_options:
46
+ - --charset=UTF-8
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ hash: 3
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
65
+ - 0
66
+ version: "0"
67
+ requirements: []
68
+
69
+ rubyforge_project:
70
+ rubygems_version: 1.3.7
71
+ signing_key:
72
+ specification_version: 3
73
+ summary: Packaging system for Ruby similar to JAR in Java.
74
+ test_files:
75
+ - spec/spec_helper.rb
76
+ - spec/casket_spec.rb