debian/0000755000000000000000000000000012153626274007176 5ustar debian/rules0000755000000000000000000000125512153626233010254 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby # need to start an mysqld instance to run the tests override_dh_auto_install: chmod +x debian/start_mysqld_and_auto_install.sh debian/start_mysqld_and_auto_install.sh override_dh_installchangelogs: dh_installchangelogs History.txt debian/copyright0000644000000000000000000000267712140026412011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: carrierwave Source: http://rubygems.org/gems/carrierwave Files: * Copyright: 2008-2013 Jonas Nicklas License: Expat Files: lib/carrierwave/compatibility/paperclip.rb Copyright: 2008 Jon Yurek and thoughtbot, inc. License: Expat Files: debian/* Copyright: 2013 Praveen Arimbrathodiyil License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/compat0000644000000000000000000000000212140026251010355 0ustar 7 debian/patches/0000755000000000000000000000000012153625370010621 5ustar debian/patches/fix-for-minimagick3.6.patch0000644000000000000000000000277212153625346015564 0ustar From 992e81e841b0a7a1f1b418fb6559e005b19af1b4 Mon Sep 17 00:00:00 2001 From: Jason Woodward Date: Wed, 22 May 2013 13:31:46 -0400 Subject: [PATCH] update tests to match changes in MiniMagick v3.6.0 committed in 26e955d9854f9acbf7eb809dce968156de09780a --- carrierwave.gemspec | 2 +- spec/processing/mini_magick_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/carrierwave.gemspec b/carrierwave.gemspec index f8662b1..197addc 100644 --- a/carrierwave.gemspec +++ b/carrierwave.gemspec @@ -35,6 +35,6 @@ Gem::Specification.new do |s| s.add_development_dependency "sham_rack" s.add_development_dependency "timecop" s.add_development_dependency "fog", ">= 1.3.1" - s.add_development_dependency "mini_magick" + s.add_development_dependency "mini_magick", ">= 3.6.0" s.add_development_dependency "rmagick" end diff --git a/spec/processing/mini_magick_spec.rb b/spec/processing/mini_magick_spec.rb index ca50ccd..0c3833b 100644 --- a/spec/processing/mini_magick_spec.rb +++ b/spec/processing/mini_magick_spec.rb @@ -53,7 +53,7 @@ @instance.resize_and_pad(200, 200) image = ::MiniMagick::Image.open(@instance.current_path) x, y = 0, 0 - color = image.run_command("convert", "#{image.escaped_path}[1x1+#{x}+#{y}]", "-depth 8", "txt:").split("\n")[1] + color = image.run_command("convert", "#{image.path}[1x1+#{x}+#{y}]", "-depth", "8", "txt:").split("\n")[1] color.should include('#FFFFFF') end -- 1.8.1.6 debian/patches/remove-rubygems-require.patch0000644000000000000000000000070612140026251016434 0ustar Description: do not require explicitly rubygems in tests Author: Praveen Arimbrathodiyil Forwarded: no Last-Update: 2013-05-01 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,9 @@ # encoding: utf-8 -require 'rubygems' -require 'bundler/setup' +# We'll add dependencies in debian/control +# so rubygems and bundler not required +# require 'rubygems' +# require 'bundler/setup' require 'tempfile' require 'time' debian/patches/fix-download-test.patch0000644000000000000000000000150212140026251015175 0ustar From 048374463dce588b9841f0b6d07824c957975dae Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Fri, 29 Mar 2013 10:47:44 +0900 Subject: [PATCH] fix broken spec: fixed message of CarrierWave::DownloadError when 404 not found --- spec/uploader/download_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/spec/uploader/download_spec.rb +++ b/spec/uploader/download_spec.rb @@ -105,7 +105,7 @@ it 'should not obscure original exception message' do expect { @uploader.download!('http://www.example.com/missing.jpg') - }.to raise_error(CarrierWave::DownloadError, 'could not download file: 404 ') + }.to raise_error(CarrierWave::DownloadError, 'could not download file: 404 Not Found') end describe '#download! with an extension_white_list' do debian/patches/series0000644000000000000000000000012212153622772012034 0ustar remove-rubygems-require.patch fix-download-test.patch fix-for-minimagick3.6.patch debian/start_mysqld_and_auto_install.sh0000755000000000000000000000247712140026251015656 0ustar #!/bin/sh # # start_mysqld_and_auto_install.sh - starts an instance of mysqld before # auto_installing and running do_mysql's test suite. It is inspired by # debian/test_mysql.sh from libdbi-drivers source package. set -e MYTEMP_DIR=`mktemp -d` ME=`whoami` export MYSQL_UNIX_PORT=${MYTEMP_DIR}/mysql.sock DO_MYSQL_USER=root DO_MYSQL_PASS= DO_MYSQL_DBNAME=carrierwave_test DO_MYSQL_DATABASE=/${DO_MYSQL_DBNAME} mysql_install_db --no-defaults --datadir=${MYTEMP_DIR} --force --skip-name-resolve --user=${DO_MYSQL_USER} /usr/sbin/mysqld --no-defaults --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} --datadir=${MYTEMP_DIR} --skip-networking & echo -n pinging mysqld. attempts=0 while ! /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} ping ; do sleep 3 attempts=$((attempts+1)) if [ ${attempts} -gt 10 ] ; then echo "skipping test, mysql server could not be contacted after 30 seconds" exit 0 fi done mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE ${DO_MYSQL_DBNAME};" mysql --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES ON ${DO_MYSQL_DBNAME}.* TO '${DO_MYSQL_USER}'@'localhost' IDENTIFIED BY '${DO_MYSQL_PASS}';" dh_auto_install mysql --socket=${MYSQL_UNIX_PORT} --execute "DROP DATABASE ${DO_MYSQL_DBNAME};" /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} shutdown rm -rf ${MYTEMP_DIR} debian/ruby-tests.rake0000644000000000000000000000022312140026251012141 0ustar require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = './spec/**/*_spec.rb' end task :default => :spec debian/changelog0000644000000000000000000000100712153626274011046 0ustar ruby-carrierwave (0.8.0-2) unstable; urgency=low * Upload to unstable (ruby-sham-rack is now available) * Make ruby-mini-magick dependency (>=3.6) * Upply upstream patch for fixing tests for mini_magick 3.6 * Install History.txt as upstream changelog -- Praveen Arimbrathodiyil Mon, 03 Jun 2013 20:56:37 +0530 ruby-carrierwave (0.8.0-1) experimental; urgency=low * Initial release (Closes: #706483) -- Praveen Arimbrathodiyil Fri, 26 Apr 2013 21:38:24 +0530 debian/control0000644000000000000000000000304112153625421010570 0ustar Source: ruby-carrierwave Maintainer: Debian Ruby Extras Maintainers Uploaders: Praveen Arimbrathodiyil Section: ruby Priority: optional Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-activemodel-3.2, ruby-activesupport (>= 2:3.2~), ruby-activerecord (>=2:3.2~), rake, ruby-rspec (>= 2.12~), ruby-rmagick, ruby-timecop, ruby-mini-magick (>= 3.6.0), cucumber, ruby-fog, ruby-sham-rack, mysql-server, ruby-mysql2, ruby-json, ghostscript Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/?p=pkg-ruby-extras/ruby-carrierwave.git;a=summary Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-carrierwave.git Homepage: https://github.com/jnicklas/carrierwave XS-Ruby-Versions: all Package: ruby-carrierwave Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-activemodel-3.2, ruby-activesupport Description: Ruby file upload library Upload files in your Ruby applications, map them to a range of ORMs, store them on different backends. . This library provides a simple and extremely flexible way to upload files from Ruby applications. It works well with Rack based web applications, such as Ruby on Rails. debian/ruby-carrierwave.docs0000644000000000000000000000001212140026251013313 0ustar README.md debian/watch0000644000000000000000000000015312140026251010207 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/carrierwave .*/carrierwave-(.*).tar.gz debian/source/0000755000000000000000000000000012140026512010457 5ustar debian/source/format0000644000000000000000000000001412140026251011665 0ustar 3.0 (quilt)