Skip to content

Commit 25348cf

Browse files
committed
Re-added missing manifest reader to ROBundle::File
1 parent f0eecd2 commit 25348cf

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

Changes.rdoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
= Changes log for the RO Bundle Ruby Gem
22

3+
== Version 0.2.3
4+
5+
* Re-added missing `manifest` reader to ROBundle::File.
6+
37
== Version 0.2.2
48

59
* Update ucf dependency to fix rubyzip security vulnerability.

lib/ro-bundle/file.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class File < UCF::File
2626

2727
private_class_method :new
2828

29+
attr_reader :manifest
30+
2931
# :stopdoc:
3032
MIMETYPE = "application/vnd.wf4ever.robundle+zip"
3133

lib/ro-bundle/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
#
1010
module ROBundle
1111
# The version number of this library as a String.
12-
VERSION = "0.2.2"
12+
VERSION = "0.2.3"
1313
end

test/tc_create.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,18 @@ def test_add_history
185185
end
186186
end
187187

188+
def test_get_manifest
189+
Dir.mktmpdir do |dir|
190+
filename = File.join(dir, "test.bundle")
191+
192+
assert_nothing_raised do
193+
ROBundle::File.create(filename) do |b|
194+
assert_nothing_raised do
195+
b.manifest
196+
end
197+
end
198+
end
199+
end
200+
end
201+
188202
end

0 commit comments

Comments
 (0)