debian/0000755000000000000000000000000012253346107007171 5ustar debian/control.in0000644000000000000000000000275112253346014011203 0ustar Source: ruby-railties-3.2 Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Ondřej Surý , Antonio Terceiro , DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~) Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-railties-3.2.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-railties-3.2.git;a=summary Homepage: http://www.rubyonrails.org XS-Ruby-Versions: all Package: ruby-railties-3.2 Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, rake (>= 0.8.7), ruby-thor (>= 0.14.6), ruby-rack-ssl (>= 1.3.2), ruby-activesupport-3.2 (>= @RAILS_VERSION@), ruby-actionpack-3.2 (>= @RAILS_VERSION@), ruby-actionmailer-3.2 (>= @RAILS_VERSION@), ruby-activemodel-3.2 (>= @RAILS_VERSION@), ruby-activeresource-3.2 (>= @RAILS_VERSION@) Conflicts: ruby-rails-2.3, rails (<< 2:3.2.0) Description: MVC ruby based framework geared for web application development Rails is a full-stack, open-source web framework in Ruby for writing real-world applications. . Being a full-stack framework means that all layers are built to work seamlessly together. That way you don't repeat yourself and you can use a single language from top to bottom. Everything from templates to control flow to business logic is written in Ruby. debian/watch0000644000000000000000000000014512253346014010217 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/railties .*/railties-(.*).tar.gz debian/copyright0000644000000000000000000000510712253346014011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: railties Upstream-Contact: David Heinemeier Hansson Source: http://rubygems.org/gems/railties Files: * Copyright: Copyright 2004 David Heinemeier Hansson License: Expat Files: guides/assets/javascripts/syntaxhighlighter/*.js guides/assets/stylesheets/syntaxhighlighter/*.css License: GPL or Expat Files: guides/assets/images/icons/* Copyright: 1999-2007, Norman Walsh 2003, Jiří Kosek 2004-2007, Steve Ball 2005-2008, The DocBook Project 2011-2012, O'Reilly Media License: Expat Files: debian/* Copyright: Copyright 2011 Ondřej Surý License: Expat License: GPL 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: 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/source/0000755000000000000000000000000012253346014010466 5ustar debian/source/format0000644000000000000000000000001412253346014011674 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000671312253346014011047 0ustar ruby-railties-3.2 (3.2.16-2) unstable; urgency=high * Fix invalid conflict with rails (<< 3:3.2.0) (Closes: #731888) -- Ondřej Surý Sun, 15 Dec 2013 16:34:28 +0100 ruby-railties-3.2 (3.2.16-1) unstable; urgency=high * New upstream version 3.2.16 * Update debian/control to rails release 3.2.16 -- Ondřej Surý Wed, 04 Dec 2013 17:42:02 +0100 ruby-railties-3.2 (3.2.13-4) unstable; urgency=low * Upload to unstable. -- Ondřej Surý Thu, 23 May 2013 11:11:18 +0200 ruby-railties-3.2 (3.2.13-3) experimental; urgency=low * Remove all unneeded ruby/rails build dependencies. * Loosen install time dependencies to allow faster builds. * Drop ${shlibs:Depends} since we don't have any library dependencies -- Ondřej Surý Thu, 21 Mar 2013 15:18:18 +0100 ruby-railties-3.2 (3.2.13-2) unstable; urgency=low * Fix rake tmp tasks to use the config.paths['tmp'] variable -- Ondřej Surý Thu, 21 Mar 2013 14:02:37 +0100 ruby-railties-3.2 (3.2.13-1) unstable; urgency=low * Imported Upstream version 3.2.13 * Update debian/control to rails release 3.2.13 -- Ondřej Surý Tue, 19 Mar 2013 10:27:24 +0100 ruby-railties-3.2 (3.2.12-1) unstable; urgency=low * Imported Upstream version 3.2.12 * Update debian/control to rails release 3.2.12 -- Ondřej Surý Tue, 12 Feb 2013 17:43:50 +0100 ruby-railties-3.2 (3.2.11-1) unstable; urgency=low * Imported Upstream version 3.2.11 -- Ondřej Surý Tue, 15 Jan 2013 14:42:11 +0100 ruby-railties-3.2 (3.2.8-1) unstable; urgency=low * Imported Upstream version 3.2.8 -- Ondřej Surý Sun, 14 Oct 2012 12:51:58 +0200 ruby-railties-3.2 (3.2.6-3) unstable; urgency=low * Dropped patches: + debian/patches/disable-default-gemfile-content.patch + debian/patches/dont-require-bundler-from-rubygems.patch + debian/patches/skip-bundle-by-default.patch * debian/patches/be-carefull-with-that-bundler.patch: avoid looking for Rubygems packages when creating new applications. * debian/contro: Recommends packages used in the default Gemfile -- Antonio Terceiro Thu, 28 Jun 2012 21:02:30 -0300 ruby-railties-3.2 (3.2.6-2) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Antonio Terceiro Sun, 24 Jun 2012 20:59:47 -0300 ruby-railties-3.2 (3.2.6-1) unstable; urgency=low * New upstream release * debian/control: + add myself to Uploaders: + Conflict with ruby-rails-2.3, which also provides Rails core code. + Conflict with rails (<< 3:3.2.0), which also provides /usr/bin/rails * debian/rules: + Do not move /usr/bin/rails away. That is now handled by a conflict releationship with the package rails. * Patches to avoid requiring packages installed via Rubygems: + debian/patches/disable-default-gemfile-content.patch + debian/patches/dont-require-bundler-from-rubygems.patch + debian/patches/skip-bundle-by-default.patch -- Antonio Terceiro Sat, 16 Jun 2012 22:56:45 -0300 ruby-railties-3.2 (3.2.3-1) unstable; urgency=low * Initial release (Closes: #620253) * Update copyright to match all nested code (SyntaxHighlighter and Icons from DocBook XSL project) * Add raw source code for SyntaxHighlighter -- Ondřej Surý Wed, 23 May 2012 13:41:27 +0200 debian/control0000644000000000000000000000267412253346014010602 0ustar Source: ruby-railties-3.2 Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Ondřej Surý , Antonio Terceiro , DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~) Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-railties-3.2.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-railties-3.2.git;a=summary Homepage: http://www.rubyonrails.org XS-Ruby-Versions: all Package: ruby-railties-3.2 Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, rake (>= 0.8.7), ruby-thor (>= 0.14.6), ruby-rack-ssl (>= 1.3.2), ruby-activesupport-3.2 (>= 3.2.16), ruby-actionpack-3.2 (>= 3.2.16), ruby-actionmailer-3.2 (>= 3.2.16), ruby-activemodel-3.2 (>= 3.2.16), ruby-activeresource-3.2 (>= 3.2.16) Conflicts: ruby-rails-2.3, rails (<< 2:3.2.0) Description: MVC ruby based framework geared for web application development Rails is a full-stack, open-source web framework in Ruby for writing real-world applications. . Being a full-stack framework means that all layers are built to work seamlessly together. That way you don't repeat yourself and you can use a single language from top to bottom. Everything from templates to control flow to business logic is written in Ruby. debian/rules0000755000000000000000000000145712253346014010255 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 # Disable rubygems tests for templates export DH_RUBY_IGNORE_TESTS=require-rubygems # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec RAILS_VERSION=$(shell sed -n "s/^ version: //p" metadata.yml) %: dh $@ --buildsystem=ruby --with ruby override_dh_testdir: debian/control dh_testdir debian/control: debian/control.in metadata.yml sed -e "s/@RAILS_VERSION@/$(RAILS_VERSION)/" >$@ <$< override_dh_installchangelogs: dh_installchangelogs CHANGELOG.md debian/patches/0000755000000000000000000000000012253346014010615 5ustar debian/patches/syntaxhighlighter-source.patch0000644000000000000000000014577712253346014016726 0ustar --- /dev/null +++ ruby-railties-3.2/guides/assets/javascripts/syntaxhighlighter/src/shAutoloader.js @@ -0,0 +1,130 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/SyntaxHighlighter + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/SyntaxHighlighter/donate.html + * + * @version + * 3.0.83 (July 02 2010) + * + * @copyright + * Copyright (C) 2004-2010 Alex Gorbatchev. + * + * @license + * Dual licensed under the MIT and GPL licenses. + */ +(function() { + +var sh = SyntaxHighlighter; + +/** + * Provides functionality to dynamically load only the brushes that a needed to render the current page. + * + * There are two syntaxes that autoload understands. For example: + * + * SyntaxHighlighter.autoloader( + * [ 'applescript', 'Scripts/shBrushAppleScript.js' ], + * [ 'actionscript3', 'as3', 'Scripts/shBrushAS3.js' ] + * ); + * + * or a more easily comprehendable one: + * + * SyntaxHighlighter.autoloader( + * 'applescript Scripts/shBrushAppleScript.js', + * 'actionscript3 as3 Scripts/shBrushAS3.js' + * ); + */ +sh.autoloader = function() +{ + var list = arguments, + elements = sh.findElements(), + brushes = {}, + scripts = {}, + all = SyntaxHighlighter.all, + allCalled = false, + allParams = null, + i + ; + + SyntaxHighlighter.all = function(params) + { + allParams = params; + allCalled = true; + }; + + function addBrush(aliases, url) + { + for (var i = 0; i < aliases.length; i++) + brushes[aliases[i]] = url; + }; + + function getAliases(item) + { + return item.pop + ? item + : item.split(/\s+/) + ; + } + + // create table of aliases and script urls + for (i = 0; i < list.length; i++) + { + var aliases = getAliases(list[i]), + url = aliases.pop() + ; + + addBrush(aliases, url); + } + + // dynamically add tags. */ + scriptScriptTags : { left: /(<|<)\s*script.*?(>|>)/gi, right: /(<|<)\/\s*script\s*(>|>)/gi } + }, + + toolbar: { + /** + * Generates HTML markup for the toolbar. + * @param {Highlighter} highlighter Highlighter instance. + * @return {String} Returns HTML markup. + */ + getHtml: function(highlighter) + { + var html = '
', + items = sh.toolbar.items, + list = items.list + ; + + function defaultGetHtml(highlighter, name) + { + return sh.toolbar.getButtonHtml(highlighter, name, sh.config.strings[name]); + }; + + for (var i = 0; i < list.length; i++) + html += (items[list[i]].getHtml || defaultGetHtml)(highlighter, list[i]); + + html += '
'; + + return html; + }, + + /** + * Generates HTML markup for a regular button in the toolbar. + * @param {Highlighter} highlighter Highlighter instance. + * @param {String} commandName Command name that would be executed. + * @param {String} label Label text to display. + * @return {String} Returns HTML markup. + */ + getButtonHtml: function(highlighter, commandName, label) + { + return '' + label + '' + ; + }, + + /** + * Event handler for a toolbar anchor. + */ + handler: function(e) + { + var target = e.target, + className = target.className || '' + ; + + function getValue(name) + { + var r = new RegExp(name + '_(\\w+)'), + match = r.exec(className) + ; + + return match ? match[1] : null; + }; + + var highlighter = getHighlighterById(findParentElement(target, '.syntaxhighlighter').id), + commandName = getValue('command') + ; + + // execute the toolbar command + if (highlighter && commandName) + sh.toolbar.items[commandName].execute(highlighter); + + // disable default A click behaviour + e.preventDefault(); + }, + + /** Collection of toolbar items. */ + items : { + // Ordered lis of items in the toolbar. Can't expect `for (var n in items)` to be consistent. + list: ['expandSource', 'help'], + + expandSource: { + getHtml: function(highlighter) + { + if (highlighter.getParam('collapse') != true) + return ''; + + var title = highlighter.getParam('title'); + return sh.toolbar.getButtonHtml(highlighter, 'expandSource', title ? title : sh.config.strings.expandSource); + }, + + execute: function(highlighter) + { + var div = getHighlighterDivById(highlighter.id); + removeClass(div, 'collapsed'); + } + }, + + /** Command to display the about dialog window. */ + help: { + execute: function(highlighter) + { + var wnd = popup('', '_blank', 500, 250, 'scrollbars=0'), + doc = wnd.document + ; + + doc.write(sh.config.strings.aboutDialog); + doc.close(); + wnd.focus(); + } + } + } + }, + + /** + * Finds all elements on the page which should be processes by SyntaxHighlighter. + * + * @param {Object} globalParams Optional parameters which override element's + * parameters. Only used if element is specified. + * + * @param {Object} element Optional element to highlight. If none is + * provided, all elements in the current document + * are returned which qualify. + * + * @return {Array} Returns list of { target: DOMElement, params: Object } objects. + */ + findElements: function(globalParams, element) + { + var elements = element ? [element] : toArray(document.getElementsByTagName(sh.config.tagName)), + conf = sh.config, + result = [] + ; + + // support for