eeepub 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "eeepub"
5
- s.version = "0.7.0"
5
+ s.version = "0.7.1"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["jugyo"]
8
8
  s.email = ["jugyo.org@gmail.com"]
@@ -15,10 +15,10 @@ Gem::Specification.new do |s|
15
15
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
16
  s.require_paths = ["lib"]
17
17
 
18
- s.add_runtime_dependency(%q<zipruby>, ["~> 0.3"])
19
- s.add_runtime_dependency(%q<builder>, ["~> 3.0"])
20
- s.add_development_dependency(%q<rspec>, ["~> 2.0"])
21
- s.add_development_dependency(%q<rr>, ["~> 1.0"])
22
- s.add_development_dependency(%q<simplecov>, ["~> 0.4"])
23
- s.add_development_dependency(%q<nokogiri>, ["~> 1.4"])
18
+ s.add_dependency "builder"
19
+ s.add_dependency "zipruby"
20
+ s.add_development_dependency "rspec"
21
+ s.add_development_dependency "nokogiri"
22
+ s.add_development_dependency "rr"
23
+ s.add_development_dependency "simplecov"
24
24
  end
@@ -97,7 +97,7 @@ module EeePub
97
97
  if File.directory?(path)
98
98
  zip.add_dir(path)
99
99
  else
100
- zip.add_file(path)
100
+ zip.add_file(path, path)
101
101
  end
102
102
  end
103
103
  end
@@ -111,7 +111,11 @@ module EeePub
111
111
  create_epub do
112
112
  buffer = Zip::Archive.open_buffer(Zip::CREATE) do |zip|
113
113
  Dir.glob('**/*').each do |path|
114
- zip.add_buffer(path, path)
114
+ if File.directory?(path)
115
+ zip.add_dir(path)
116
+ else
117
+ zip.add_file(path, path)
118
+ end
115
119
  end
116
120
  end
117
121
 
@@ -43,7 +43,7 @@ describe "EeePub::OCF" do
43
43
 
44
44
  it 'should stream epub' do
45
45
  output = @ocf.render
46
- output.size.should == 370
46
+ output.size.should == 523
47
47
  output.is_binary_data?.should be_true
48
48
  end
49
49
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: eeepub
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.0
5
+ version: 0.7.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo
@@ -10,29 +10,29 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-07 00:00:00 +09:00
13
+ date: 2011-07-30 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: zipruby
17
+ name: builder
18
18
  prerelease: false
19
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
- - - ~>
22
+ - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: "0.3"
24
+ version: "0"
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
- name: builder
28
+ name: zipruby
29
29
  prerelease: false
30
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
- - - ~>
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: "3.0"
35
+ version: "0"
36
36
  type: :runtime
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
@@ -41,42 +41,42 @@ dependencies:
41
41
  requirement: &id003 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
- - - ~>
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: "2.0"
46
+ version: "0"
47
47
  type: :development
48
48
  version_requirements: *id003
49
49
  - !ruby/object:Gem::Dependency
50
- name: rr
50
+ name: nokogiri
51
51
  prerelease: false
52
52
  requirement: &id004 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
- - - ~>
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
- version: "1.0"
57
+ version: "0"
58
58
  type: :development
59
59
  version_requirements: *id004
60
60
  - !ruby/object:Gem::Dependency
61
- name: simplecov
61
+ name: rr
62
62
  prerelease: false
63
63
  requirement: &id005 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
- - - ~>
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: "0.4"
68
+ version: "0"
69
69
  type: :development
70
70
  version_requirements: *id005
71
71
  - !ruby/object:Gem::Dependency
72
- name: nokogiri
72
+ name: simplecov
73
73
  prerelease: false
74
74
  requirement: &id006 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
- - - ~>
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: "1.4"
79
+ version: "0"
80
80
  type: :development
81
81
  version_requirements: *id006
82
82
  description: EeePub is a Ruby ePub generator.
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  requirements: []
137
137
 
138
138
  rubyforge_project:
139
- rubygems_version: 1.6.0
139
+ rubygems_version: 1.6.2
140
140
  signing_key:
141
141
  specification_version: 3
142
142
  summary: ePub generator