dom_routes 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.travis.yml +14 -0
  4. data/README.md +15 -8
  5. data/dom_routes.gemspec +6 -2
  6. data/gemfiles/Gemfile-rails.3.2.x +9 -0
  7. data/gemfiles/Gemfile-rails.4.0.x +9 -0
  8. data/gemfiles/Gemfile-rails.4.1.x +9 -0
  9. data/lib/dom_routes/version.rb +1 -1
  10. data/lib/dom_routes/view_helpers.rb +3 -3
  11. data/spec/fake_app/app/assets/javascripts/application.js +54 -0
  12. data/spec/fake_app/app/assets/javascripts/routes/application_routes.js +1 -0
  13. data/spec/fake_app/app/assets/javascripts/routes/dashboard/users_routes.js +1 -0
  14. data/spec/fake_app/app/assets/javascripts/routes/users_routes.js +1 -0
  15. data/spec/fake_app/app/controllers.rb +39 -0
  16. data/spec/fake_app/app/helpers.rb +5 -0
  17. data/spec/fake_app/app/views/dashboard/users/with_parameters.html.erb +0 -0
  18. data/spec/fake_app/app/views/dashboard/users/with_parameters_params.js.jbuilder +1 -0
  19. data/spec/fake_app/app/views/layouts/application.html.erb +11 -0
  20. data/spec/fake_app/app/views/users/different_route.html.erb +0 -0
  21. data/spec/fake_app/app/views/users/index.html.erb +0 -0
  22. data/spec/fake_app/app/views/users/manually_execute.html.erb +1 -0
  23. data/spec/fake_app/app/views/users/with_parameters.html.erb +1 -0
  24. data/spec/fake_app/app/views/users/with_parameters.js.jbuilder +1 -0
  25. data/spec/fake_app/app/views/users/with_parameters_params.js.jbuilder +1 -0
  26. data/spec/fake_app/fake_app.rb +29 -0
  27. data/spec/fake_app/routes.rb +18 -0
  28. data/spec/features/dom_routes_spec.rb +82 -0
  29. data/spec/spec_helper.rb +8 -0
  30. metadata +117 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d22b5e3bf4b4ed86c0ec81f3893b9eb816fe9c4a
4
- data.tar.gz: 7bf8af4328d168ca2962c90c1c224e474f0eaeb5
3
+ metadata.gz: e37ed1c50927dd43b2437bfa6f44993b5ce9854f
4
+ data.tar.gz: 138ec9f80d4ef9656a9511fe16ecc3136051a448
5
5
  SHA512:
6
- metadata.gz: 6aaa57b3e5f3c7fc7dcde76a01481acf0b33bb461f2610266e8470109b056e19a916c8bcbe0410868c8cdd036b60ec498bbeb0263d0e095d34e927a3ac451b41
7
- data.tar.gz: 572b34d0253c084ea2094d4846c1e7b05966ccaf2d70510d990a2409760822b564e04a60d6a2b6376aa331a9b2afe680e73bfa3d3501dc93656a96ef2418d25d
6
+ metadata.gz: a3516463f94b1d7bc0870edaea4c1064f33d0c0cdd43a5ead360ae4c5e0aa4350f355962af5fb137363da0610a7000b56eafd6c217c7cdaed8b6079b9f0f86e2
7
+ data.tar.gz: 9c6c42476dbd9c4c4957fc74a8368607255dfc85c0949043c1320b09daf735f918da1e82a8690b58649a164272b5e9db45b57237ba69603c78419233f361467b
data/.gitignore CHANGED
@@ -16,4 +16,6 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
 
19
+ spec/fake_app/log/*
20
+
19
21
  .idea/
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ script: xvfb-run rspec
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.0
7
+ - ruby-head
8
+ gemfile:
9
+ - gemfiles/Gemfile-rails.3.2.x
10
+ - gemfiles/Gemfile-rails.4.0.x
11
+ - gemfiles/Gemfile-rails.4.1.x
12
+ matrix:
13
+ allow_failures:
14
+ - rvm: ruby-head
data/README.md CHANGED
@@ -3,6 +3,8 @@ Auto-magical scaffolding for
3
3
  [Paul Irish's DOM-based Routing](http://www.paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/)
4
4
  (or Garber-Irish Implementation) way of organizing your javascript.
5
5
 
6
+ __Works with turbolinks__
7
+
6
8
  ## Purpose
7
9
  Javascript is hard to organize and debugging ajax is a mess. This is one method to organizing your javascript neatly by mirroring the controllers and having all the it outside of your HTML views.
8
10
 
@@ -28,18 +30,20 @@ DR.routes = {
28
30
  ```
29
31
  ### What happens
30
32
  After, requests to `demos#demo_action` with format `html` will call the following functions (if they exist):
31
- * `DR.routes.all.html.before`
33
+ * `DR.routes.application.html.before`
32
34
  * `DR.routes.demos.html.before`
33
- * `DR.routes.demos.html.demo_action` (with parameters if given)
35
+ * `DR.routes.application.html.demo_action`
36
+ * `DR.routes.demos.html.demo_action`
34
37
  * `DR.routes.demos.html.after`
35
- * `DR.routes.all.html.after`
38
+ * `DR.routes.application.html.after`
36
39
 
37
40
  `js` format is also supported, i.e.:
38
- * `DR.routes.all.js.before`
41
+ * `DR.routes.application.js.before`
39
42
  * `DR.routes.demos.js.before`
40
- * `DR.routes.demos.js.demo_action` (with parameters if given)
43
+ * `DR.routes.application.js.demo_action`
44
+ * `DR.routes.demos.js.demo_action`
41
45
  * `DR.routes.demos.js.after`
42
- * `DR.routes.all.js.after`
46
+ * `DR.routes.application.js.after`
43
47
 
44
48
  ## Installation
45
49
  Add this line to your application's `Gemfile`:
@@ -96,8 +100,10 @@ So if a `html` request is sent to `demos#edit`, `DR.routes.demos.html.edit` is c
96
100
 
97
101
  For a `js` request sent to `demos#new`, `DR.routes.demos.js.new` is called and nothing else happens.
98
102
 
99
- ### Passing parameters
100
- __Optional__ Parameters are passed from a JSON DSL (such as [jbuilder](https://github.com/rails/jbuilder/)) and is passed as the `params` object to the function. You can pass any JSON object.
103
+ ### Templates and parameters
104
+ __Optional__ Parameters are passed from a JSON DSL (such as [jbuilder](https://github.com/rails/jbuilder/))
105
+ and is passed as the `params` object to the function.
106
+ You can pass any JSON object as a template.
101
107
 
102
108
  #### HTML
103
109
  `app/views/demos/edit_params.js.jbuilder`:
@@ -111,6 +117,7 @@ DR.routes.demos.html.edit({ alert_message: "ploop" });
111
117
  is called automatically.
112
118
 
113
119
  #### Javascript
120
+ For javascript to work, a template must exist.
114
121
  `app/views/demos/new.js.jbuilder`:
115
122
  ```ruby
116
123
  json.log_message "loggggggggggggg"
@@ -18,8 +18,12 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'rails', '>= 3.1'
21
+ spec.add_dependency 'rails', '>= 3.2'
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency "bundler"
24
+ spec.add_development_dependency "capybara-webkit"
25
+ spec.add_development_dependency "rspec-rails", "~> 2.14.0"
26
+ spec.add_development_dependency "jbuilder"
27
+ spec.add_development_dependency "jquery-rails"
24
28
  spec.add_development_dependency "rake"
25
29
  end
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'dom_routes', :path => '..'
4
+
5
+ gem 'rails', '~> 3.2.0'
6
+ gem 'capybara-webkit'
7
+ gem 'rspec-rails', '~> 2.14.0'
8
+ gem 'jbuilder'
9
+ gem 'jquery-rails'
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'dom_routes', :path => '..'
4
+
5
+ gem 'rails', '~> 4.0.0'
6
+ gem 'capybara-webkit'
7
+ gem 'rspec-rails', '~> 2.14.0'
8
+ gem 'jbuilder'
9
+ gem 'jquery-rails'
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'dom_routes', :path => '..'
4
+
5
+ gem 'rails', '~> 4.1.0'
6
+ gem 'capybara-webkit'
7
+ gem 'rspec-rails', '~> 2.14.0'
8
+ gem 'jbuilder'
9
+ gem 'jquery-rails'
@@ -1,3 +1,3 @@
1
1
  module DomRoutes
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -42,6 +42,7 @@ module DomRoutes
42
42
  end
43
43
 
44
44
  def execute_js_route(js_route=self.js_route, format=formats.first)
45
+ js_route = extract_js_route(js_route)
45
46
  controller_path, action = js_route.parts
46
47
  lambda = -> do
47
48
  if format == :html
@@ -61,10 +62,9 @@ module DomRoutes
61
62
  else
62
63
  %Q/
63
64
  DR.define_namespace('DR.routes', {
64
- params: #{js_params_namespace},
65
- init: function() { DR.exec_all(DR.routes.params); },
65
+ params: #{js_params_namespace}
66
66
  });
67
- $(DR.routes.init);
67
+ $(function() { DR.exec_all(#{js_params_namespace}); });
68
68
  /
69
69
  end
70
70
  }
@@ -0,0 +1,54 @@
1
+ //= require jquery_ujs
2
+ //= require dom_routes
3
+ //= require_self
4
+ //= require_tree .
5
+
6
+ test_append = function(controller_namespace, filter, params) {
7
+ var $div = $(document.createElement('div'));
8
+ $div.attr("filter", controller_namespace + "." + params.format + "." + filter);
9
+ $div.append(params.s);
10
+ $('#test_append').append($div);
11
+ };
12
+
13
+ create_routes = function(controller_namespace) {
14
+ var test = function(filter, params) {
15
+ test_append(controller_namespace, filter, params);
16
+ };
17
+
18
+ DR.define(controller_namespace, {
19
+ html: {
20
+ before: function(params) {
21
+ test("before", params);
22
+ },
23
+ index: function(params) {
24
+ test("index", params);
25
+ },
26
+ with_parameters: function(params) {
27
+ test("with_parameters", params);
28
+ },
29
+ manually_execute: function(params) {
30
+ test("manually_execute", params);
31
+ },
32
+ different_route: function(params) {
33
+ test("different_route", params);
34
+ },
35
+ redirect: function(params) {
36
+ test("redirect", params);
37
+ },
38
+ after: function(params) {
39
+ test("after", params);
40
+ }
41
+ },
42
+ js: {
43
+ before: function(params) {
44
+ test("before", params);
45
+ },
46
+ with_parameters: function(params) {
47
+ test("with_parameters", params);
48
+ },
49
+ after: function(params) {
50
+ test("after", params);
51
+ }
52
+ }
53
+ });
54
+ };
@@ -0,0 +1 @@
1
+ create_routes('application');
@@ -0,0 +1 @@
1
+ create_routes('dashboard.users');
@@ -0,0 +1 @@
1
+ create_routes('users');
@@ -0,0 +1,39 @@
1
+ class ApplicationController < ActionController::Base
2
+ self.append_view_path File.join(File.dirname(__FILE__), "views")
3
+ end
4
+
5
+ module BaseController
6
+ extend ActiveSupport::Concern
7
+
8
+ def index
9
+ render_users
10
+ end
11
+ def with_parameters
12
+ end
13
+
14
+ protected
15
+ def render_users
16
+ render "users/#{action_name}"
17
+ end
18
+ end
19
+
20
+ class UsersController < ApplicationController
21
+ include BaseController
22
+
23
+ def manually_execute
24
+ end
25
+
26
+ def different_route
27
+ self.js_route = "users/index"
28
+ end
29
+
30
+ def redirect
31
+ flash_js_route
32
+ redirect_to users_path
33
+ end
34
+ end
35
+ module Dashboard
36
+ class UsersController < ApplicationController
37
+ include BaseController
38
+ end
39
+ end
@@ -0,0 +1,5 @@
1
+ module ApplicationHelper
2
+ def params_test(json)
3
+ json.s "params_test"
4
+ end
5
+ end
@@ -0,0 +1,11 @@
1
+ <html>
2
+ <head>
3
+ <%= javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" %>
4
+ <%= javascript_include_tag "application" %>
5
+ </head>
6
+ <body data-controller="<%= js_route.controller_path %>" data-action="<%= js_route.action %>">
7
+ <div id="test_append"></div>
8
+ <%= yield %>
9
+ <%= execute_js_routes %>
10
+ </body>
11
+ </html>
@@ -0,0 +1 @@
1
+ <%= execute_js_route "users#index" %>
@@ -0,0 +1 @@
1
+ <%= link_to "ajax_link", '/users/with_parameters', remote: true %>
@@ -0,0 +1,29 @@
1
+ require 'rails'
2
+ require 'action_controller/railtie'
3
+ require 'action_view/railtie'
4
+ require "sprockets/railtie"
5
+
6
+ require 'jbuilder'
7
+ require 'jquery-rails'
8
+ require 'dom_routes'
9
+
10
+ module FakeApp
11
+ class Application < Rails::Application
12
+ config.secret_token = 'Listen to your heart. Be brave. Do what you gotta do.'
13
+ config.session_store :cookie_store, :key => 'session_store'
14
+ config.active_support.deprecation = :log
15
+ config.eager_load = false
16
+
17
+ config.root = File.dirname(__FILE__)
18
+ end
19
+ end
20
+ FakeApp::Application.initialize!
21
+
22
+ %w[routes].each do |file|
23
+ require "fake_app/#{file}"
24
+ end
25
+
26
+ %w[controllers helpers].each do |file|
27
+ require "fake_app/app/#{file}"
28
+ end
29
+ ActionView::Base.send :include, ApplicationHelper
@@ -0,0 +1,18 @@
1
+ FakeApp::Application.routes.draw do
2
+ resources :users, :only => [:index] do
3
+ collection do
4
+ get :with_parameters
5
+ get :manually_execute
6
+ get :different_route
7
+ get :redirect
8
+ end
9
+ end
10
+
11
+ namespace :dashboard do
12
+ resources :users, :only => [:index] do
13
+ collection do
14
+ get :with_parameters
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,82 @@
1
+ require 'spec_helper'
2
+
3
+ feature 'invoke correct dom route', :js => true do
4
+ def filters(controller_namespace, action, js=false)
5
+ formats = %w[html]
6
+ if js; formats += %w[js] end
7
+
8
+ formats.map do |format|
9
+ format_filters = %W[before #{action} after].map do |filter|
10
+ ["application.#{format}.#{filter}", "#{controller_namespace}.#{format}.#{filter}"]
11
+ end.flatten
12
+ format_filters[-1], format_filters[-2] = format_filters[-2], format_filters[-1]
13
+ format_filters
14
+ end.flatten
15
+ end
16
+
17
+ def test_elements(filters)
18
+ within '#test_append' do
19
+ all('div').zip(filters).each do |div, filter|
20
+ div[:filter].should == filter
21
+
22
+ if @parameters
23
+ div.text.should == "params_test"
24
+ end
25
+ end
26
+ end
27
+ end
28
+
29
+ context 'without parameters' do
30
+ before :all do
31
+ @parameters = false
32
+ end
33
+
34
+ scenario 'with basic controller' do
35
+ visit '/users'
36
+ test_elements filters('users', "index")
37
+ end
38
+
39
+ scenario 'with namespaced controller' do
40
+ visit '/dashboard/users'
41
+ test_elements filters('dashboard.users', "index")
42
+ end
43
+
44
+
45
+ scenario "with manual execution" do
46
+ visit '/users/manually_execute'
47
+ test_elements (filters('users', "index") + filters('users', 'manually_execute'))
48
+ end
49
+
50
+ scenario "with different route" do
51
+ visit '/users/different_route'
52
+ test_elements filters('users', "index")
53
+ end
54
+
55
+ scenario "with redirect" do
56
+ visit '/users/redirect'
57
+ test_elements (filters('users', 'redirect') + filters('users', "index"))
58
+ end
59
+ end
60
+
61
+ context 'with parameters' do
62
+ before :all do
63
+ @parameters = true
64
+ end
65
+
66
+ scenario 'with basic controller' do
67
+ visit '/users/with_parameters'
68
+ test_elements filters('users', "with_parameters")
69
+ end
70
+
71
+ scenario 'with namespaced controller' do
72
+ visit '/dashboard/users/with_parameters'
73
+ test_elements filters('dashboard.users', "with_parameters")
74
+ end
75
+
76
+ scenario 'with ajax' do
77
+ visit '/users/with_parameters'
78
+ click_link "ajax_link"
79
+ test_elements filters('users', "with_parameters", true)
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,8 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+
4
+ require 'fake_app/fake_app'
5
+ require 'capybara-webkit'
6
+ require 'rspec/rails'
7
+
8
+ Capybara.javascript_driver = :webkit
metadata CHANGED
@@ -1,66 +1,123 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dom_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - s12chung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2014-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: capybara-webkit
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.14.0
34
62
  type: :development
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
- - - ~>
66
+ - - "~>"
39
67
  - !ruby/object:Gem::Version
40
- version: '1.3'
68
+ version: 2.14.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: jbuilder
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jquery-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
41
97
  - !ruby/object:Gem::Dependency
42
98
  name: rake
43
99
  requirement: !ruby/object:Gem::Requirement
44
100
  requirements:
45
- - - '>='
101
+ - - ">="
46
102
  - !ruby/object:Gem::Version
47
103
  version: '0'
48
104
  type: :development
49
105
  prerelease: false
50
106
  version_requirements: !ruby/object:Gem::Requirement
51
107
  requirements:
52
- - - '>='
108
+ - - ">="
53
109
  - !ruby/object:Gem::Version
54
110
  version: '0'
55
- description: ' Auto-magical scaffolding for Paul Irish''s DOM-based Routing way of
56
- organizing your javascript. '
111
+ description: " Auto-magical scaffolding for Paul Irish's DOM-based Routing way of
112
+ organizing your javascript. "
57
113
  email:
58
114
  - steve@placemarkhq.com
59
115
  executables: []
60
116
  extensions: []
61
117
  extra_rdoc_files: []
62
118
  files:
63
- - .gitignore
119
+ - ".gitignore"
120
+ - ".travis.yml"
64
121
  - Gemfile
65
122
  - LICENSE.txt
66
123
  - README.md
@@ -68,10 +125,32 @@ files:
68
125
  - app/assets/javascripts/dom_routes.js
69
126
  - app/views/layouts/application.js.erb
70
127
  - dom_routes.gemspec
128
+ - gemfiles/Gemfile-rails.3.2.x
129
+ - gemfiles/Gemfile-rails.4.0.x
130
+ - gemfiles/Gemfile-rails.4.1.x
71
131
  - lib/dom_routes.rb
72
132
  - lib/dom_routes/controller.rb
73
133
  - lib/dom_routes/version.rb
74
134
  - lib/dom_routes/view_helpers.rb
135
+ - spec/fake_app/app/assets/javascripts/application.js
136
+ - spec/fake_app/app/assets/javascripts/routes/application_routes.js
137
+ - spec/fake_app/app/assets/javascripts/routes/dashboard/users_routes.js
138
+ - spec/fake_app/app/assets/javascripts/routes/users_routes.js
139
+ - spec/fake_app/app/controllers.rb
140
+ - spec/fake_app/app/helpers.rb
141
+ - spec/fake_app/app/views/dashboard/users/with_parameters.html.erb
142
+ - spec/fake_app/app/views/dashboard/users/with_parameters_params.js.jbuilder
143
+ - spec/fake_app/app/views/layouts/application.html.erb
144
+ - spec/fake_app/app/views/users/different_route.html.erb
145
+ - spec/fake_app/app/views/users/index.html.erb
146
+ - spec/fake_app/app/views/users/manually_execute.html.erb
147
+ - spec/fake_app/app/views/users/with_parameters.html.erb
148
+ - spec/fake_app/app/views/users/with_parameters.js.jbuilder
149
+ - spec/fake_app/app/views/users/with_parameters_params.js.jbuilder
150
+ - spec/fake_app/fake_app.rb
151
+ - spec/fake_app/routes.rb
152
+ - spec/features/dom_routes_spec.rb
153
+ - spec/spec_helper.rb
75
154
  homepage: ''
76
155
  licenses:
77
156
  - MIT
@@ -82,19 +161,38 @@ require_paths:
82
161
  - lib
83
162
  required_ruby_version: !ruby/object:Gem::Requirement
84
163
  requirements:
85
- - - '>='
164
+ - - ">="
86
165
  - !ruby/object:Gem::Version
87
166
  version: '0'
88
167
  required_rubygems_version: !ruby/object:Gem::Requirement
89
168
  requirements:
90
- - - '>='
169
+ - - ">="
91
170
  - !ruby/object:Gem::Version
92
171
  version: '0'
93
172
  requirements: []
94
173
  rubyforge_project:
95
- rubygems_version: 2.0.3
174
+ rubygems_version: 2.2.2
96
175
  signing_key:
97
176
  specification_version: 4
98
177
  summary: Auto-magical scaffolding for Paul Irish's DOM-based Routing way of organizing
99
178
  your javascript.
100
- test_files: []
179
+ test_files:
180
+ - spec/fake_app/app/assets/javascripts/application.js
181
+ - spec/fake_app/app/assets/javascripts/routes/application_routes.js
182
+ - spec/fake_app/app/assets/javascripts/routes/dashboard/users_routes.js
183
+ - spec/fake_app/app/assets/javascripts/routes/users_routes.js
184
+ - spec/fake_app/app/controllers.rb
185
+ - spec/fake_app/app/helpers.rb
186
+ - spec/fake_app/app/views/dashboard/users/with_parameters.html.erb
187
+ - spec/fake_app/app/views/dashboard/users/with_parameters_params.js.jbuilder
188
+ - spec/fake_app/app/views/layouts/application.html.erb
189
+ - spec/fake_app/app/views/users/different_route.html.erb
190
+ - spec/fake_app/app/views/users/index.html.erb
191
+ - spec/fake_app/app/views/users/manually_execute.html.erb
192
+ - spec/fake_app/app/views/users/with_parameters.html.erb
193
+ - spec/fake_app/app/views/users/with_parameters.js.jbuilder
194
+ - spec/fake_app/app/views/users/with_parameters_params.js.jbuilder
195
+ - spec/fake_app/fake_app.rb
196
+ - spec/fake_app/routes.rb
197
+ - spec/features/dom_routes_spec.rb
198
+ - spec/spec_helper.rb