[DRE-commits] [tdiary] 01/04: Port to ruby-fastimage, replacing ruby-imagesize

zeha at debian.org zeha at debian.org
Sat Jun 27 23:52:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

zeha pushed a commit to branch master-3.2
in repository tdiary.

commit 27e3a6ebaad970adc8d17bc28fa464cf381b5e24
Author: Christian Hofstaedtler <zeha at debian.org>
Date:   Sun Jun 28 01:40:35 2015 +0200

    Port to ruby-fastimage, replacing ruby-imagesize
---
 debian/patches/05_fastimage.patch | 17 +++++++++++++++++
 debian/patches/series             |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/05_fastimage.patch b/debian/patches/05_fastimage.patch
new file mode 100644
index 0000000..71e34e2
--- /dev/null
+++ b/debian/patches/05_fastimage.patch
@@ -0,0 +1,17 @@
+diff --git a/misc/plugin/image.rb b/misc/plugin/image.rb
+index ef8d941..2845e84 100644
+--- a/misc/plugin/image.rb
++++ b/misc/plugin/image.rb
+@@ -138,9 +138,9 @@ end
+ #
+ 
+ def image_info( f )
+-	require 'image_size'
+-	info = ImageSize::new( f.read )
+-	[info.get_type.downcase.sub( /jpeg/, 'jpg' ), info.get_size].flatten
++	require 'fastimage'
++	info = FastImage.new( f )
++	[info.type.to_s.downcase.sub( /jpeg/, 'jpg' ), info.size].flatten
+ end
+ 
+ def image_ext
diff --git a/debian/patches/series b/debian/patches/series
index 201a30a..e799785 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+05_fastimage.patch
 10_core.patch
 020_runnable_tdiary_convert2

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/tdiary.git



More information about the Pkg-ruby-extras-commits mailing list