debian/0000755000000000000000000000000012201544231007160 5ustar debian/source/0000755000000000000000000000000012201544231010460 5ustar debian/source/format0000644000000000000000000000001412201544231011666 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000001270512201544231011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fast_gettext Source: https://github.com/grosser/fast_gettext Files: * Copyright: Michael Grosser License: Expat Files: lib/fast_gettext/vendor/iconv.rb Copyright: 2004-2007, Masao Mutoh License: Ruby or GPL-2 Files: lib/fast_gettext/vendor/mofile.rb Copyright: 2003-2008, Masao Mutoh 2002, Masahiro Sakai , Masao Mutoh 2001, Masahiro Sakai License: Ruby or GPL-2 Files: lib/fast_gettext/vendor/poparser.rb Copyright: 2003-2009, Masao Mutoh License: Ruby or GPL-2 Files: lib/fast_gettext/vendor/string.rb Copyright: 2005-2006, Masao Mutoh License: Ruby or GPL-2 Files: debian/* Copyright: 2011, Dmitry Borodaenko License: GPL-2+ 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. 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 (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. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. License: GPL-2 The files hereby included are free software; you can distribute them under the terms of the GNU General Public License as published by the Free Software Foundation; under version 2 of the License as published in June 1991. . 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+ The files hereby included are 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. . 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'. debian/ruby-fast-gettext.examples0000644000000000000000000000001312201544231014310 0ustar examples/* debian/changelog0000644000000000000000000000470612201544231011041 0ustar ruby-fast-gettext (0.7.1-1) unstable; urgency=low [ Dmitry Borodaenko ] * New upstream release. * Standards-Version upgraded to 3.9.4 (no changes). [ Cédric Boutillier ] * debian/control: remove obsolete DM-Upload-Allowed flag. * use canonical URI in Vcs-* fields. * debian/copyright: use DEP5 copyright-format/1.0 official URL for Format field. -- Dmitry Borodaenko Sat, 10 Aug 2013 15:59:01 -0700 ruby-fast-gettext (0.6.8-1) unstable; urgency=low * Team upload. * New upstream release. * debian/watch: changed to use gemwatch * Bump build dependency on gem2deb to >= 0.3.0~ * debian/patches/0001-fix-rspec-requires.patch: refresh * debian/patches/0003-set-default-external-encoding-in-specs-to- utf8.patch: refreshed * debian/ruby-tests.rb: Re-enable tests * added build dependency on ruby-i18n, needed to run tests * added debian/patches/fix-tests-with-ruby-calls.patch - do not run ruby under bundler -- Antonio Terceiro Sat, 30 Jun 2012 11:42:51 -0300 ruby-fast-gettext (0.6.7-1) unstable; urgency=low * New upstream version. * Upstream changed license from public domain to MIT (Expat). * Another rearranging of unit tests. -- Dmitry Borodaenko Sat, 12 May 2012 14:22:20 +0300 ruby-fast-gettext (0.6.6-1) unstable; urgency=low * New upstream version. * Standards-Version upgraded to 3.9.3. -- Dmitry Borodaenko Mon, 09 Apr 2012 17:28:18 +0300 ruby-fast-gettext (0.6.4-1) unstable; urgency=low * New upstream version: - untaint relative file path patch merged. * Patches added: - skip safe mode test (doesn't work under /tmp) - set default external encoding in specs to utf8. * Point Vcs-* control fields at git.debian.org. -- Dmitry Borodaenko Sun, 08 Jan 2012 17:48:46 +0300 ruby-fast-gettext (0.6.1-1) unstable; urgency=low * New upstream version. -- Dmitry Borodaenko Sun, 09 Oct 2011 12:42:32 +0300 ruby-fast-gettext (0.6.0-1) unstable; urgency=low * New upstream version. -- Dmitry Borodaenko Sat, 08 Oct 2011 19:19:26 +0300 ruby-fast-gettext (0.5.13-1) unstable; urgency=low * Initial release. Closes: #641930 (ITP). * Patches applied: - fix rspec requires in unit tests - untaint relative file path to make it work with $SAFE = 1. -- Dmitry Borodaenko Tue, 27 Sep 2011 00:37:13 +0300 debian/ruby-fast-gettext.docs0000644000000000000000000000001212201544231013421 0ustar Readme.md debian/compat0000644000000000000000000000000212201544231010356 0ustar 7 debian/watch0000644000000000000000000000015512201544231010212 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/fast_gettext .*/fast_gettext-(.*).tar.gz debian/ruby-tests.rb0000644000000000000000000000012512201544231011624 0ustar $: << 'spec' require 'rspec/autorun' Dir['spec/**/*_spec.rb'].each { |f| require f } debian/control0000644000000000000000000000223612201544231010566 0ustar Source: ruby-fast-gettext Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Dmitry Borodaenko Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec, ruby-activerecord, ruby-sqlite3, ruby-i18n Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-fast-gettext.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-fast-gettext.git;a=summary Homepage: https://github.com/grosser/fast_gettext XS-Ruby-Versions: all Package: ruby-fast-gettext Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Suggests: ruby-activerecord Description: Fast GetText implementation for Ruby FastGettext provides fast, memory-efficient, and thread-safe internationalization API similar to GNU GetText. In addition to performance improvements over original Ruby GetText, its capabilities include support for multiple backends and advanced extensibility. Translations can be loaded from po, mo, yaml files or, if ActiveRecord is available, from databases. debian/rules0000755000000000000000000000070112201544231010236 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 debian/patches/0000755000000000000000000000000012201544231010607 5ustar debian/patches/0002-skip-safe-mode-test.patch0000644000000000000000000000166412201544231015777 0ustar From: Dmitry Borodaenko Date: Sun, 8 Jan 2012 16:00:44 +0300 Subject: skip safe mode test This test produces a false negative when run under /tmp, making it impossible to build this package with cowbuilder and the like. --- .../fast_gettext/translation_repository/mo_spec.rb | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/spec/fast_gettext/translation_repository/mo_spec.rb b/spec/fast_gettext/translation_repository/mo_spec.rb index 8690b90..291849c 100644 --- a/spec/fast_gettext/translation_repository/mo_spec.rb +++ b/spec/fast_gettext/translation_repository/mo_spec.rb @@ -26,8 +26,4 @@ describe 'FastGettext::TranslationRepository::Mo' do rep['car'].should == 'Test'#just check it is loaded correctly rep.pluralisation_rule.call(2).should == 3 end - - it "can work in SAFE mode" do - `ruby spec/cases/safe_mode_can_handle_locales.rb 2>&1`.should == 'true' - end end -- debian/patches/0001-fix-rspec-requires.patch0000644000000000000000000000130212201544231015737 0ustar From: Dmitry Borodaenko Date: Sun, 18 Sep 2011 13:24:18 +0300 Subject: fix rspec requires --- spec/spec_helper.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Index: ruby-fast-gettext/spec/spec_helper.rb =================================================================== --- ruby-fast-gettext.orig/spec/spec_helper.rb 2012-06-30 11:17:45.000000000 -0300 +++ ruby-fast-gettext/spec/spec_helper.rb 2012-06-30 11:19:03.221837111 -0300 @@ -1,7 +1,7 @@ # $VERBOSE = true # ignore complaints in spec files # ---- requirements -$LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__)) +require 'rspec' require 'fast_gettext' # ---- revert to defaults debian/patches/series0000644000000000000000000000023412201544231012023 0ustar 0001-fix-rspec-requires.patch 0002-skip-safe-mode-test.patch 0003-set-default-external-encoding-in-specs-to-utf8.patch 0004-fix-tests-with-ruby-calls.patch debian/patches/0004-fix-tests-with-ruby-calls.patch0000644000000000000000000000330312201544231017162 0ustar From: Antonio Terceiro Date: Sat Jun 30 13:28:02 2012 -0300 Subject: fix tests with ruby calls Index: ruby-fast-gettext/spec/fast_gettext/vendor/iconv_spec.rb =================================================================== --- ruby-fast-gettext.orig/spec/fast_gettext/vendor/iconv_spec.rb 2012-06-30 12:58:24.119084699 -0300 +++ ruby-fast-gettext/spec/fast_gettext/vendor/iconv_spec.rb 2012-06-30 13:24:18.210727451 -0300 @@ -2,6 +2,6 @@ describe 'Iconv' do it "also works when Iconv was not found locally" do - system("bundle exec ruby spec/cases/iconv_fallback.rb").should == true + system("ruby spec/cases/iconv_fallback.rb").should == true end end Index: ruby-fast-gettext/spec/fast_gettext/vendor/string_spec.rb =================================================================== --- ruby-fast-gettext.orig/spec/fast_gettext/vendor/string_spec.rb 2012-06-30 12:58:24.119084699 -0300 +++ ruby-fast-gettext/spec/fast_gettext/vendor/string_spec.rb 2012-06-30 13:27:24.532249520 -0300 @@ -95,15 +95,11 @@ describe 'with i18n loaded' do it "interpolates if i18n is loaded before" do - pending_18 do - system("bundle exec ruby spec/cases/interpolate_i18n_before_fast_gettext.rb > /dev/null 2>&1").should == true - end + system("ruby spec/cases/interpolate_i18n_before_fast_gettext.rb > /dev/null 2>&1").should == true end it "interpolates if i18n is loaded before" do - pending_18 do - system("bundle exec ruby spec/cases/interpolate_i18n_after_fast_gettext.rb > /dev/null 2>&1").should == true - end + system("ruby spec/cases/interpolate_i18n_after_fast_gettext.rb > /dev/null 2>&1").should == true end end end debian/patches/0003-set-default-external-encoding-in-specs-to-utf8.patch0000644000000000000000000000127112201544231023055 0ustar From: Dmitry Borodaenko Date: Sun, 8 Jan 2012 17:44:54 +0300 Subject: set default external encoding in specs to utf8 --- spec/spec_helper.rb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Index: ruby-fast-gettext/spec/spec_helper.rb =================================================================== --- ruby-fast-gettext.orig/spec/spec_helper.rb 2012-06-30 11:20:19.000000000 -0300 +++ ruby-fast-gettext/spec/spec_helper.rb 2012-06-30 11:20:39.673833320 -0300 @@ -4,6 +4,8 @@ require 'rspec' require 'fast_gettext' +Encoding.default_external='UTF-8' if RUBY_VERSION >= '1.9' + # ---- revert to defaults RSpec.configure do |config| config.before do