h2ocube_rails_assets 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -7
  3. data/h2ocube_rails_assets.gemspec +2 -4
  4. data/lib/h2ocube_rails_assets.rb +6 -6
  5. metadata +6 -117
  6. data/Vendorfile +0 -39
  7. data/h2ocube_rails_assets.sublime-project +0 -15
  8. data/test/assets_test.rb +0 -33
  9. data/test/dummy/Rakefile +0 -7
  10. data/test/dummy/app/assets/javascripts/coffee.coffee +0 -1
  11. data/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js +0 -1
  12. data/test/dummy/app/assets/javascripts/jquery-ui_test.coffee +0 -1
  13. data/test/dummy/app/assets/javascripts/jquery.ui_test.coffee +0 -1
  14. data/test/dummy/app/assets/javascripts/jquery_test.coffee +0 -1
  15. data/test/dummy/app/assets/javascripts/js.js +0 -1
  16. data/test/dummy/app/assets/javascripts/turbolinks_test.js +0 -1
  17. data/test/dummy/app/assets/stylesheets/compass_test.sass +0 -1
  18. data/test/dummy/app/assets/stylesheets/css.css +0 -3
  19. data/test/dummy/app/assets/stylesheets/sass.sass +0 -2
  20. data/test/dummy/app/assets/stylesheets/scss.scss +0 -3
  21. data/test/dummy/app/controllers/application_controller.rb +0 -3
  22. data/test/dummy/app/helpers/application_helper.rb +0 -2
  23. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  24. data/test/dummy/config/application.rb +0 -18
  25. data/test/dummy/config/boot.rb +0 -10
  26. data/test/dummy/config/environment.rb +0 -5
  27. data/test/dummy/config/environments/test.rb +0 -25
  28. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  29. data/test/dummy/config/initializers/inflections.rb +0 -10
  30. data/test/dummy/config/initializers/mime_types.rb +0 -5
  31. data/test/dummy/config/initializers/secret_token.rb +0 -7
  32. data/test/dummy/config/initializers/session_store.rb +0 -8
  33. data/test/dummy/config/locales/en.yml +0 -5
  34. data/test/dummy/config/routes.rb +0 -58
  35. data/test/dummy/config.ru +0 -4
  36. data/test/dummy/script/rails +0 -6
  37. data/test/jquery_test.rb +0 -6
  38. data/test/test_helper.rb +0 -12
  39. data/vendor/assets/javascripts/jquery/1.0.js +0 -5
  40. data/vendor/assets/javascripts/jquery/2.0.js +0 -4
  41. data/vendor/assets/javascripts/jquery.cookie.js +0 -7
  42. data/vendor/assets/javascripts/jquery.js +0 -1
  43. data/vendor/assets/javascripts/jquery.ujs.js +0 -377
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3405640c1dea8df6af081cb7dd2e5a2fcbc8beeb
4
- data.tar.gz: ae41231fa87fcf3e10375c30fc8fe4e589f3b138
3
+ metadata.gz: bb792b3b71e88b887b40dcd11a8c66202db07ab6
4
+ data.tar.gz: cf18377219c3f7cdae1d5f8da7c25074d77f01cb
5
5
  SHA512:
6
- metadata.gz: a97ef42f0e8083bdba7a3cec78338acd48ac7c30d69f2069ef486bb483aed5533ad5d478a79d84b183934627f881bd9e0b7e6a81750f3b58032df907ab392fa1
7
- data.tar.gz: 1bfa79cfbd76eda8482cd4fb4655b8358f94f41d70292c62bc36ad05f3fdc230a2e3462fdac2df3ae0ecde23b452547594d7ade2a0d7fa3f5a4127f606b5f845
6
+ metadata.gz: 69bb9d2fe956da2b966e120213eb7216b60fc38794cbd16f99460c887ab0ec870cf81311774e6193160176f732d449234f0f4261bdda07acd0b400ea5ef816bd
7
+ data.tar.gz: 603a343eb0ecf5de389b9dbd27c8b02f8d001dff2891a868fce5e82d00b651186ee5c4d02ac51be6bee58e6c8ba4936eb385e0b548a741730505dd14d4c1bbde
data/README.md CHANGED
@@ -7,7 +7,7 @@ Just an assets collection.
7
7
 
8
8
  ## Installation
9
9
 
10
- NOTE: The new version just support rails 4.1 or newer.
10
+ NOTE: The new version just support rails 4.2 or newer.
11
11
 
12
12
  Add this line to your application's Gemfile:
13
13
 
@@ -24,12 +24,8 @@ Or install it yourself as:
24
24
  ## Usage
25
25
 
26
26
  #=require jquery
27
- #=require jquery.ujs
28
- #=require jquery.cookie
29
- #=require lazyload
30
-
31
- @import compass
32
- @import normalize
27
+ #=require jquery2
28
+ #=require jquery_ujs
33
29
 
34
30
  ## Include Gems
35
31
 
@@ -39,6 +35,7 @@ Or install it yourself as:
39
35
  * therubyracer https://github.com/cowboyd/therubyracer
40
36
  * uglifier https://github.com/lautis/uglifier
41
37
  * quiet_assets https://github.com/evrone/quiet_assets
38
+ * jquery-rails https://github.com/rails/jquery-rails
42
39
 
43
40
  ## Other Useful Gems
44
41
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'h2ocube_rails_assets'
7
- gem.version = '0.3.1'
7
+ gem.version = '0.4.0'
8
8
  gem.authors = ['Ben']
9
9
  gem.email = ['ben@h2ocube.com']
10
10
  gem.description = %q{Just an assets collection}
@@ -17,7 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- %w(sass-rails slim coffee-rails therubyracer uglifier quiet_assets).each{ |g| gem.add_dependency g }
21
-
22
- %w(rails minitest capybara vendorer).each{ |g| gem.add_development_dependency g }
20
+ %w(sass-rails slim coffee-rails therubyracer uglifier quiet_assets jquery-rails).each{ |g| gem.add_dependency g }
23
21
  end
@@ -1,12 +1,12 @@
1
1
  if defined?(Rails)
2
- %w(slim sass-rails coffee-rails v8 uglifier quiet_assets).each{ |g| require g }
2
+ %w(slim sass-rails coffee-rails v8 uglifier quiet_assets jquery-rails).each{ |g| require g }
3
3
 
4
4
  module H2ocubeRailsAssets
5
- class Railtie < Rails::Railtie
6
- PATH = File.dirname(__FILE__)
7
- initializer 'h2ocube_rails_assets.require_dependency' do |app|
8
- app.config.assets.paths += Dir[File.join(PATH, '../vendor/assets/*')]
9
- end
5
+ class Railtie < Rails::Railtie
6
+ PATH = File.dirname(__FILE__)
7
+ initializer 'h2ocube_rails_assets.require_dependency' do |app|
8
+ app.config.assets.paths += Dir[File.join(PATH, '../vendor/assets/*')]
10
9
  end
10
+ end
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-11 00:00:00.000000000 Z
11
+ date: 2016-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-rails
@@ -95,55 +95,13 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rails
98
+ name: jquery-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: minitest
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: capybara
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: vendorer
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
104
+ type: :runtime
147
105
  prerelease: false
148
106
  version_requirements: !ruby/object:Gem::Requirement
149
107
  requirements:
@@ -163,46 +121,8 @@ files:
163
121
  - LICENSE.txt
164
122
  - README.md
165
123
  - Rakefile
166
- - Vendorfile
167
124
  - h2ocube_rails_assets.gemspec
168
- - h2ocube_rails_assets.sublime-project
169
125
  - lib/h2ocube_rails_assets.rb
170
- - test/assets_test.rb
171
- - test/dummy/Rakefile
172
- - test/dummy/app/assets/javascripts/coffee.coffee
173
- - test/dummy/app/assets/javascripts/jquery-turbolinks_test.js
174
- - test/dummy/app/assets/javascripts/jquery-ui_test.coffee
175
- - test/dummy/app/assets/javascripts/jquery.ui_test.coffee
176
- - test/dummy/app/assets/javascripts/jquery_test.coffee
177
- - test/dummy/app/assets/javascripts/js.js
178
- - test/dummy/app/assets/javascripts/turbolinks_test.js
179
- - test/dummy/app/assets/stylesheets/compass_test.sass
180
- - test/dummy/app/assets/stylesheets/css.css
181
- - test/dummy/app/assets/stylesheets/sass.sass
182
- - test/dummy/app/assets/stylesheets/scss.scss
183
- - test/dummy/app/controllers/application_controller.rb
184
- - test/dummy/app/helpers/application_helper.rb
185
- - test/dummy/app/views/layouts/application.html.erb
186
- - test/dummy/config.ru
187
- - test/dummy/config/application.rb
188
- - test/dummy/config/boot.rb
189
- - test/dummy/config/environment.rb
190
- - test/dummy/config/environments/test.rb
191
- - test/dummy/config/initializers/backtrace_silencers.rb
192
- - test/dummy/config/initializers/inflections.rb
193
- - test/dummy/config/initializers/mime_types.rb
194
- - test/dummy/config/initializers/secret_token.rb
195
- - test/dummy/config/initializers/session_store.rb
196
- - test/dummy/config/locales/en.yml
197
- - test/dummy/config/routes.rb
198
- - test/dummy/script/rails
199
- - test/jquery_test.rb
200
- - test/test_helper.rb
201
- - vendor/assets/javascripts/jquery.cookie.js
202
- - vendor/assets/javascripts/jquery.js
203
- - vendor/assets/javascripts/jquery.ujs.js
204
- - vendor/assets/javascripts/jquery/1.0.js
205
- - vendor/assets/javascripts/jquery/2.0.js
206
126
  homepage: https://github.com/h2ocube/h2ocube_rails_assets
207
127
  licenses:
208
128
  - MIT
@@ -223,39 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
143
  version: '0'
224
144
  requirements: []
225
145
  rubyforge_project:
226
- rubygems_version: 2.4.5
146
+ rubygems_version: 2.5.1
227
147
  signing_key:
228
148
  specification_version: 4
229
149
  summary: Just an assets collection
230
- test_files:
231
- - test/assets_test.rb
232
- - test/dummy/Rakefile
233
- - test/dummy/app/assets/javascripts/coffee.coffee
234
- - test/dummy/app/assets/javascripts/jquery-turbolinks_test.js
235
- - test/dummy/app/assets/javascripts/jquery-ui_test.coffee
236
- - test/dummy/app/assets/javascripts/jquery.ui_test.coffee
237
- - test/dummy/app/assets/javascripts/jquery_test.coffee
238
- - test/dummy/app/assets/javascripts/js.js
239
- - test/dummy/app/assets/javascripts/turbolinks_test.js
240
- - test/dummy/app/assets/stylesheets/compass_test.sass
241
- - test/dummy/app/assets/stylesheets/css.css
242
- - test/dummy/app/assets/stylesheets/sass.sass
243
- - test/dummy/app/assets/stylesheets/scss.scss
244
- - test/dummy/app/controllers/application_controller.rb
245
- - test/dummy/app/helpers/application_helper.rb
246
- - test/dummy/app/views/layouts/application.html.erb
247
- - test/dummy/config.ru
248
- - test/dummy/config/application.rb
249
- - test/dummy/config/boot.rb
250
- - test/dummy/config/environment.rb
251
- - test/dummy/config/environments/test.rb
252
- - test/dummy/config/initializers/backtrace_silencers.rb
253
- - test/dummy/config/initializers/inflections.rb
254
- - test/dummy/config/initializers/mime_types.rb
255
- - test/dummy/config/initializers/secret_token.rb
256
- - test/dummy/config/initializers/session_store.rb
257
- - test/dummy/config/locales/en.yml
258
- - test/dummy/config/routes.rb
259
- - test/dummy/script/rails
260
- - test/jquery_test.rb
261
- - test/test_helper.rb
150
+ test_files: []
data/Vendorfile DELETED
@@ -1,39 +0,0 @@
1
- # gem install vendorer
2
- # vendorer
3
-
4
- vendor_js = 'vendor/assets/javascripts/'
5
- vendor_css = 'vendor/assets/stylesheets/'
6
- vendor_img = 'vendor/assets/images/'
7
- vendor_tmp = 'vendor/assets/'
8
-
9
- def get to, form, rm = true
10
- FileUtils.rm to if rm && File.exist?(to)
11
- file to, form
12
- end
13
-
14
- # jquery
15
- get "#{vendor_js}jquery/1.0.js", 'https://code.jquery.com/jquery-1.11.3.min.js'
16
- get "#{vendor_js}jquery/2.0.js", 'https://code.jquery.com/jquery-2.1.4.min.js'
17
-
18
- # jquery cookie
19
- get "#{vendor_js}jquery.cookie.js", 'https://rawgithub.com/carhartl/jquery-cookie/master/jquery.cookie.js'
20
-
21
- # jQuery-ujs
22
- get "#{vendor_js}jquery.ujs.js", 'https://raw.github.com/indirect/jquery-rails/master/vendor/assets/javascripts/jquery_ujs.js'
23
-
24
- list = `git grep -n sourceMappingURL`.split("\n")
25
- list.delete_at 0
26
-
27
- list.each do |path|
28
- p path
29
-
30
- file = path[/^[^:]+/]
31
- line = path[/:[0-9]+/].gsub(':', '').to_i
32
-
33
- body = File.readlines(file)
34
- body.delete_at(line - 1)
35
-
36
- File.open(file, 'w') do |f|
37
- f.write body.join('')
38
- end
39
- end
@@ -1,15 +0,0 @@
1
- {
2
- "folders":
3
- [
4
- {
5
- "path": "./",
6
- "folder_exclude_patterns": ["tmp", "log", "dump"],
7
- "file_exclude_patterns": ["*.sassc", "*.log", "*.scssc"]
8
- }
9
- ],
10
- "tab_size": 2,
11
- "translate_tabs_to_spaces": true,
12
- "ensure_newline_at_eof_on_save": true,
13
- "trim_trailing_white_space_on_save": true,
14
- "scroll_past_end": true
15
- }
data/test/assets_test.rb DELETED
@@ -1,33 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe 'basic assets type integration' do
4
- it 'css' do
5
- visit '/assets/css.css'
6
- page.html.wont_include 'Error'
7
- page.html.must_include 'color:red'
8
- end
9
-
10
- it 'sass' do
11
- visit '/assets/sass.css'
12
- page.html.wont_include 'Error'
13
- page.html.must_include 'color:red'
14
- end
15
-
16
- it 'scss' do
17
- visit '/assets/scss.css'
18
- page.html.wont_include 'Error'
19
- page.html.must_include 'color:red'
20
- end
21
-
22
- it 'js' do
23
- visit '/assets/js.js'
24
- page.html.wont_include 'Error'
25
- page.html.must_include 'alert(1);'
26
- end
27
-
28
- it 'coffee' do
29
- visit '/assets/coffee.js'
30
- page.html.wont_include 'Error'
31
- page.html.must_include 'alert(1);'
32
- end
33
- end
data/test/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
- require 'rake'
6
-
7
- Dummy::Application.load_tasks
@@ -1 +0,0 @@
1
- alert 1
@@ -1 +0,0 @@
1
- //= require jquery.turbolinks
@@ -1 +0,0 @@
1
- #= require jquery-ui
@@ -1 +0,0 @@
1
- #= require jquery.ui
@@ -1 +0,0 @@
1
- #= require jquery
@@ -1 +0,0 @@
1
- alert(1);
@@ -1 +0,0 @@
1
- //= require turbolinks
@@ -1 +0,0 @@
1
- @import compass
@@ -1,3 +0,0 @@
1
- html{
2
- color: red;
3
- }
@@ -1,2 +0,0 @@
1
- html
2
- color: red
@@ -1,3 +0,0 @@
1
- html{
2
- color: red
3
- }
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag :all %>
6
- <%= javascript_include_tag :defaults %>
7
- <%= csrf_meta_tag %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,18 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require "active_model/railtie"
4
- require "action_controller/railtie"
5
- require "action_view/railtie"
6
-
7
- Bundler.require
8
-
9
- Dir[File.dirname(__FILE__) << '/../../../']
10
-
11
- module Dummy
12
- class Application < Rails::Application
13
- config.encoding = "utf-8"
14
- config.assets.enabled = true
15
- config.assets.compile = true
16
- config.middleware.use ::ActionDispatch::Static, "#{Rails.root}/app"
17
- end
18
- end
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,25 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.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 = false
15
- config.action_controller.perform_caching = true
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
- # Print deprecation notices to the stderr
24
- config.active_support.deprecation = :stderr
25
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = 'ca3f29ce2033cebff511999f2fce3f4777dda12be7b8ad71e3f82bead7b95c26cd995ece00052674ee35dfd7892b7c78d0faaaffc9274fcf1b9bb49805ff0a2e'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,58 +0,0 @@
1
- Dummy::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
data/test/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
@@ -1,6 +0,0 @@
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'
data/test/jquery_test.rb DELETED
@@ -1,6 +0,0 @@
1
- describe 'jquery integration' do
2
- it 'jquery' do
3
- visit '/assets/jquery_test.js'
4
- page.html.must_include 'jQuery Foundation'
5
- end
6
- end
data/test/test_helper.rb DELETED
@@ -1,12 +0,0 @@
1
- ENV['RAILS_ENV'] = 'test'
2
-
3
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
4
- require 'minitest/autorun'
5
- require 'capybara/rails'
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- class IntegrationTest < MiniTest::Spec
10
- include Capybara::DSL
11
- register_spec_type(/integration$/, self)
12
- end