debian/0000755000000000000000000000000012246123537007173 5ustar debian/rules0000755000000000000000000000045612246123537010260 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs History.md override_dh_auto_install: rake -I lib/ -f debian/Rakefile generate dh_auto_install -O--buildsystem=ruby override_dh_clean: rake -I lib/ -f debian/Rakefile clean dh_clean debian/watch0000644000000000000000000000014312246123537010222 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/gherkin .*/gherkin-(.*).tar.gz debian/source/0000755000000000000000000000000012246123537010473 5ustar debian/source/format0000644000000000000000000000001412246123537011701 0ustar 3.0 (quilt) debian/source/patch-header0000644000000000000000000000066212246123537012747 0ustar This patch contains all the Debian-specific changes mixed together. To review them separately, please inspect the VCS history at http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-gherkin.git;a=summary In special, the branch called "for-upstream" contains commits that are supposed to be sent to the original developers. Commits that are not in that branch are probably Debian-specific and you do not need to care about those. debian/ruby-tests.rake0000644000000000000000000000032712246123537012162 0ustar require 'rspec/core/rake_task' if RUBY_VERSION =~ /1.9/ Encoding.default_external = 'UTF-8' end RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = './spec/**/*_spec.rb' end task :default => :spec debian/TODO0000644000000000000000000000022712246123537007664 0ustar - package ruby-beautifier (#730712) - build-depend on it - drop skip_beautify_ragel_task.patch -- Cédric Boutillier 2013-11-28 debian/ruby-gherkin.examples0000644000000000000000000000001312246123537013333 0ustar examples/* debian/copyright0000644000000000000000000000263312246123537011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gherkin Source: https://github.com/cucumber/gherkin Files: * Copyright: 2009-2012 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy License: Expat Files: debian/* Copyright: 2011 Antonio Terceiro 2013 Cédric Boutillier 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/control0000644000000000000000000000200312246123537010571 0ustar Source: ruby-gherkin Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Antonio Terceiro , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.5.0~), ruby-rspec, rake, ruby-multi-json, ruby-json, ragel Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-gherkin.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-gherkin.git;a=summary Homepage: http://github.com/cucumber/gherkin XS-Ruby-Versions: all Package: ruby-gherkin Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-multi-json Description: lexer and parser for the Gherkin language in Ruby Gherkin is a language for writing software acceptance tests in an executable scripting language that looks like structured natural language. It was created in the context of the cucumber project. debian/patches/0000755000000000000000000000000012246123537010622 5ustar debian/patches/fix_path_ragel_task.patch0000644000000000000000000000157512246123537015651 0ustar Description: fix path to be replaced by sed in ragel_task.rb Since ragel is called from debian/ instead of tasks/, paths to be replaced should be adapted. Author: Cédric Boutillier Origin: vendor Forwarded: not-needed Last-Update: 2013-08-12 --- a/tasks/ragel_task.rb +++ b/tasks/ragel_task.rb @@ -30,7 +30,7 @@ ragel = @lang == 'js' ? 'js/ragel-osx' : 'ragel' sh "#{ragel} #{flags} #{lang_ragel} -o #{target}" # Remove absolute paths from ragel-generated sources - sh %{#{sed} "s|#{Dir.pwd}/tasks/../||" #{target}} + sh %{#{sed} "s|#{File.dirname __FILE__}/../||" #{target}} if(@lang == 'js') # Ragel chokes if we put the escaped triple quotes in .rl, so we'll do the replace with sed after the fact. Lots of backslashes!! sh %{#{sed} 's/ESCAPED_TRIPLE_QUOTE/\\\\\\\\\\\\"\\\\\\\\\\\\"\\\\\\\\\\\\"/' #{target}} debian/patches/signed_char.patch0000644000000000000000000005300512246123537014114 0ustar Description: Force the assumption of signedness for the char type The ragel-generator parsers seem to assume that the char type is signed, what is not the case in some architectures such as arm* and s390* Origin: vendor Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685952 Last-Update: 2013-07-31 --- a/ext/gherkin_lexer_ar/extconf.rb +++ b/ext/gherkin_lexer_ar/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_ar") have_library("c", "main") create_makefile("gherkin_lexer_ar") --- a/ext/gherkin_lexer_bg/extconf.rb +++ b/ext/gherkin_lexer_bg/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_bg") have_library("c", "main") create_makefile("gherkin_lexer_bg") --- a/ext/gherkin_lexer_bm/extconf.rb +++ b/ext/gherkin_lexer_bm/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_bm") have_library("c", "main") create_makefile("gherkin_lexer_bm") --- a/ext/gherkin_lexer_ca/extconf.rb +++ b/ext/gherkin_lexer_ca/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_ca") have_library("c", "main") create_makefile("gherkin_lexer_ca") --- a/ext/gherkin_lexer_cs/extconf.rb +++ b/ext/gherkin_lexer_cs/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_cs") have_library("c", "main") create_makefile("gherkin_lexer_cs") --- a/ext/gherkin_lexer_cy_gb/extconf.rb +++ b/ext/gherkin_lexer_cy_gb/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_cy_gb") have_library("c", "main") create_makefile("gherkin_lexer_cy_gb") --- a/ext/gherkin_lexer_da/extconf.rb +++ b/ext/gherkin_lexer_da/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_da") have_library("c", "main") create_makefile("gherkin_lexer_da") --- a/ext/gherkin_lexer_de/extconf.rb +++ b/ext/gherkin_lexer_de/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_de") have_library("c", "main") create_makefile("gherkin_lexer_de") --- a/ext/gherkin_lexer_en/extconf.rb +++ b/ext/gherkin_lexer_en/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_en") have_library("c", "main") create_makefile("gherkin_lexer_en") --- a/ext/gherkin_lexer_en_au/extconf.rb +++ b/ext/gherkin_lexer_en_au/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_en_au") have_library("c", "main") create_makefile("gherkin_lexer_en_au") --- a/ext/gherkin_lexer_en_lol/extconf.rb +++ b/ext/gherkin_lexer_en_lol/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_en_lol") have_library("c", "main") create_makefile("gherkin_lexer_en_lol") --- a/ext/gherkin_lexer_en_pirate/extconf.rb +++ b/ext/gherkin_lexer_en_pirate/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_en_pirate") have_library("c", "main") create_makefile("gherkin_lexer_en_pirate") --- a/ext/gherkin_lexer_en_scouse/extconf.rb +++ b/ext/gherkin_lexer_en_scouse/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_en_scouse") have_library("c", "main") create_makefile("gherkin_lexer_en_scouse") --- a/ext/gherkin_lexer_en_tx/extconf.rb +++ b/ext/gherkin_lexer_en_tx/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_en_tx") have_library("c", "main") create_makefile("gherkin_lexer_en_tx") --- a/ext/gherkin_lexer_eo/extconf.rb +++ b/ext/gherkin_lexer_eo/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_eo") have_library("c", "main") create_makefile("gherkin_lexer_eo") --- a/ext/gherkin_lexer_es/extconf.rb +++ b/ext/gherkin_lexer_es/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_es") have_library("c", "main") create_makefile("gherkin_lexer_es") --- a/ext/gherkin_lexer_et/extconf.rb +++ b/ext/gherkin_lexer_et/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_et") have_library("c", "main") create_makefile("gherkin_lexer_et") --- a/ext/gherkin_lexer_fi/extconf.rb +++ b/ext/gherkin_lexer_fi/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_fi") have_library("c", "main") create_makefile("gherkin_lexer_fi") --- a/ext/gherkin_lexer_fr/extconf.rb +++ b/ext/gherkin_lexer_fr/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_fr") have_library("c", "main") create_makefile("gherkin_lexer_fr") --- a/ext/gherkin_lexer_he/extconf.rb +++ b/ext/gherkin_lexer_he/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_he") have_library("c", "main") create_makefile("gherkin_lexer_he") --- a/ext/gherkin_lexer_hr/extconf.rb +++ b/ext/gherkin_lexer_hr/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_hr") have_library("c", "main") create_makefile("gherkin_lexer_hr") --- a/ext/gherkin_lexer_hu/extconf.rb +++ b/ext/gherkin_lexer_hu/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_hu") have_library("c", "main") create_makefile("gherkin_lexer_hu") --- a/ext/gherkin_lexer_id/extconf.rb +++ b/ext/gherkin_lexer_id/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_id") have_library("c", "main") create_makefile("gherkin_lexer_id") --- a/ext/gherkin_lexer_is/extconf.rb +++ b/ext/gherkin_lexer_is/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_is") have_library("c", "main") create_makefile("gherkin_lexer_is") --- a/ext/gherkin_lexer_it/extconf.rb +++ b/ext/gherkin_lexer_it/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_it") have_library("c", "main") create_makefile("gherkin_lexer_it") --- a/ext/gherkin_lexer_ja/extconf.rb +++ b/ext/gherkin_lexer_ja/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_ja") have_library("c", "main") create_makefile("gherkin_lexer_ja") --- a/ext/gherkin_lexer_ko/extconf.rb +++ b/ext/gherkin_lexer_ko/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_ko") have_library("c", "main") create_makefile("gherkin_lexer_ko") --- a/ext/gherkin_lexer_lt/extconf.rb +++ b/ext/gherkin_lexer_lt/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_lt") have_library("c", "main") create_makefile("gherkin_lexer_lt") --- a/ext/gherkin_lexer_lu/extconf.rb +++ b/ext/gherkin_lexer_lu/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_lu") have_library("c", "main") create_makefile("gherkin_lexer_lu") --- a/ext/gherkin_lexer_lv/extconf.rb +++ b/ext/gherkin_lexer_lv/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_lv") have_library("c", "main") create_makefile("gherkin_lexer_lv") --- a/ext/gherkin_lexer_nl/extconf.rb +++ b/ext/gherkin_lexer_nl/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_nl") have_library("c", "main") create_makefile("gherkin_lexer_nl") --- a/ext/gherkin_lexer_no/extconf.rb +++ b/ext/gherkin_lexer_no/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_no") have_library("c", "main") create_makefile("gherkin_lexer_no") --- a/ext/gherkin_lexer_pl/extconf.rb +++ b/ext/gherkin_lexer_pl/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_pl") have_library("c", "main") create_makefile("gherkin_lexer_pl") --- a/ext/gherkin_lexer_pt/extconf.rb +++ b/ext/gherkin_lexer_pt/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_pt") have_library("c", "main") create_makefile("gherkin_lexer_pt") --- a/ext/gherkin_lexer_ro/extconf.rb +++ b/ext/gherkin_lexer_ro/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_ro") have_library("c", "main") create_makefile("gherkin_lexer_ro") --- a/ext/gherkin_lexer_ru/extconf.rb +++ b/ext/gherkin_lexer_ru/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_ru") have_library("c", "main") create_makefile("gherkin_lexer_ru") --- a/ext/gherkin_lexer_sk/extconf.rb +++ b/ext/gherkin_lexer_sk/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_sk") have_library("c", "main") create_makefile("gherkin_lexer_sk") --- a/ext/gherkin_lexer_sr_cyrl/extconf.rb +++ b/ext/gherkin_lexer_sr_cyrl/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_sr_cyrl") have_library("c", "main") create_makefile("gherkin_lexer_sr_cyrl") --- a/ext/gherkin_lexer_sr_latn/extconf.rb +++ b/ext/gherkin_lexer_sr_latn/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_sr_latn") have_library("c", "main") create_makefile("gherkin_lexer_sr_latn") --- a/ext/gherkin_lexer_sv/extconf.rb +++ b/ext/gherkin_lexer_sv/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_sv") have_library("c", "main") create_makefile("gherkin_lexer_sv") --- a/ext/gherkin_lexer_tr/extconf.rb +++ b/ext/gherkin_lexer_tr/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_tr") have_library("c", "main") create_makefile("gherkin_lexer_tr") --- a/ext/gherkin_lexer_uk/extconf.rb +++ b/ext/gherkin_lexer_uk/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_uk") have_library("c", "main") create_makefile("gherkin_lexer_uk") --- a/ext/gherkin_lexer_uz/extconf.rb +++ b/ext/gherkin_lexer_uz/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_uz") have_library("c", "main") create_makefile("gherkin_lexer_uz") --- a/ext/gherkin_lexer_vi/extconf.rb +++ b/ext/gherkin_lexer_vi/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_vi") have_library("c", "main") create_makefile("gherkin_lexer_vi") --- a/ext/gherkin_lexer_zh_cn/extconf.rb +++ b/ext/gherkin_lexer_zh_cn/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_zh_cn") have_library("c", "main") create_makefile("gherkin_lexer_zh_cn") --- a/ext/gherkin_lexer_zh_tw/extconf.rb +++ b/ext/gherkin_lexer_zh_tw/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_zh_tw") have_library("c", "main") create_makefile("gherkin_lexer_zh_tw") --- a/ext/gherkin_lexer_el/extconf.rb +++ b/ext/gherkin_lexer_el/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_el") have_library("c", "main") create_makefile("gherkin_lexer_el") --- a/ext/gherkin_lexer_en_old/extconf.rb +++ b/ext/gherkin_lexer_en_old/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_en_old") have_library("c", "main") create_makefile("gherkin_lexer_en_old") --- a/ext/gherkin_lexer_fa/extconf.rb +++ b/ext/gherkin_lexer_fa/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_fa") have_library("c", "main") create_makefile("gherkin_lexer_fa") --- a/ext/gherkin_lexer_gl/extconf.rb +++ b/ext/gherkin_lexer_gl/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_gl") have_library("c", "main") create_makefile("gherkin_lexer_gl") --- a/ext/gherkin_lexer_hi/extconf.rb +++ b/ext/gherkin_lexer_hi/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_hi") have_library("c", "main") create_makefile("gherkin_lexer_hi") --- a/ext/gherkin_lexer_tl/extconf.rb +++ b/ext/gherkin_lexer_tl/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_tl") have_library("c", "main") create_makefile("gherkin_lexer_tl") --- a/ext/gherkin_lexer_tt/extconf.rb +++ b/ext/gherkin_lexer_tt/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] -$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/ +$CFLAGS << ' -O0 -Wall -fsigned-char' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_tt") have_library("c", "main") create_makefile("gherkin_lexer_tt") debian/patches/series0000644000000000000000000000022112246123537012032 0ustar remove_bundler_rubygems_stuff.patch fix_path_ragel_task.patch same_sed_all_arches.patch skip_beautify_ragel_task.patch skip_encoding_lexer.patch debian/patches/remove_bundler_rubygems_stuff.patch0000644000000000000000000000066012246123537020001 0ustar Description: Remove bundler and rubygems stuff from spec_helper.rb These lines are not needed on Debian systems since dependencies are available as Debian packages. Origin: vendor Last-Update: 2013-11-28 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -17,10 +17,6 @@ ArrayList.__persistent__ = true end -require 'rubygems' -require 'bundler' -Bundler.setup - require 'rspec' require 'gherkin' require 'stringio' debian/patches/skip_beautify_ragel_task.patch0000644000000000000000000000216612246123537016702 0ustar Description: drop beautification of generated Ruby code This depends on ruby-beautify, which is not packaged (#730712). See debian/TODO Author: Cédric Boutillier Forwarded: not-needed Last-Update: 2013-11-28 --- a/tasks/ragel_task.rb +++ b/tasks/ragel_task.rb @@ -40,13 +40,13 @@ sh %{node #{UGLIFYJS} #{target} > #{min_target}} end - if(@lang == 'rb') - # Prettify the code so we don't get indentation warnings - sh %{rbeautify #{target} > tmp.rb} - sh %{mv tmp.rb #{target}} - # rbeautify has a bug with class << self ... end alignment. Fix it. - sh %{perl -i -0pe 's/ end\n self._/ end\n self._/g' #{target}} - end + #if(@lang == 'rb') + # # Prettify the code so we don't get indentation warnings + # sh %{rbeautify #{target} > tmp.rb} + # sh %{mv tmp.rb #{target}} + # # rbeautify has a bug with class << self ... end alignment. Fix it. + # sh %{perl -i -0pe 's/ end\n self._/ end\n self._/g' #{target}} + #end end if(@lang != 'java') debian/patches/skip_encoding_lexer.patch0000644000000000000000000000176112246123537015663 0ustar Description: skip specs from encoding_group.rb for C and native lexers On powerpc, - the first one fails with the C lexer - the second one fail with the C and the Native lexers Author: Cédric Boutillier Origin: vendor Last-Update: 2013-11-28 --- a/spec/gherkin/shared/encoding_group.rb +++ b/spec/gherkin/shared/encoding_group.rb @@ -3,7 +3,7 @@ module Lexer shared_examples_for "encoding" do describe "with BOM" do - it "should work just fine" do + xit "should work just fine" do scan_file("with_bom.feature") @listener.to_sexp.should == [ [:feature, "Feature", "Feature Text", "", 1], @@ -14,7 +14,7 @@ end describe "and language specification" do - it "should work just fine" do + xit "should work just fine" do @lexer = Gherkin::Lexer::I18nLexer.new(@listener) scan_file("with_bom_and_language_spec.feature") @listener.to_sexp.should == [ debian/patches/same_sed_all_arches.patch0000644000000000000000000000125712246123537015605 0ustar Description: Use same sed command on all arches since all arches work with the same GNU userspace, there is no need to distinguish linux from other flavors Author: Cédric Boutillier Origin: vendor Forwarded: not-needed Last-Update: 2013-09-02 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/tasks/ragel_task.rb +++ b/tasks/ragel_task.rb @@ -22,7 +22,7 @@ def define_tasks deps = [lang_ragel, common_ragel] deps.unshift(UGLIFYJS) if(@lang == 'js') - sed = RbConfig::CONFIG['host_os'] =~ /linux/i ? "sed -i" : "sed -i ''" + sed = "sed -i" min_target = target.gsub(/\.js$/, '.min.js') file target => deps do debian/compat0000644000000000000000000000000212246123537010371 0ustar 7 debian/Rakefile0000644000000000000000000000273312246123537010645 0ustar # Rakefile inspired by tasks/compile.rake # modified to jsut generate .rb and .c from ragel # and skip compilation of the .c files # Last-modified: 2013-08-12 require 'rake/clean' require File.expand_path(File.dirname(__FILE__) + '/../tasks/ragel_task') BYPASS_NATIVE_IMPL = true require File.expand_path(File.dirname(__FILE__) + '/../lib/gherkin/i18n') CLEAN.include [ 'pkg', 'tmp', '**/*.{o,bundle,jar,so,obj,pdb,lib,def,exp,log,rbc}', 'ext', 'java/target', 'lib/*.dll', 'ext/**/*.c', 'doc' ] langs = Gherkin::I18n.all desc "generate files" task :generate langs.each do |i18n| rb = RagelTask.new('rb', i18n) c = RagelTask.new('c', i18n) lexer_dir = "ext/gherkin_lexer_#{i18n.underscored_iso_code}" extconf = lexer_dir + "/extconf.rb" directory lexer_dir file extconf => lexer_dir do FileUtils.mkdir(File.dirname(extconf)) unless File.directory?(File.dirname(extconf)) File.open(extconf, "w") do |io| io.write(<<-EOF) require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] $CFLAGS << ' -O0' if CONFIG['CC'] =~ /gcc|clang/ dir_config("gherkin_lexer_#{i18n.underscored_iso_code}") have_library("c", "main") create_makefile("gherkin_lexer_#{i18n.underscored_iso_code}") EOF end end desc "generate files for #{i18n.underscored_iso_code}" task :"gherkin_lexer_#{i18n.underscored_iso_code}" => [extconf, rb.target, c.target] task :generate => [:"gherkin_lexer_#{i18n.underscored_iso_code}"] end debian/changelog0000644000000000000000000000604412246123537011051 0ustar ruby-gherkin (2.12.2-2) unstable; urgency=low * Include again accidentally dropped changes from 2.12.1-2 + restore missing changelog entry for 2.12.1-2 + reintroduce same_sed_all_arches.patch to use the same sed commands on all arches (and fix build on non Linux arches) -- Cédric Boutillier Fri, 29 Nov 2013 15:35:44 +0100 ruby-gherkin (2.12.2-1) unstable; urgency=low * Imported Upstream version 2.12.2 * Bump Standards-Version to 3.9.5 (no changes needed) * Build against gem2deb >= 0.5 to add Ruby 2.0 support and drop Ruby 1.8 * debian/patches: - refresh remove_bundler_rubygems_stuff.patch and skip_encoding_lexer.patch - add skip_beautify_ragel_task.patch to skip beautification of generated Ruby code (until ruby-beautify is packaged) -- Cédric Boutillier Thu, 28 Nov 2013 15:49:01 +0100 ruby-gherkin (2.12.1-2) unstable; urgency=low * add same_sed_all_arches.patch: + do not distinguish between linux and other kernels for sed options + fixes build issues on non linux ports -- Cédric Boutillier Mon, 02 Sep 2013 22:25:58 +0200 ruby-gherkin (2.12.1-1) unstable; urgency=low * Imported Upstream version 2.12.1 * Refresh patches * debian/control: + bump Standards-Version to 3.9.4 (no changes needed) + update my email address + build-depend on ruby-multi-json, ragel + depend on ruby-multi-json * debian/rules: + Install upstream changelog + use debian/Rakefile to regenerate upstream C and Ruby files from ragel * add myself to copyright holders of debian/* * debian/patches: + add fix_path_ragel_task.patch: fix paths in sed commands in tasks/ragel_task.rb + add skip_encoding_lexer.patch, skipping failing tests on powerpc + remove signed_char.patch from quilt series -- Cédric Boutillier Wed, 31 Jul 2013 15:47:02 +0200 ruby-gherkin (2.11.1-2) unstable; urgency=low * debian/patches/signed_char.patch: force the assumption of signedness for the char type (Closes: #685952) -- Antonio Terceiro Sat, 18 May 2013 15:24:59 -0300 ruby-gherkin (2.11.1-1) unstable; urgency=low * New upstream version -- Cédric Boutillier Wed, 27 Jun 2012 13:02:33 +0200 ruby-gherkin (2.11.0-2) unstable; urgency=low * Build-depend on gem2deb >=0.3.0 -- Cédric Boutillier Mon, 25 Jun 2012 10:55:13 +0200 ruby-gherkin (2.11.0-1) unstable; urgency=low * New upstream version * Bump Standards-Version: to 3.9.3 (no changes needed) * Add myself to Uploaders: * Convert single Debian patch to remove_bundler_rubygems_stuff.patch * Use ruby-tests.rake to run the tests. Build-depends on rake * Install examples in /usr/share/doc/ruby-gherkin/examples -- Cédric Boutillier Wed, 20 Jun 2012 19:17:45 +0200 ruby-gherkin (2.4.6-1) unstable; urgency=low * Initial release (Closes: #636788) -- Antonio Terceiro Fri, 05 Aug 2011 14:53:33 -0700