debian/0000755000000000000000000000000011756764122007201 5ustar debian/patches/0000755000000000000000000000000011756764122010630 5ustar debian/patches/debian-changes0000644000000000000000000001131711756764607013416 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . ruby-merb-core (1.1.3+dfsg-2) unstable; urgency=low . * Correct copyright file * Get rid of FIXME in .docs file. Author: Tollef Fog Heen --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- ruby-merb-core-1.1.3+dfsg.orig/Rakefile +++ ruby-merb-core-1.1.3+dfsg/Rakefile @@ -2,7 +2,7 @@ require 'rubygems' require 'rake' require "rake/rdoctask" require "rake/testtask" -require "spec/rake/spectask" +require "rspec/core/rake_task" require "fileutils" # Load code annotation support library --- /dev/null +++ ruby-merb-core-1.1.3+dfsg/tools/annotation_extract.rb @@ -0,0 +1,112 @@ +# Copyright (c) 2004-2008 David Heinemeier Hansson +# +# 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. + +class SourceAnnotationExtractor + + class Annotation < Struct.new(:line, :tag, :text) + + def to_s(options={}) + s = "[%3d] " % line + s << "[#{tag}] " if options[:tag] + s << text + end + end + + def self.enumerate(tag, options={}) + extractor = new(tag) + extractor.display(extractor.find, options) + end + + attr_reader :tag + + def initialize(tag) + @tag = tag + end + + def find(dirs=%w(app lib test)) + dirs.inject({}) { |h, dir| h.update(find_in(dir)) } + end + + def find_in(dir) + results = {} + + Dir.glob("#{dir}/*") do |item| + next if File.basename(item)[0] == ?. + + if File.directory?(item) + results.update(find_in(item)) + elsif item =~ /\.(?:rb|rxml|xerb|builder|mab|haml)$/ + results.update(extract_annotations_from(item, /#\s*(#{tag}):?\s*(.*)$/)) + elsif item =~ /\.herb|\.jerb|\.erb$/ + results.update(extract_annotations_from(item, /<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/)) + end + end + + results + end + + def extract_annotations_from(file, pattern) + lineno = 0 + result = File.readlines(file).inject([]) do |list, line| + lineno += 1 + next list unless line =~ pattern + list << Annotation.new(lineno, $1, $2) + end + result.empty? ? {} : { file => result } + end + + def display(results, options={}) + results.keys.sort.each do |file| + puts "#{file}:" + results[file].each do |note| + puts " * #{note.to_s(options)}" + end + puts + end + end +end + +desc "Enumerate all annotations" +task :notes do + SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true +end + +namespace :notes do + desc "Enumerate all DOC annotations" + task :doc do + SourceAnnotationExtractor.enumerate "DOC" + end + + desc "Enumerate all OPTIMIZE annotations" + task :optimize do + SourceAnnotationExtractor.enumerate "OPTIMIZE" + end + + desc "Enumerate all FIXME annotations" + task :fixme do + SourceAnnotationExtractor.enumerate "FIXME" + end + + desc "Enumerate all TODO annotations" + task :todo do + SourceAnnotationExtractor.enumerate "TODO" + end +end \ No newline at end of file debian/patches/series0000644000000000000000000000001711756764122012043 0ustar debian-changes debian/control0000644000000000000000000000403511756761356010614 0ustar Source: ruby-merb-core Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Tollef Fog Heen DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.13~) Standards-Version: 3.9.2 #Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-merb-core.git #Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-merb-core.git;a=summary Homepage: http://merbivore.com/ XS-Ruby-Versions: all Package: ruby-merb-core Architecture: all XB-Ruby-Versions: ${ruby:Versions} Replaces: merb-core (<< 1.1.3-1~), libmerb-core-ruby (<< 1.1.3-1~), libmerb-core-ruby1.8 (<< 1.1.3-1~) Breaks: merb-core (<< 1.1.3-1~), libmerb-core-ruby (<< 1.1.3-1~), libmerb-core-ruby1.8 (<< 1.1.3-1~) Provides: merb-core, libmerb-core-ruby, libmerb-core-ruby1.8 Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-extlib (>= 0.9.13), ruby-erubis (>= 2.6.2), rake, ruby-rack, ruby-mime-types (>= 1.16), bundler Description: Core libraries for the Merb MVC framework Ruby-based MVC framework that is agnostic to ORM, JavaScript library, and template languages. Merb is plugin-based, so the core is small and well organized. Package: merb-core Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-merb-core Description: Transitional package for ruby-merb-core This is a transitional package to ease upgrades to the ruby-merb-core package. It can safely be removed. Package: libmerb-core-ruby Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-merb-core Description: Transitional package for ruby-merb-core This is a transitional package to ease upgrades to the ruby-merb-core package. It can safely be removed. Package: libmerb-core-ruby1.8 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-merb-core Description: Transitional package for ruby-merb-core This is a transitional package to ease upgrades to the ruby-merb-core package. It can safely be removed. debian/compat0000644000000000000000000000000211756761356010405 0ustar 7 debian/watch0000644000000000000000000000014711756761356010242 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/merb-core .*/merb-core-(.*).tar.gz debian/source/0000755000000000000000000000000011756761356010507 5ustar debian/source/options0000644000000000000000000000002411756761356012121 0ustar single-debian-patch debian/source/format0000644000000000000000000000001411756761356011715 0ustar 3.0 (quilt) debian/require-rubygems.overrides0000644000000000000000000000041111756761356014436 0ustar --- - debian/ruby-merb-core/usr/lib/ruby/vendor_ruby/merb-core/test/helpers/multipart_request_helper.rb - debian/ruby-merb-core/usr/lib/ruby/vendor_ruby/merb-core/test/run_spec.rb - debian/ruby-merb-core/usr/lib/ruby/vendor_ruby/merb-core/gem_ext/gem_dependency.rb debian/copyright0000644000000000000000000000230111756762376011141 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: merb-core Source: http://github.com/wycats/merb Files: * Copyright: Copyright (c) 2008 Engine Yard Inc. 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. debian/rules0000755000000000000000000000070111756761356010265 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/README.source0000644000000000000000000000066611756761356011376 0ustar The upstream source has also been modified to remove gems from the specs, as the distributability is not confirmed for the gems. As a result, the spec tests for Merb will not work straight from the source tarball. These gems do not affect the outcome of the built package. The entire spec and spec10 directories are removed due to the amount of vendored gems. -- Tollef Fog Heen , Wed, 9 May 2012 16:47:59 +0200 debian/ruby-merb-core.docs0000644000000000000000000000000711756762442012705 0ustar README debian/changelog0000644000000000000000000000303111756762505011053 0ustar ruby-merb-core (1.1.3+dfsg-2) unstable; urgency=low * Correct copyright file * Get rid of FIXME in .docs file. -- Tollef Fog Heen Tue, 22 May 2012 21:13:08 +0200 ruby-merb-core (1.1.3+dfsg-1) unstable; urgency=low * Update to new-style packaging, split merb-core into its own source package. -- Tollef Fog Heen Wed, 09 May 2012 18:35:32 +0200 merb (1.0.12+dfsg-4) unstable; urgency=low * Add merb-param-protection package. * Merb depends on RubyGems to enable library dependency plugin mechanism. -- Joshua Timberman Wed, 17 Mar 2010 19:38:55 -0600 merb (1.0.12+dfsg-3) unstable; urgency=low [ Paul van Tilburg ] * debian/watch: changed the regexp so that it makes PET happy too. [ Mike Castleman ] * debian/copyright: clarify that we don't ship the allison library (closes: #574142) -- Mike Castleman Wed, 17 Mar 2010 03:07:17 -0400 merb (1.0.12+dfsg-2) unstable; urgency=low * Packaging approved for Ubuntu, updating for Debian. * Rename merb-slices binary from slice to merb-slice. * Repack upstream tarball, should not affect Debian packaging but noted: + Replaced upstream empty LICENSE file with MIT license + Removed object files which are part of the webrat spec testing. -- Joshua Timberman Thu, 27 Aug 2009 08:56:09 -0600 merb (1.0.12+dfsg-1) unstable; urgency=low * Initial release (Closes: #538928) -- Joshua Timberman Mon, 27 Jul 2009 23:38:37 -0600