1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Miguel Landaeta <nomadium@debian.org>
Date: Fri, 03 Jul 2015 11:53:58 -0300
Subject: Use rubyzip 1.0 APIs for tests
Forwarded: no
diff --git a/tests/requests/lambda/helper.rb b/tests/requests/lambda/helper.rb
index 3b0dfc9..733714c 100644
--- a/tests/requests/lambda/helper.rb
+++ b/tests/requests/lambda/helper.rb
@@ -1,7 +1,7 @@
class AWS
class Lambda
module Formats
- require 'zip/zip'
+ require 'zip'
GET_FUNCTION_CONFIGURATION = {
'CodeSize' => Integer,
@@ -65,7 +65,7 @@ class AWS
DELETE_EVENT_SOURCE_MAPPING = GET_EVENT_SOURCE_MAPPING
def self.zip(data, filename='index.js')
- data_io = Zip::ZipOutputStream.write_buffer do |zio|
+ data_io = Zip::OutputStream.write_buffer do |zio|
zio.put_next_entry(filename)
zio.write(data)
end
|