jquery_underscore-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/.gitignore +4 -0
  2. data/CHANGELOG.md +67 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +21 -0
  5. data/README.md +21 -0
  6. data/Rakefile +10 -0
  7. data/jquery_underscore-rails.gemspec +26 -0
  8. data/lib/generators/jquery_underscore/install/install_generator.rb +52 -0
  9. data/lib/jquery_underscore-rails.rb +20 -0
  10. data/lib/jquery_underscore-rails/assert_select_jquery.rb +79 -0
  11. data/lib/jquery_underscore-rails/version.rb +5 -0
  12. data/spec/lib/generators/jquery/install_generator_spec.rb +50 -0
  13. data/spec/lib/jquery-rails_spec.rb +50 -0
  14. data/spec/spec_helper.rb +29 -0
  15. data/spec/support/custom_app/.gitignore +4 -0
  16. data/spec/support/custom_app/Gemfile +31 -0
  17. data/spec/support/custom_app/config.ru +4 -0
  18. data/spec/support/custom_app/config/application.rb +42 -0
  19. data/spec/support/custom_app/config/boot.rb +13 -0
  20. data/spec/support/custom_app/config/database.yml +22 -0
  21. data/spec/support/custom_app/config/environment.rb +5 -0
  22. data/spec/support/custom_app/config/environments/development.rb +26 -0
  23. data/spec/support/custom_app/config/environments/production.rb +49 -0
  24. data/spec/support/custom_app/config/environments/test.rb +35 -0
  25. data/spec/support/custom_app/config/routes.rb +58 -0
  26. data/spec/support/custom_app/script/rails +6 -0
  27. data/spec/support/default_app/.gitignore +4 -0
  28. data/spec/support/default_app/Gemfile +31 -0
  29. data/spec/support/default_app/config.ru +4 -0
  30. data/spec/support/default_app/config/application.rb +42 -0
  31. data/spec/support/default_app/config/boot.rb +13 -0
  32. data/spec/support/default_app/config/database.yml +22 -0
  33. data/spec/support/default_app/config/environment.rb +5 -0
  34. data/spec/support/default_app/config/environments/development.rb +26 -0
  35. data/spec/support/default_app/config/environments/production.rb +49 -0
  36. data/spec/support/default_app/config/environments/test.rb +35 -0
  37. data/spec/support/default_app/config/routes.rb +58 -0
  38. data/spec/support/default_app/script/rails +6 -0
  39. metadata +150 -0
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ pkg/*
2
+ tmp
3
+ spec/support/*/Gemfile.lock
4
+ spec/support/*/public/javascripts
data/CHANGELOG.md ADDED
@@ -0,0 +1,67 @@
1
+ ## 0.2.6 (1 December 2010)
2
+
3
+ Feature:
4
+
5
+ - Updated to use jQuery 1.4.4 by default
6
+
7
+ ## 0.2.5 (4 November 2010)
8
+
9
+ Bugfix:
10
+
11
+ - Download JQuery Rails UJS via HTTPS since Github is now HTTPS only
12
+
13
+ ## 0.2.4 (16 October 2010)
14
+
15
+ Features:
16
+
17
+ - Updated to use the new jQuery 1.4.3 by default, with the IE .live() bug fixed
18
+ - Always download the newest 1.x release of jQuery UI
19
+ - Try to install unknown versions of jQuery, with fallback to the default
20
+ - Print informative messages in the correct Generator style
21
+
22
+ ## 0.2.3 (13 October 2010)
23
+
24
+ Features:
25
+
26
+ - Support Edge Rails 3.1 by depending on Rails ~>3.0
27
+ - Add Sam Ruby's assert_select_jquery test helper method
28
+ - Use jquery.min only in production (and not in the test env)
29
+
30
+ ## 0.2.2 (8 October 2010)
31
+
32
+ Feature:
33
+
34
+ - Depend on Rails >=3.0 && <4.0 for edge Rails compatibility
35
+
36
+ ## 0.2.1 (2 October 2010)
37
+
38
+ Bugfix:
39
+
40
+ - Default to jQuery 1.4.1 as recommended by jQuery-ujs
41
+ due to a bug in 1.4.2 (http://jsbin.com/uboxu3/7/)
42
+
43
+ ## 0.2 (2 October 2010)
44
+
45
+ Features:
46
+
47
+ - Allow specifying which version of jQuery to install
48
+ - Add generator tests (thanks, Louis T.)
49
+ - Automatically use non-minified JS in development mode
50
+
51
+ ## 0.1.3 (16 September 2010)
52
+
53
+ Bugfix:
54
+
55
+ - allow javascript :defaults tag to be overridden
56
+
57
+ ## 0.1.2 (18 August 2010)
58
+
59
+ Bugfix:
60
+
61
+ - check for jQueryUI in the right place
62
+
63
+ ## 0.1.1 (16 August 2010)
64
+
65
+ Bugfix:
66
+
67
+ - fix generator by resolving namespace conflict between Jquery::Rails and ::Rails
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :gemcutter
2
+
3
+ # Specify your gem's dependencies in jquery-rails.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2010 Andre Arko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # Jquery-rails
2
+
3
+ This gem adds a single generator to Rails 3, jquery_underscore_:install. Running the generator will remove any Prototype JS files you may happen to have, fetch jQuery, the latest underscore.js and the jQuery-ujs driver for Rails, and (optionally) fetch jQuery UI.
4
+
5
+ The gem will also hook into the Rails configuration process, removing Prototype and adding jQuery and underscore to the javascript files included by the `javascript_include_tag(:defaults)` call. While the plugin downloads minified and un-minified versions of jQuery, undrescore and jQuery UI, only the minified versions are included in :default.
6
+
7
+ ### Installation
8
+
9
+ In your Gemfile, add this line:
10
+
11
+ gem "jquery_underscore-rails"
12
+
13
+ Then, run `bundle install`. To invoke the generator, run:
14
+
15
+ rails generate jquery_underscore:install #--ui to enable jQuery UI --version to install specific version of JQuery (default is 1.5)
16
+
17
+ You're done! Don't forget to output `csrf_meta_tag` somewhere inside your `<head>` tag in your layout!
18
+
19
+ ### Edge rails
20
+
21
+ If you're using edge Rails, everything should just work starting with version 0.2.2. If it's not working, try running `bundle update jquery_underscore-rails`.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require "spec/rake/spectask"
5
+ desc "Run all examples"
6
+ Spec::Rake::SpecTask.new(:spec) do |t|
7
+ t.ruby_opts = ['-r test/unit']
8
+ t.spec_opts = %w[--color]
9
+ end
10
+ task :default => :spec
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/jquery_underscore-rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "jquery_underscore-rails"
6
+ s.version = JqueryUnderscore::Rails::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["André Arko","Aaron Cruz"]
9
+ s.email = ["andre@arko.net", "aaron@aaroncruz.com"]
10
+ s.homepage = "http://github.com/pferdefleisch/jquery_underscore-rails"
11
+ s.summary = "Use jQuery and Underscore with Rails 3"
12
+ s.description = "This is just an underscore add-on of André's jquery-rails which provides a Rails generator to install jQuery and the jQuery-ujs driver into your Rails 3 application, and then have them included automatically instead of Prototype."
13
+
14
+ s.required_rubygems_version = ">= 1.3.6"
15
+ s.rubyforge_project = "jquery_underscore-rails"
16
+
17
+ s.add_dependency "rails", "~> 3.0"
18
+ s.add_dependency "thor", "~>0.14.4"
19
+ s.add_development_dependency "bundler", "~> 1.0.0"
20
+ s.add_development_dependency "rspec", "~> 1.3"
21
+ s.add_development_dependency "webmock", "~> 1.4.0"
22
+
23
+ s.files = `git ls-files`.split("\n")
24
+ s.executables = `git ls-files`.split("\n").select{|f| f =~ /^bin/}
25
+ s.require_path = 'lib'
26
+ end
@@ -0,0 +1,52 @@
1
+ module JqueryUnderscore
2
+ module Generators
3
+ class InstallGenerator < ::Rails::Generators::Base
4
+ desc "This generator downloads and installs jQuery, Underscore, jQuery-ujs HEAD, and (optionally) the newest jQuery UI"
5
+ class_option :ui, :type => :boolean, :default => false, :desc => "Include jQueryUI"
6
+ class_option :jquery_version, :type => :string, :default => "1.5", :desc => "Which version of jQuery to fetch"
7
+ @@default_version = "1.5"
8
+
9
+ def remove_prototype
10
+ %w(controls.js dragdrop.js effects.js prototype.js).each do |js|
11
+ remove_file "public/javascripts/#{js}"
12
+ end
13
+ end
14
+
15
+ def download_jquery
16
+ say_status("fetching", "jQuery (#{options.version})", :green)
17
+ get_jquery(options.version)
18
+ rescue OpenURI::HTTPError
19
+ say_status("warning", "could not find jQuery (#{options.version})", :yellow)
20
+ say_status("fetching", "jQuery (#{@@default_version})", :green)
21
+ get_jquery(@@default_version)
22
+ end
23
+
24
+ def download_jquery_ui
25
+ if options.ui?
26
+ say_status("fetching", "jQuery UI (latest 1.x release)", :green)
27
+ get "http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js", "public/javascripts/jquery-ui.js"
28
+ get "http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js", "public/javascripts/jquery-ui.min.js"
29
+ end
30
+ end
31
+
32
+ def download_underscore
33
+ say_status("fetching", "Underscore latest", :green)
34
+ get "http://documentcloud.github.com/underscore/underscore.js", "public/javascripts/underscore.js"
35
+ get "http://documentcloud.github.com/underscore/underscore-min.js", "public/javascripts/underscore.min.js"
36
+ end
37
+
38
+ def download_ujs_driver
39
+ say_status("fetching", "jQuery UJS adapter (github HEAD)", :green)
40
+ get "https://github.com/rails/jquery-ujs/raw/master/src/rails.js", "public/javascripts/rails.js"
41
+ end
42
+
43
+ private
44
+
45
+ def get_jquery(version)
46
+ get "http://ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.js", "public/javascripts/jquery.js"
47
+ get "http://ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js", "public/javascripts/jquery.min.js"
48
+ end
49
+
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,20 @@
1
+ module JqueryUnderscore
2
+ module Rails
3
+ class Railtie < ::Rails::Railtie
4
+
5
+ config.before_configuration do
6
+ require "jquery_underscore-rails/assert_select_jquery" if ::Rails.env.test?
7
+
8
+ if ::Rails.root.join("public/javascripts/jquery-ui.min.js").exist?
9
+ jq_defaults = %w(jquery jquery-ui underscore)
10
+ jq_defaults.map!{|a| a + ".min" } if ::Rails.env.production?
11
+ else
12
+ jq_defaults = ::Rails.env.production? ? %w(jquery.min underscore.min) : %w(jquery underscore)
13
+ end
14
+
15
+ config.action_view.javascript_expansions[:defaults] = jq_defaults + %w(rails)
16
+ end
17
+
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,79 @@
1
+ module ActionDispatch
2
+ module Assertions
3
+ module SelectorAssertions
4
+ # Selects content from a JQuery response. Patterned loosely on
5
+ # assert_select_rjs.
6
+ #
7
+ # === Narrowing down
8
+ #
9
+ # With no arguments, asserts that one or more method calls are made.
10
+ #
11
+ # Use the +method+ argument to narrow down the assertion to only
12
+ # statements that call that specific method.
13
+ #
14
+ # Use the +opt+ argument to narrow down the assertion to only statements
15
+ # that pass +opt+ as the first argument.
16
+ #
17
+ # Use the +id+ argument to narrow down the assertion to only statements
18
+ # that invoke methods on the result of using that identifier as a
19
+ # selector.
20
+ #
21
+ # === Using blocks
22
+ #
23
+ # Without a block, +assert_select_jquery_ merely asserts that the
24
+ # response contains one or more statements that match the conditions
25
+ # specified above
26
+ #
27
+ # With a block +assert_select_jquery_ also asserts that the method call
28
+ # passes a javascript escaped string containing HTML. All such HTML
29
+ # fragments are selected and passed to the block. Nested assertions are
30
+ # supported.
31
+ #
32
+ # === Examples
33
+ #
34
+ # # asserts that the #notice element is hidden
35
+ # assert_select :hide, '#notice'
36
+ #
37
+ # # asserts that the #cart element is shown with a blind parameter
38
+ # assert_select :show, :blind, '#cart'
39
+ #
40
+ # # asserts that #cart content contains a #current_item
41
+ # assert_select :html, '#cart' do
42
+ # assert_select '#current_item'
43
+ # end
44
+
45
+ def assert_select_jquery(*args, &block)
46
+ jquery_method = args.first.is_a?(Symbol) ? args.shift : nil
47
+ jquery_opt = args.first.is_a?(Symbol) ? args.shift : nil
48
+ id = args.first.is_a?(String) ? args.shift : nil
49
+
50
+ pattern = "\\.#{jquery_method || '\\w+'}\\("
51
+ pattern = "#{pattern}['\"]#{jquery_opt}['\"],?\\s*" if jquery_opt
52
+ pattern = "#{pattern}#{RJS_PATTERN_HTML}" if block
53
+ pattern = "(?:jQuery|\\$)\\(['\"]#{id}['\"]\\)#{pattern}" if id
54
+
55
+ fragments = []
56
+ response.body.scan(Regexp.new(pattern)).each do |match|
57
+ doc = HTML::Document.new(unescape_rjs(match.first))
58
+ doc.root.children.each do |child|
59
+ fragments.push child if child.tag?
60
+ end
61
+ end
62
+
63
+ if fragments.empty?
64
+ opts = [jquery_method, jquery_opt, id].compact
65
+ flunk "No JQuery call matches #{opts.inspect}"
66
+ end
67
+
68
+ if block
69
+ begin
70
+ in_scope, @selected = @selected, fragments
71
+ yield
72
+ ensure
73
+ @selected = in_scope
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,5 @@
1
+ module JqueryUnderscore
2
+ module Rails
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,50 @@
1
+ require 'spec/test/unit'
2
+ require 'spec_helper'
3
+ require 'generators/jquery/install/install_generator'
4
+
5
+ class Jquery::Generators::InstallGeneratorTest < Rails::Generators::TestCase
6
+ describe "The jQuery generator"
7
+
8
+ destination File.join(Rails.root)
9
+ tests Jquery::Generators::InstallGenerator
10
+ arguments []
11
+
12
+ before(:each) do
13
+ prepare_destination
14
+ @response = {:body => "abc", :status => 200}
15
+ stub_request(:get, /ajax.googleapis.com|github.com/).to_return(@response)
16
+ end
17
+
18
+ it "should remove prototype" do
19
+ run_generator
20
+ %w(controls.js dragdrop.js effects.js prototype.js).each { |js| assert_no_file "public/javascripts/#{js}" }
21
+ end
22
+
23
+ it "should install the rails ujs shim" do
24
+ run_generator
25
+ assert_file "public/javascripts/rails.js"
26
+ end
27
+
28
+ it "should install jquery" do
29
+ run_generator
30
+ %w(jquery.min.js jquery.js).each { |js| assert_file "public/javascripts/#{js}" }
31
+ end
32
+
33
+ it "should install old jquery versions" do
34
+ run_generator %w(--version 1.4.2)
35
+ %w(jquery.min.js jquery.js).each { |js| assert_file "public/javascripts/#{js}" }
36
+ end
37
+
38
+ it "should try to install unknown jquery versions with fallback" do
39
+ stub_request(:get, /ajax.googleapis.com/).
40
+ to_return(:status => 404, :body => "No").
41
+ to_return(@response)
42
+ run_generator %w(--version 100.0)
43
+ %w(jquery.min.js jquery.js).each { |js| assert_file "public/javascripts/#{js}" }
44
+ end
45
+
46
+ it "should install jquery-ui when asked" do
47
+ run_generator %w(--ui)
48
+ %w(jquery-ui.min.js jquery-ui.js).each { |js| assert_file "public/javascripts/#{js}" }
49
+ end
50
+ end
@@ -0,0 +1,50 @@
1
+ require 'spec_helper'
2
+
3
+ describe "The jQuery-Rails railtie" do
4
+
5
+ it "changes the default javascript expansion" do
6
+ get_js_defaults("default").should == ["jquery.min", "rails"].inspect
7
+ end
8
+
9
+ it "uses non-minified js in development" do
10
+ get_js_defaults("default", "development").should == %w(jquery rails).inspect
11
+ end
12
+
13
+ it "changes allows overriding the javascript expansion" do
14
+ get_js_defaults("custom").should == ["foo", "bar", "baz"].inspect
15
+ end
16
+
17
+ it "ouputs with .js extensions in production" do
18
+ get_javascript_include_tag("default").should =~ /jquery.min.js/
19
+ end
20
+
21
+ it "outputs with .js extensions in development" do
22
+ get_javascript_include_tag("default", "development").should =~ /jquery.js/
23
+ end
24
+
25
+
26
+ # Helper methods
27
+
28
+ def get_js_defaults(app, env = "production")
29
+ cmd = "Rails.application.config.action_view.
30
+ javascript_expansions[:defaults]"
31
+ run(app, cmd, env)
32
+ end
33
+
34
+ def get_javascript_include_tag(app, env = "production")
35
+ cmd = "Rails.application.config.action_controller.
36
+ each{|k,v| ActionController::Base.helpers.config[k]=v} &&
37
+ ActionController::Base.helpers.javascript_include_tag(:defaults)"
38
+ run(app, cmd, env)
39
+ end
40
+
41
+ def run(app, expr, env)
42
+ dir = File.expand_path("../../support/#{app}_app", __FILE__)
43
+ Dir.chdir(dir) do
44
+ `bundle check || bundle install --local`
45
+ cmd = "rails runner -e #{env} 'puts #{expr}.inspect'"
46
+ `#{cmd}`.chomp
47
+ end
48
+ end
49
+
50
+ end
@@ -0,0 +1,29 @@
1
+ # Set up RSpec
2
+ require 'webmock/rspec'
3
+
4
+ Spec::Runner.configure do |config|
5
+ config.include WebMock::API
6
+ end
7
+
8
+ # Set up generator tests
9
+ require 'rails/all'
10
+ require 'rails/generators'
11
+ require 'rails/generators/test_case'
12
+
13
+ class TestApp < Rails::Application
14
+ config.root = File.dirname(__FILE__)
15
+ end
16
+ Rails.application = TestApp
17
+
18
+ module Rails
19
+ def self.root
20
+ @root ||= File.expand_path("../../tmp/rails", __FILE__)
21
+ end
22
+ end
23
+ Rails.application.config.root = Rails.root
24
+
25
+ # Call configure to load the settings from
26
+ # Rails.application.config.generators to Rails::Generators
27
+ Rails::Generators.configure!
28
+
29
+
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ db/*.sqlite3
3
+ log/*.log
4
+ tmp/**/*
@@ -0,0 +1,31 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'rails', '~>3.0'
4
+ gem 'jquery-rails', :path => "../../.."
5
+
6
+ # Bundle edge Rails instead:
7
+ # gem 'rails', :git => 'git://github.com/rails/rails.git'
8
+
9
+ gem 'sqlite3-ruby', :require => 'sqlite3'
10
+
11
+ # Use unicorn as the web server
12
+ # gem 'unicorn'
13
+
14
+ # Deploy with Capistrano
15
+ # gem 'capistrano'
16
+
17
+ # To use debugger
18
+ # gem 'ruby-debug'
19
+
20
+ # Bundle the extra gems:
21
+ # gem 'bj'
22
+ # gem 'nokogiri'
23
+ # gem 'sqlite3-ruby', :require => 'sqlite3'
24
+ # gem 'aws-s3', :require => 'aws/s3'
25
+
26
+ # Bundle gems for the local environment. Make sure to
27
+ # put test-only gems in this group so their generators
28
+ # and rake tasks are available in development mode:
29
+ # group :development, :test do
30
+ # gem 'webrat'
31
+ # end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run CustomApp::Application
@@ -0,0 +1,42 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ # If you have a Gemfile, require the gems listed there, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
8
+
9
+ module CustomApp
10
+ class Application < Rails::Application
11
+ # Settings in config/environments/* take precedence over those specified here.
12
+ # Application configuration should go into files in config/initializers
13
+ # -- all .rb files in that directory are automatically loaded.
14
+
15
+ # Custom directories with classes and modules you want to be autoloadable.
16
+ # config.autoload_paths += %W(#{config.root}/extras)
17
+
18
+ # Only load the plugins named here, in the order given (default is alphabetical).
19
+ # :all can be used as a placeholder for all plugins not explicitly named.
20
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
21
+
22
+ # Activate observers that should always be running.
23
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
24
+
25
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27
+ # config.time_zone = 'Central Time (US & Canada)'
28
+
29
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
+ # config.i18n.default_locale = :de
32
+
33
+ # JavaScript files you want as :defaults (application.js is always included).
34
+ config.action_view.javascript_expansions[:defaults] = %w(foo bar baz)
35
+
36
+ # Configure the default encoding used in templates for Ruby 1.9.
37
+ config.encoding = "utf-8"
38
+
39
+ # Configure sensitive parameters which will be filtered from the log file.
40
+ config.filter_parameters += [:password]
41
+ end
42
+ end
@@ -0,0 +1,13 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ gemfile = File.expand_path('../../Gemfile', __FILE__)
5
+ begin
6
+ ENV['BUNDLE_GEMFILE'] = gemfile
7
+ require 'bundler'
8
+ Bundler.setup
9
+ rescue Bundler::GemNotFound => e
10
+ STDERR.puts e.message
11
+ STDERR.puts "Try running `bundle install`."
12
+ exit!
13
+ end if File.exist?(gemfile)
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ CustomApp::Application.initialize!
@@ -0,0 +1,26 @@
1
+ CustomApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the webserver when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_view.debug_rjs = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Don't care if the mailer can't send
18
+ config.action_mailer.raise_delivery_errors = false
19
+
20
+ # Print deprecation notices to the Rails logger
21
+ config.active_support.deprecation = :log
22
+
23
+ # Only use best-standards-support built into browsers
24
+ config.action_dispatch.best_standards_support = :builtin
25
+ end
26
+
@@ -0,0 +1,49 @@
1
+ CustomApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The production environment is meant for finished, "live" apps.
5
+ # Code is not reloaded between requests
6
+ config.cache_classes = true
7
+
8
+ # Full error reports are disabled and caching is turned on
9
+ config.consider_all_requests_local = false
10
+ config.action_controller.perform_caching = true
11
+
12
+ # Specifies the header that your server uses for sending files
13
+ config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
+
15
+ # For nginx:
16
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
+
18
+ # If you have no front-end server that supports something like X-Sendfile,
19
+ # just comment this out and Rails will serve the files
20
+
21
+ # See everything in the log (default is :info)
22
+ # config.log_level = :debug
23
+
24
+ # Use a different logger for distributed setups
25
+ # config.logger = SyslogLogger.new
26
+
27
+ # Use a different cache store in production
28
+ # config.cache_store = :mem_cache_store
29
+
30
+ # Disable Rails's static asset server
31
+ # In production, Apache or nginx will already do this
32
+ config.serve_static_assets = false
33
+
34
+ # Enable serving of images, stylesheets, and javascripts from an asset server
35
+ # config.action_controller.asset_host = "http://assets.example.com"
36
+
37
+ # Disable delivery errors, bad email addresses will be ignored
38
+ # config.action_mailer.raise_delivery_errors = false
39
+
40
+ # Enable threaded mode
41
+ # config.threadsafe!
42
+
43
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
+ # the I18n.default_locale when a translation can not be found)
45
+ config.i18n.fallbacks = true
46
+
47
+ # Send deprecation notices to registered listeners
48
+ config.active_support.deprecation = :notify
49
+ end
@@ -0,0 +1,35 @@
1
+ CustomApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Log error messages when you accidentally call methods on nil.
11
+ config.whiny_nils = true
12
+
13
+ # Show full error reports and disable caching
14
+ config.consider_all_requests_local = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Raise exceptions instead of rendering exception templates
18
+ config.action_dispatch.show_exceptions = false
19
+
20
+ # Disable request forgery protection in test environment
21
+ config.action_controller.allow_forgery_protection = false
22
+
23
+ # Tell Action Mailer not to deliver emails to the real world.
24
+ # The :test delivery method accumulates sent emails in the
25
+ # ActionMailer::Base.deliveries array.
26
+ config.action_mailer.delivery_method = :test
27
+
28
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
29
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
30
+ # like if you have constraints or database-specific column types
31
+ # config.active_record.schema_format = :sql
32
+
33
+ # Print deprecation notices to the stderr
34
+ config.active_support.deprecation = :stderr
35
+ end
@@ -0,0 +1,58 @@
1
+ CustomApp::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => "welcome#index"
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id(.:format)))'
58
+ end
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ db/*.sqlite3
3
+ log/*.log
4
+ tmp/**/*
@@ -0,0 +1,31 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'rails', '~>3.0'
4
+ gem 'jquery-rails', :path => "../../.."
5
+
6
+ # Bundle edge Rails instead:
7
+ # gem 'rails', :git => 'git://github.com/rails/rails.git'
8
+
9
+ gem 'sqlite3-ruby', :require => 'sqlite3'
10
+
11
+ # Use unicorn as the web server
12
+ # gem 'unicorn'
13
+
14
+ # Deploy with Capistrano
15
+ # gem 'capistrano'
16
+
17
+ # To use debugger
18
+ # gem 'ruby-debug'
19
+
20
+ # Bundle the extra gems:
21
+ # gem 'bj'
22
+ # gem 'nokogiri'
23
+ # gem 'sqlite3-ruby', :require => 'sqlite3'
24
+ # gem 'aws-s3', :require => 'aws/s3'
25
+
26
+ # Bundle gems for the local environment. Make sure to
27
+ # put test-only gems in this group so their generators
28
+ # and rake tasks are available in development mode:
29
+ # group :development, :test do
30
+ # gem 'webrat'
31
+ # end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run DefaultApp::Application
@@ -0,0 +1,42 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ # If you have a Gemfile, require the gems listed there, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
8
+
9
+ module DefaultApp
10
+ class Application < Rails::Application
11
+ # Settings in config/environments/* take precedence over those specified here.
12
+ # Application configuration should go into files in config/initializers
13
+ # -- all .rb files in that directory are automatically loaded.
14
+
15
+ # Custom directories with classes and modules you want to be autoloadable.
16
+ # config.autoload_paths += %W(#{config.root}/extras)
17
+
18
+ # Only load the plugins named here, in the order given (default is alphabetical).
19
+ # :all can be used as a placeholder for all plugins not explicitly named.
20
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
21
+
22
+ # Activate observers that should always be running.
23
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
24
+
25
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27
+ # config.time_zone = 'Central Time (US & Canada)'
28
+
29
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
+ # config.i18n.default_locale = :de
32
+
33
+ # JavaScript files you want as :defaults (application.js is always included).
34
+ # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
35
+
36
+ # Configure the default encoding used in templates for Ruby 1.9.
37
+ config.encoding = "utf-8"
38
+
39
+ # Configure sensitive parameters which will be filtered from the log file.
40
+ config.filter_parameters += [:password]
41
+ end
42
+ end
@@ -0,0 +1,13 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ gemfile = File.expand_path('../../Gemfile', __FILE__)
5
+ begin
6
+ ENV['BUNDLE_GEMFILE'] = gemfile
7
+ require 'bundler'
8
+ Bundler.setup
9
+ rescue Bundler::GemNotFound => e
10
+ STDERR.puts e.message
11
+ STDERR.puts "Try running `bundle install`."
12
+ exit!
13
+ end if File.exist?(gemfile)
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ DefaultApp::Application.initialize!
@@ -0,0 +1,26 @@
1
+ DefaultApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the webserver when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_view.debug_rjs = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Don't care if the mailer can't send
18
+ config.action_mailer.raise_delivery_errors = false
19
+
20
+ # Print deprecation notices to the Rails logger
21
+ config.active_support.deprecation = :log
22
+
23
+ # Only use best-standards-support built into browsers
24
+ config.action_dispatch.best_standards_support = :builtin
25
+ end
26
+
@@ -0,0 +1,49 @@
1
+ DefaultApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The production environment is meant for finished, "live" apps.
5
+ # Code is not reloaded between requests
6
+ config.cache_classes = true
7
+
8
+ # Full error reports are disabled and caching is turned on
9
+ config.consider_all_requests_local = false
10
+ config.action_controller.perform_caching = true
11
+
12
+ # Specifies the header that your server uses for sending files
13
+ config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
+
15
+ # For nginx:
16
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
+
18
+ # If you have no front-end server that supports something like X-Sendfile,
19
+ # just comment this out and Rails will serve the files
20
+
21
+ # See everything in the log (default is :info)
22
+ # config.log_level = :debug
23
+
24
+ # Use a different logger for distributed setups
25
+ # config.logger = SyslogLogger.new
26
+
27
+ # Use a different cache store in production
28
+ # config.cache_store = :mem_cache_store
29
+
30
+ # Disable Rails's static asset server
31
+ # In production, Apache or nginx will already do this
32
+ config.serve_static_assets = false
33
+
34
+ # Enable serving of images, stylesheets, and javascripts from an asset server
35
+ # config.action_controller.asset_host = "http://assets.example.com"
36
+
37
+ # Disable delivery errors, bad email addresses will be ignored
38
+ # config.action_mailer.raise_delivery_errors = false
39
+
40
+ # Enable threaded mode
41
+ # config.threadsafe!
42
+
43
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
+ # the I18n.default_locale when a translation can not be found)
45
+ config.i18n.fallbacks = true
46
+
47
+ # Send deprecation notices to registered listeners
48
+ config.active_support.deprecation = :notify
49
+ end
@@ -0,0 +1,35 @@
1
+ DefaultApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Log error messages when you accidentally call methods on nil.
11
+ config.whiny_nils = true
12
+
13
+ # Show full error reports and disable caching
14
+ config.consider_all_requests_local = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Raise exceptions instead of rendering exception templates
18
+ config.action_dispatch.show_exceptions = false
19
+
20
+ # Disable request forgery protection in test environment
21
+ config.action_controller.allow_forgery_protection = false
22
+
23
+ # Tell Action Mailer not to deliver emails to the real world.
24
+ # The :test delivery method accumulates sent emails in the
25
+ # ActionMailer::Base.deliveries array.
26
+ config.action_mailer.delivery_method = :test
27
+
28
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
29
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
30
+ # like if you have constraints or database-specific column types
31
+ # config.active_record.schema_format = :sql
32
+
33
+ # Print deprecation notices to the stderr
34
+ config.active_support.deprecation = :stderr
35
+ end
@@ -0,0 +1,58 @@
1
+ DefaultApp::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => "welcome#index"
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id(.:format)))'
58
+ end
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jquery_underscore-rails
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - "Andr\xC3\xA9 Arko"
9
+ - Aaron Cruz
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+
14
+ date: 2011-02-03 00:00:00 +01:00
15
+ default_executable:
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: rails
19
+ prerelease: false
20
+ requirement: &id001 !ruby/object:Gem::Requirement
21
+ none: false
22
+ requirements:
23
+ - - ~>
24
+ - !ruby/object:Gem::Version
25
+ version: "3.0"
26
+ type: :runtime
27
+ version_requirements: *id001
28
+ - !ruby/object:Gem::Dependency
29
+ name: thor
30
+ prerelease: false
31
+ requirement: &id002 !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: 0.14.4
37
+ type: :runtime
38
+ version_requirements: *id002
39
+ - !ruby/object:Gem::Dependency
40
+ name: bundler
41
+ prerelease: false
42
+ requirement: &id003 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.0
48
+ type: :development
49
+ version_requirements: *id003
50
+ - !ruby/object:Gem::Dependency
51
+ name: rspec
52
+ prerelease: false
53
+ requirement: &id004 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ version: "1.3"
59
+ type: :development
60
+ version_requirements: *id004
61
+ - !ruby/object:Gem::Dependency
62
+ name: webmock
63
+ prerelease: false
64
+ requirement: &id005 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.4.0
70
+ type: :development
71
+ version_requirements: *id005
72
+ description: "This is just an underscore add-on of Andr\xC3\xA9's jquery-rails which provides a Rails generator to install jQuery and the jQuery-ujs driver into your Rails 3 application, and then have them included automatically instead of Prototype."
73
+ email:
74
+ - andre@arko.net
75
+ - aaron@aaroncruz.com
76
+ executables: []
77
+
78
+ extensions: []
79
+
80
+ extra_rdoc_files: []
81
+
82
+ files:
83
+ - .gitignore
84
+ - CHANGELOG.md
85
+ - Gemfile
86
+ - LICENSE
87
+ - README.md
88
+ - Rakefile
89
+ - jquery_underscore-rails.gemspec
90
+ - lib/generators/jquery_underscore/install/install_generator.rb
91
+ - lib/jquery_underscore-rails.rb
92
+ - lib/jquery_underscore-rails/assert_select_jquery.rb
93
+ - lib/jquery_underscore-rails/version.rb
94
+ - spec/lib/generators/jquery/install_generator_spec.rb
95
+ - spec/lib/jquery-rails_spec.rb
96
+ - spec/spec_helper.rb
97
+ - spec/support/custom_app/.gitignore
98
+ - spec/support/custom_app/Gemfile
99
+ - spec/support/custom_app/config.ru
100
+ - spec/support/custom_app/config/application.rb
101
+ - spec/support/custom_app/config/boot.rb
102
+ - spec/support/custom_app/config/database.yml
103
+ - spec/support/custom_app/config/environment.rb
104
+ - spec/support/custom_app/config/environments/development.rb
105
+ - spec/support/custom_app/config/environments/production.rb
106
+ - spec/support/custom_app/config/environments/test.rb
107
+ - spec/support/custom_app/config/routes.rb
108
+ - spec/support/custom_app/script/rails
109
+ - spec/support/default_app/.gitignore
110
+ - spec/support/default_app/Gemfile
111
+ - spec/support/default_app/config.ru
112
+ - spec/support/default_app/config/application.rb
113
+ - spec/support/default_app/config/boot.rb
114
+ - spec/support/default_app/config/database.yml
115
+ - spec/support/default_app/config/environment.rb
116
+ - spec/support/default_app/config/environments/development.rb
117
+ - spec/support/default_app/config/environments/production.rb
118
+ - spec/support/default_app/config/environments/test.rb
119
+ - spec/support/default_app/config/routes.rb
120
+ - spec/support/default_app/script/rails
121
+ has_rdoc: true
122
+ homepage: http://github.com/pferdefleisch/jquery_underscore-rails
123
+ licenses: []
124
+
125
+ post_install_message:
126
+ rdoc_options: []
127
+
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: "0"
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: 1.3.6
142
+ requirements: []
143
+
144
+ rubyforge_project: jquery_underscore-rails
145
+ rubygems_version: 1.5.0
146
+ signing_key:
147
+ specification_version: 3
148
+ summary: Use jQuery and Underscore with Rails 3
149
+ test_files: []
150
+