debian/0000755000000000000000000000000012162606550007171 5ustar debian/ruby-tests.rb0000644000000000000000000000013612162606550011637 0ustar $: << 'test' << 'lib' Dir['test/**/*_test.rb'].each { |file| require File.expand_path(file) } debian/patches/0000755000000000000000000000000012162606550010620 5ustar debian/patches/series0000644000000000000000000000007712162606550012041 0ustar 0002-StringIO-isn-t-automatically-required-in-ruby-1.9.1.patch debian/patches/0002-StringIO-isn-t-automatically-required-in-ruby-1.9.1.patch0000644000000000000000000000114012162606550023455 0ustar From 20ed80c3ad27760265e171a02afe4b50ce13eb17 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 5 Dec 2009 16:45:11 -0500 Subject: [PATCH 2/2] StringIO isn't automatically required in ruby 1.9.1 --- lib/fakefs/safe.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/fakefs/safe.rb b/lib/fakefs/safe.rb index 2413598..eaa017f 100644 --- a/lib/fakefs/safe.rb +++ b/lib/fakefs/safe.rb @@ -1,5 +1,6 @@ require 'fileutils' require 'pathname' +require 'stringio' require 'fakefs/base' require 'fakefs/fake/file' require 'fakefs/fake/dir' -- 1.7.1 debian/patches/0001-Fix-a-test-for-ruby-1.9.1-question-mark-must-end-the.patch0000644000000000000000000000137212162606550023457 0ustar From 840d940957548e466c4777fbf686704468d6b3ed Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 8 Nov 2009 13:23:31 -0500 Subject: [PATCH 1/2] Fix a test for ruby 1.9.1 (question mark *must* end the method in 1.9.1?) --- test/fakefs_test.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/fakefs_test.rb b/test/fakefs_test.rb index af6aa93..0cdf3ac 100644 --- a/test/fakefs_test.rb +++ b/test/fakefs_test.rb @@ -288,7 +288,7 @@ class FakeFSTest < Test::Unit::TestCase assert_nil File.size?("/path/to/other.txt") end - def test_can_check_size?_of_empty_file + def test_can_check_size_of_empty_file path = '/path/to/file.txt' File.open(path, 'w') do |f| f << '' -- 1.7.1 debian/source/0000755000000000000000000000000012162606550010471 5ustar debian/source/format0000644000000000000000000000001412162606550011677 0ustar 3.0 (quilt) debian/ruby-fakefs.docs0000644000000000000000000000002012162606550012251 0ustar README.markdown debian/compat0000644000000000000000000000000212162606550010367 0ustar 7 debian/copyright0000644000000000000000000001343212162606550011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fakefs Source: http://github.com/defunkt/fakefs Files: * Copyright: © 2009-2013 Chris Wanstrath License: MIT Files: lib/fakefs/pathname.rb Copyright: Tanaka Akira Gavin Sinclair License: Ruby + GPL-2 Comment: Seems to incorporate from the Ruby MRI 1.9.2, only acknowledges authors with no further information. Files: debian/* Copyright: © 2010 Tobias Grimm © 2011-2013 Gunnar Wolf License: GPL-2+ License: MIT 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. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; under version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: Ruby Ruby is copyrighted free software by Yukihiro Matsumoto . You can redistribute it and/or modify it under either the terms of the GPL version 2 (see the file GPL), or the conditions below: . 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. . 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: . a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. . b) use the modified software only within your corporation or organization. . c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 3. You may distribute the software in object code or binary form, provided that you do at least ONE of the following: . a) distribute the binaries and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. . b) accompany the distribution with the machine-readable source of the software. . c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 4. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the author, so that they are not under these terms. . For the list of those files and their copying conditions, see the file LEGAL. . 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. . 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. debian/changelog0000644000000000000000000000222012162606550011037 0ustar ruby-fakefs (0.4.2-2) unstable; urgency=low * Missed dropping the depends/provides/conflicts lines regarding the transitional binary packages — Drop them now. -- Gunnar Wolf Wed, 26 Jun 2013 10:47:55 -0500 ruby-fakefs (0.4.2-1) unstable; urgency=low * New upstream version * Standards-version 3.9.2 → 3.9.4 (no changes needed) * Drop transitional binary packages -- Gunnar Wolf Wed, 26 Jun 2013 09:53:27 -0500 ruby-fakefs (0.4.0-1) unstable; urgency=low * Renamed/repackaged following pkg-ruby-extras' group policies * New upstream version * Added myself as an uploader -- Gunnar Wolf Tue, 22 Nov 2011 18:19:23 -0600 libfakefs-ruby (0.2.1-2) unstable; urgency=low * Switched to new gemwatch location * Load tests with absolute path - Ruby 1.9.2 doesn't include '.' in it's load path anymore (Closes: #593031) * Standards-Version: 3.9.1 -- Tobias Grimm Sun, 15 Aug 2010 22:40:27 +0200 libfakefs-ruby (0.2.1-1) unstable; urgency=low * Initial release (Closes: #581747) -- Tobias Grimm Sat, 15 May 2010 14:03:48 +0200 debian/rules0000755000000000000000000000103312162606550010246 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 export DH_RUBY_IGNORE_TESTS=ruby1.9.1 # See https://github.com/defunkt/fakefs/issues/110 # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/watch0000644000000000000000000000014112162606550010216 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/fakefs .*/fakefs-(.*).tar.gz debian/control0000644000000000000000000000174612162606550010604 0ustar Source: ruby-fakefs Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Gunnar Wolf , Tobias Grimm Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.11~) Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-fakefs.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-fakefs.git;a=summary Homepage: http://github.com/defunkt/fakefs XS-Ruby-Versions: all Package: ruby-fakefs Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Fake file system to be used in unit tests FakeFS allows you to unit-test file system calls without actually touching the file system. File, Dir and FileUtils calls are redirected to a fake file system without requiring to use any mocking library thus making it faster and easier to test file system calls.