ember-appkit-rails 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/templates/application.hbs +569 -5
  3. data/lib/ember-appkit-rails.rb +0 -9
  4. data/lib/ember/appkit/rails.rb +15 -3
  5. data/lib/ember/appkit/rails/active_support.rb +1 -0
  6. data/lib/ember/appkit/rails/active_support/dependencies.rb +10 -0
  7. data/lib/ember/appkit/rails/engine.rb +49 -19
  8. data/lib/ember/appkit/rails/sprockets.rb +1 -0
  9. data/lib/ember/appkit/rails/sprockets/context.rb +10 -0
  10. data/lib/ember/appkit/rails/sprockets/processed_asset.rb +1 -1
  11. data/lib/ember/appkit/rails/template.rb +109 -0
  12. data/lib/ember/appkit/rails/version.rb +1 -1
  13. data/lib/ember/appkit/rails/walker.rb +99 -0
  14. data/lib/generators/ember/bootstrap_generator.rb +16 -8
  15. data/lib/generators/ember/component_generator.rb +1 -1
  16. data/lib/generators/ember/generator_helpers.rb +1 -1
  17. data/lib/generators/ember/model_generator.rb +1 -1
  18. data/lib/generators/ember/resource_generator.rb +3 -4
  19. data/lib/generators/ember/resource_override.rb +21 -0
  20. data/lib/generators/ember/scaffold_controller_override.rb +14 -0
  21. data/lib/generators/ember/scaffold_override.rb +25 -0
  22. data/lib/generators/templates/{adapter.js → adapter.js.erb} +1 -1
  23. data/lib/generators/templates/application.js.erb +0 -1
  24. data/lib/generators/templates/environments/development.js +3 -0
  25. data/lib/generators/templates/environments/production.js +3 -0
  26. data/lib/generators/templates/environments/test.js +3 -0
  27. data/lib/generators/templates/scaffold/template/index.hbs +2 -2
  28. data/lib/generators/templates/scaffold/template/show.hbs +1 -1
  29. data/lib/generators/templates/scaffold_controller/controller.rb +56 -0
  30. data/test/dummy/Gemfile +0 -3
  31. data/test/dummy/app/assets/javascripts/application.js +16 -0
  32. data/test/dummy/app/models/is_a_module/dog.rb +0 -0
  33. data/test/dummy/config/adapter.js.erb +3 -0
  34. data/test/dummy/config/application.js +0 -1
  35. data/test/dummy/config/environments/development.js +3 -0
  36. data/test/dummy/config/environments/production.js +3 -0
  37. data/test/dummy/config/environments/test.js +3 -0
  38. data/test/dummy/config/initializers/secret_token.rb +1 -1
  39. data/test/dummy/log/test.log +47 -12
  40. data/test/dummy/tmp/{ember-rails/ember.js → cache/assets/test/sprockets/012cc56cb3d167247c623ab5a4dd2f8a} +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sprockets/07afa5d8ceda557642e2330ab45eb203 +0 -0
  42. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sprockets/1d5975f28925835fe6077b200f4f150f +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sprockets/1f15c49a05b13c3a7ee50d2ac3900f38 +0 -0
  45. data/test/dummy/tmp/{ember-rails/ember-data.js → cache/assets/test/sprockets/352c2af460d03b624ae5652411a463d1} +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  47. data/test/dummy/tmp/cache/assets/test/sprockets/4a1d4e32cd7b9fd1c62bfd553ae56051 +0 -0
  48. data/test/dummy/tmp/cache/assets/test/sprockets/{6870da13c3305651063dc22ccce27d5c → 5421e30f80c2b8cdf4379b8dce18bcd3} +0 -0
  49. data/test/dummy/tmp/cache/assets/test/sprockets/645beb565f2e6d67728537e06963533d +0 -0
  50. data/test/dummy/tmp/cache/assets/test/sprockets/660bc633c8899c6c1b20514637fa0169 +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sprockets/67afcba9807cd5e57b80b5fdf9f26758 +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sprockets/{8ebc8c58233ab12eee6edfc0feca2492 → 702dbd08a7eb5e831dd268e0460d97b2} +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/7ca4966e0a480430a858a7ab74518c75 +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/827fafc13575b345cc572fd041ef1fba +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/83af35bb6b852de883a26a9458fd4e3a +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/9160f792acb62d1f7721c714681fcfe6 +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/ae884a1acda0e6f9bb27a856a22bb08d +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sprockets/bb4a2293175928af3e23c47488077098 +0 -0
  59. data/test/dummy/tmp/cache/assets/test/sprockets/bf689240392e7355c0de5cfd47272146 +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sprockets/d5a48c6656341c56cac8a8e42bb925a5 +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sprockets/de0932670a6c856bc6eda1586fd29061 +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sprockets/de94a60b438eb5bf57653f3a220acd80 +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/e15ec26dd7914851e352c6f2c73c4284 +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/e3ddb4a07e99c5bbf5f9cd9db3cdb82a +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/e9abb671d48f6ff2be6ffb463ea652bf +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/eeb5bd38d1dad0d908461fd114f702bc +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/fde9e78f8d55a70f4ef757638fc6cde0 +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/fdfac6623944c5a23737724cbd90e58e +0 -0
  70. data/test/fixtures/routes_with_api_and_version_namespaces.rb +6 -0
  71. data/test/fixtures/routes_with_api_namespace.rb +4 -0
  72. data/test/generators/bootstrap_generator_test.rb +6 -3
  73. data/test/generators/component_generator_test.rb +6 -6
  74. data/test/generators/model_generator_test.rb +8 -2
  75. data/test/generators/resource_generator_test.rb +6 -6
  76. data/test/generators/resource_override_test.rb +10 -4
  77. data/test/generators/scaffold_override_test.rb +94 -0
  78. data/test/integration/autoload_modules_test.rb +22 -0
  79. data/test/integration/navigation_test.rb +1 -2
  80. data/test/support/generator_test_support.rb +8 -10
  81. data/test/test_helper.rb +2 -1
  82. data/vendor/assets/javascripts/app.js.es6.erb +1 -1
  83. data/vendor/assets/javascripts/ember-appkit/index.js +1 -3
  84. data/vendor/assets/javascripts/ember-appkit/loader.js +53 -0
  85. metadata +98 -41
  86. data/lib/ember/appkit.rb +0 -5
  87. data/lib/ember/appkit/rails/resource_override.rb +0 -14
  88. data/test/dummy/config/adapter.js +0 -3
  89. data/test/dummy/tmp/cache/assets/test/sprockets/07a9ce16127008e142b1b0223c4d7784 +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/a2f615309ade94c14ae81d7ebc94fd67 +0 -0
  91. data/test/dummy/tmp/cache/assets/test/sprockets/a9648a765fed0738b076bd24099109a3 +0 -0
  92. data/test/dummy/tmp/cache/assets/test/sprockets/b340d5578308bb4c197a8ca3538b0e24 +0 -0
  93. data/test/dummy/tmp/cache/assets/test/sprockets/c8c4c1b316845f30168739b5795846d6 +0 -0
  94. data/test/dummy/tmp/cache/assets/test/sprockets/e22019b3c13c20bc08e899fb2b7248ea +0 -0
  95. data/vendor/assets/javascripts/ember-appkit/almond.js +0 -417
@@ -53,7 +53,7 @@ module Ember
53
53
  end
54
54
 
55
55
  def configuration
56
- ::Rails.configuration.ember.appkit
56
+ ::Rails.configuration.ember
57
57
  end
58
58
  end
59
59
  end
@@ -10,7 +10,7 @@ module Ember
10
10
  argument :attributes, :type => :array, :default => [], :banner => "field[:type] field[:type] ..."
11
11
 
12
12
  def create_model_files
13
- file_path = File.join(app_path, 'models', class_path, "#{file_name}.js.es6")
13
+ file_path = File.join(app_path, 'models', class_path, "#{file_name.singularize}.js.es6")
14
14
  template "model.js.es6", file_path
15
15
  end
16
16
 
@@ -1,4 +1,3 @@
1
- require 'ember/appkit/rails/resource_override'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -16,11 +15,11 @@ module Ember
16
15
 
17
16
  def create_resource_files
18
17
  unless options[:skip_route]
19
- invoke('ember:route', [ name ], options)
18
+ invoke('ember:route', [ name.pluralize ], options)
20
19
  inject_into_router_file(name)
21
20
  end
22
- invoke('ember:controller', [ name ], options)
23
- invoke('ember:template', [ name ], options)
21
+ invoke('ember:controller', [ name.pluralize ], options)
22
+ invoke('ember:template', [ name.pluralize ], options)
24
23
  end
25
24
 
26
25
  private
@@ -0,0 +1,21 @@
1
+ require "rails/generators"
2
+ require "rails/generators/rails/resource/resource_generator"
3
+ require "generators/ember/controller_generator"
4
+ require "generators/ember/view_generator"
5
+
6
+ module Rails
7
+ module Generators
8
+ ResourceGenerator.class_eval do
9
+ class_option :ember, aliases: '-e', desc: 'force ember resource to generate', optional: true, type: 'boolean', default: false, banner: '--ember'
10
+
11
+ def add_ember
12
+ if options.ember
13
+ say_status :invoke, "ember:resource", :white
14
+ with_padding do
15
+ invoke "ember:resource", [singular_name, attributes.map { |a| "#{a.name}:#{a.type}" }].flatten
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
3
+
4
+ module Rails
5
+ module Generators
6
+ class ScaffoldControllerGenerator
7
+ source_root File.expand_path('../../templates/scaffold_controller', __FILE__)
8
+
9
+ def create_controller_files
10
+ template "controller.rb", File.join("app/controllers/api/v#{::Rails.application.config.ember.api_version}", class_path, "#{controller_file_name}_controller.rb")
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/rails/scaffold/scaffold_generator'
3
+ require 'ember/appkit/rails/walker'
4
+
5
+ module Rails
6
+ module Generators
7
+ class ScaffoldGenerator
8
+ class_option :ember, aliases: '-e', desc: 'force ember resource to generate', optional: true, type: 'boolean', default: false, banner: '--ember'
9
+ remove_hook_for :resource_route
10
+
11
+ def add_ember
12
+ if options.ember
13
+ say_status :invoke, "ember:resource", :white
14
+ with_padding do
15
+ invoke "ember:scaffold", [singular_name, attributes.map { |a| "#{a.name}:#{a.type}" }].flatten
16
+ end
17
+ end
18
+ end
19
+
20
+ def write_resource
21
+ Walker.new(file_path.pluralize, File.join(destination_root, 'config/routes.rb'), ::Rails.application.config.ember.api_version).run
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,3 +1,3 @@
1
1
  window.<%= application_name.camelize %>.ApplicationAdapter = DS.ActiveModelAdapter.extend({
2
- namespace: 'api/v1'
2
+ namespace: 'api/v<%%= Rails.application.config.ember.api_version %>'
3
3
  });
@@ -1,7 +1,6 @@
1
1
  //= require jquery
2
2
  //= require environment
3
3
  //= require ember-appkit
4
- //= require ember-data
5
4
  //= require_self
6
5
  //= require adapter
7
6
  //= require router
@@ -0,0 +1,3 @@
1
+ //= require handlebars
2
+ //= require ember
3
+ //= require ember-data
@@ -0,0 +1,3 @@
1
+ //= require handlebars.runtime
2
+ //= require ember.prod
3
+ //= require ember-data.prod
@@ -0,0 +1,3 @@
1
+ //= require handlebars
2
+ //= require ember
3
+ //= require ember-data
@@ -1,6 +1,6 @@
1
1
  <h3>Index</h3>
2
2
 
3
- <p>{{#link-to '<%= file_name.pluralize -%>.new'}}New <%= file_name.singularize -%>{{/link-to}}</p>
3
+ <p>{{link-to 'New <%= file_name.singularize -%>' '<%= file_name.pluralize -%>.new'}}</p>
4
4
 
5
5
  <table>
6
6
  <tr>
@@ -11,7 +11,7 @@
11
11
  </tr>
12
12
  {{#each}}
13
13
  <tr>
14
- <td>{{#link-to '<%= file_name.pluralize -%>.show' this}}{{id}}{{/link-to}}</td>
14
+ <td>{{link-to id '<%= file_name.pluralize -%>.show' this}}</td>
15
15
  <% attributes.each do |attribute| -%>
16
16
  <td>{{<%= attribute[:name] -%>}}</td>
17
17
  <% end -%>
@@ -1,6 +1,6 @@
1
1
  <h3>{{id}}</h3>
2
2
 
3
- <p>{{#link-to '<%= file_name.pluralize -%>.edit' this}}Edit{{/link-to}} <button {{action destroyRecord}}>Destroy</button></p>
3
+ <p>{{link-to 'Edit' '<%= file_name.pluralize -%>.edit' this}} <button {{action destroyRecord}}>Destroy</button></p>
4
4
 
5
5
  <ul>
6
6
  <% attributes.each do |attribute| -%>
@@ -0,0 +1,56 @@
1
+ <% api_version = Rails.application.config.ember.api_version -%>
2
+ class Api::V<%= api_version %>::<%= controller_class_name %>Controller < ApplicationController
3
+ before_action :set_<%= singular_table_name %>, only: [:show, :update, :destroy]
4
+
5
+ # GET <%= route_url %>
6
+ def index
7
+ render json: <%= orm_class.all(class_name) %>
8
+ end
9
+
10
+ # GET <%= route_url %>/1
11
+ def show
12
+ render json: <%= "@#{singular_table_name}" %>
13
+ end
14
+
15
+ # POST <%= route_url %>
16
+ def create
17
+ @<%= singular_table_name %> = <%= orm_class.build(class_name, "#{singular_table_name}_params") %>
18
+
19
+ if @<%= orm_instance.save %>
20
+ render json: <%= "@#{singular_table_name}" %>, status: :created, location: [:api, :v<%= api_version %>, <%= "@#{singular_table_name}" %>]
21
+ else
22
+ render json: <%= "@#{orm_instance.errors}" %>, status: :unprocessable_entity
23
+ end
24
+ end
25
+
26
+ # PATCH/PUT <%= route_url %>/1
27
+ def update
28
+ if @<%= orm_instance.update("#{singular_table_name}_params") %>
29
+ render json: <%= "@#{singular_table_name}" %>, status: :ok, location: [:api, :v<%= api_version %>, <%= "@#{singular_table_name}" %>]
30
+ else
31
+ render json: <%= "@#{orm_instance.errors}" %>, status: :unprocessable_entity
32
+ end
33
+ end
34
+
35
+ # DELETE <%= route_url %>/1
36
+ def destroy
37
+ @<%= orm_instance.destroy %>
38
+ head :no_content
39
+ end
40
+
41
+ private
42
+
43
+ # Use callbacks to share common setup or constraints between actions.
44
+ def set_<%= singular_table_name %>
45
+ @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
46
+ end
47
+
48
+ # Never trust parameters from the scary internet, only allow the white list through.
49
+ def <%= "#{singular_table_name}_params" %>
50
+ <%- if attributes_names.empty? -%>
51
+ params[<%= ":#{singular_table_name}" %>]
52
+ <%- else -%>
53
+ params.require(<%= ":#{singular_table_name}" %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
54
+ <%- end -%>
55
+ end
56
+ end
@@ -19,9 +19,6 @@ gem 'coffee-rails', '~> 4.0.0'
19
19
  # Use jquery as the JavaScript library
20
20
  gem 'jquery-rails'
21
21
 
22
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
23
- gem 'jbuilder', '~> 1.2'
24
-
25
22
  group :doc do
26
23
  # bundle exec rake doc:rails generates the API under doc/api.
27
24
  gem 'sdoc', require: false
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ window.App.ApplicationAdapter = DS.ActiveModelAdapter.extend({
2
+ namespace: 'api/v<%= Rails.application.config.ember.api_version %>'
3
+ });
@@ -1,7 +1,6 @@
1
1
  //= require jquery
2
2
  //= require environment
3
3
  //= require ember-appkit
4
- //= require ember-data
5
4
  //= require_self
6
5
  //= require adapter
7
6
  //= require router
@@ -0,0 +1,3 @@
1
+ //= require handlebars
2
+ //= require ember
3
+ //= require ember-data
@@ -0,0 +1,3 @@
1
+ //= require handlebars.runtime
2
+ //= require ember.prod
3
+ //= require ember-data.prod
@@ -0,0 +1,3 @@
1
+ //= require handlebars
2
+ //= require ember
3
+ //= require ember-data
@@ -9,4 +9,4 @@
9
9
 
10
10
  # Make sure your secret_key_base is kept private
11
11
  # if you're sharing your code publicly.
12
- Dummy::Application.config.secret_key_base = '4b4d7fb6c5c5bb1fbbdc8599a13db9cb1f554f025593b17276329db151252d373a5679452021e951c41b93bced489a5856d8389054f2af5e4b3478aec25d3248'
12
+ Dummy::Application.config.secret_key_base = '25ca68e76606eba7170ecf1af9f59d9fb104130250f61a76725b9fa54054d439b43eb6901044570baed491c7ac0f2b080571ba44c516262102c37471bcb4ed37'
@@ -4,9 +4,9 @@ BootstrapGeneratorTest: test_Assert_folder_layout_and_.gitkeep_files_are_properl
4
4
  -----------------------------------------------------------------
5
5
  BootstrapGeneratorTest: test_Does_not_error_if_Gemfile_is_missing
6
6
  -----------------------------------------------------------------
7
- --------------------------------------------------------------------
8
- BootstrapGeneratorTest: test_Removed_app/assets/javascript_directory
9
- --------------------------------------------------------------------
7
+ ---------------------------------------------
8
+ BootstrapGeneratorTest: test_Removed_jbuilder
9
+ ---------------------------------------------
10
10
  -----------------------------------------------
11
11
  BootstrapGeneratorTest: test_Removes_turbolinks
12
12
  -----------------------------------------------
@@ -76,6 +76,9 @@ ModelGeneratorTest: test_create_model
76
76
  ------------------------------------------------
77
77
  ModelGeneratorTest: test_create_namespaced_model
78
78
  ------------------------------------------------
79
+ --------------------------------------------------------
80
+ ModelGeneratorTest: test_forces_pluarl_names_to_singular
81
+ --------------------------------------------------------
79
82
  ---------------------------------------------------------------------------
80
83
  ModelGeneratorTest: test_leave_parentheses_when_create_model_w/o_attributes
81
84
  ---------------------------------------------------------------------------
@@ -100,12 +103,39 @@ ResourceOverrideTest: test_create_template_with_ember
100
103
  --------------------------------------------------------
101
104
  ResourceOverrideTest: test_create_template_without_ember
102
105
  --------------------------------------------------------
106
+ -----------------------------------------------------------------------------
107
+ ResourceOverrideTest: test_does_not_create_non-essential_files_for_ember_apps
108
+ -----------------------------------------------------------------------------
103
109
  ----------------------------------------------------------
104
110
  RouteGeneratorTest: test_Assert_files_are_properly_created
105
111
  ----------------------------------------------------------
106
112
  -------------------------------------------
107
113
  ScaffoldGeneratorTest: test_create_template
108
114
  -------------------------------------------
115
+ -----------------------------------------------------
116
+ ScaffoldOverrideTest: test_create_template_with_ember
117
+ -----------------------------------------------------
118
+ --------------------------------------------------------
119
+ ScaffoldOverrideTest: test_create_template_without_ember
120
+ --------------------------------------------------------
121
+ --------------------------------------------------------------------
122
+ ScaffoldOverrideTest: test_creates_api_version_namespaced_controller
123
+ --------------------------------------------------------------------
124
+ ----------------------------------------------------------------
125
+ ScaffoldOverrideTest: test_creates_properly_namespaced_api_route
126
+ ----------------------------------------------------------------
127
+ ----------------------------------------------------------------------------------------------------------------------
128
+ ScaffoldOverrideTest: test_creates_properly_namespaced_api_routes_when_api_and_other_version_namespaces_already_exists
129
+ ----------------------------------------------------------------------------------------------------------------------
130
+ ----------------------------------------------------------------------------------------------------------------
131
+ ScaffoldOverrideTest: test_creates_properly_namespaced_api_routes_when_api_and_version_namespaces_already_exists
132
+ ----------------------------------------------------------------------------------------------------------------
133
+ ---------------------------------------------------------------------------------------------------
134
+ ScaffoldOverrideTest: test_creates_properly_namespaced_api_routes_when_api_namespace_already_exists
135
+ ---------------------------------------------------------------------------------------------------
136
+ -----------------------------------------------------------------------------
137
+ ScaffoldOverrideTest: test_does_not_create_non-essential_files_for_ember_apps
138
+ -----------------------------------------------------------------------------
109
139
  --------------------------------------------------------------
110
140
  TemplateGeneratorTest: test_Uses_config.ember.appkit.paths.app
111
141
  --------------------------------------------------------------
@@ -130,20 +160,25 @@ ViewGeneratorTest: test_create_view_with_template_by_default
130
160
  ------------------------------------------------------
131
161
  ViewGeneratorTest: test_create_view_without_a_template
132
162
  ------------------------------------------------------
163
+ ----------------------------------------------------------------------------------
164
+ AutoloadModulesTest: test_does_create_modules_for_directories_that_have_ruby_files
165
+ ----------------------------------------------------------------------------------
166
+ --------------------------------------------------------------------------------------------------
167
+ AutoloadModulesTest: test_does_not_auto_create_modules_for_directories_that_do_not_have_ruby_files
168
+ --------------------------------------------------------------------------------------------------
133
169
  ----------------------------------------------------
134
170
  NavigationTest: test_can_render_default_landing_page
135
171
  ----------------------------------------------------
136
- Started GET "/" for 127.0.0.1 at 2013-12-04 12:10:49 -0500
172
+ Started GET "/" for 127.0.0.1 at 2014-01-01 08:12:54 -0500
137
173
  Processing by LandingController#index as HTML
138
- Rendered inline template within layouts/application (1.0ms)
139
- Completed 200 OK in 390ms (Views: 389.5ms)
140
- Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-04 12:10:49 -0500
141
- Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-04 12:10:49 -0500
174
+ Completed 200 OK in 401ms (Views: 400.8ms)
175
+ Started GET "/assets/application.css" for 127.0.0.1 at 2014-01-01 08:12:54 -0500
176
+ Started GET "/assets/application.js" for 127.0.0.1 at 2014-01-01 08:12:54 -0500
142
177
  ---------------------------------------------------
143
178
  NavigationTest: test_can_using_simple_"ember_magic"
144
179
  ---------------------------------------------------
145
- Started GET "/" for 127.0.0.1 at 2013-12-04 12:10:50 -0500
180
+ Started GET "/" for 127.0.0.1 at 2014-01-01 08:12:55 -0500
146
181
  Processing by LandingController#index as HTML
147
- Completed 200 OK in 1ms (Views: 1.0ms)
148
- Started GET "/assets/application.js" for 127.0.0.1 at 2013-12-04 12:10:50 -0500
149
- Started GET "/assets/application.css" for 127.0.0.1 at 2013-12-04 12:10:50 -0500
182
+ Completed 200 OK in 1ms (Views: 1.2ms)
183
+ Started GET "/assets/application.js" for 127.0.0.1 at 2014-01-01 08:12:55 -0500
184
+ Started GET "/assets/application.css" for 127.0.0.1 at 2014-01-01 08:12:55 -0500
@@ -0,0 +1,6 @@
1
+ Dummy::Application.routes.draw do
2
+ namespace :api do
3
+ namespace :v1 do
4
+ end
5
+ end
6
+ end