ember-appkit-rails 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +21 -3
  3. data/lib/ember/appkit/rails/version.rb +1 -1
  4. data/lib/generators/ember/component_generator.rb +24 -0
  5. data/lib/generators/ember/controller_generator.rb +31 -0
  6. data/lib/generators/ember/generator_helpers.rb +15 -3
  7. data/lib/generators/ember/model_generator.rb +47 -0
  8. data/lib/generators/ember/resource_generator.rb +25 -0
  9. data/lib/generators/ember/template_generator.rb +20 -0
  10. data/lib/generators/ember/view_generator.rb +23 -0
  11. data/lib/generators/templates/array_controller.js.es6 +4 -0
  12. data/lib/generators/templates/component.js.es6 +2 -0
  13. data/lib/generators/templates/component.template.hbs +0 -0
  14. data/lib/generators/templates/controller.js.es6 +3 -0
  15. data/lib/generators/templates/model.js.es6 +11 -0
  16. data/lib/generators/templates/object_controller.js.es6 +4 -0
  17. data/lib/generators/templates/template.hbs +5 -0
  18. data/lib/generators/templates/view.js.es6 +3 -0
  19. data/test/dummy/app/assets/javascripts/controllers/index.js.es6 +1 -3
  20. data/test/dummy/config/environments/development.rb +0 -1
  21. data/test/dummy/config/environments/test.rb +0 -1
  22. data/test/dummy/log/development.log +392 -0
  23. data/test/dummy/log/test.log +1160 -0
  24. data/test/dummy/tmp/app/assets/javascripts/templates/post.hbs +5 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/{f2a13b6bc27457cb7513b583b4e69ed5 → 07a9ce16127008e142b1b0223c4d7784} +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/19c9bc7dbf67a891e93c7a663a62ff1c +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/22d5df6f378a04858f2123ee6e176ff1 +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/{f8c79edb4a48d7e4f74a6113d25f4699 → 2ad53936554864466b852e4eae6d6803} +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/30e6b42a491dc4952ff020137405d502 +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/331122f2f78d79778408023cf5bad1e3 +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sprockets/34b3026e7f937c6a19a0aee7f8451aad +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/36b770b8db4bb47ce9c524d7104be2e9 +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/4a1d4e32cd7b9fd1c62bfd553ae56051 +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/4bde569e155e5abfc2bc79bb61721688 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/{f46d0d400dce471af50b05c9ac272ba9 → 5776b21d8a87e618d8323a9c4d3c86ff} +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/720ee922899be7948cc2a8b27660ce0b +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/7689ffe6d7c831ee178e07106482b2cc +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sprockets/7bf1770d3a1c8bc1b59a4bc89d5c4bca +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sprockets/7d008b32a16b10ea72ea849f47d9a095 +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sprockets/{3b825365f669ab10c71ccee9d64335b6 → 889c68982dadf8d222309363924fe44b} +0 -0
  42. data/test/dummy/tmp/cache/assets/test/sprockets/8e9feb35d7e388f760d17aaf89b32731 +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sprockets/8ebc8c58233ab12eee6edfc0feca2492 +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sprockets/{0f63b9e77aec7451fc0c21d376f8eb28 → b340d5578308bb4c197a8ca3538b0e24} +0 -0
  45. data/test/dummy/tmp/cache/assets/test/sprockets/b3a5b51571520b61f892c51e979b9f53 +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sprockets/bb4a2293175928af3e23c47488077098 +0 -0
  47. data/test/dummy/tmp/cache/assets/test/sprockets/bf689240392e7355c0de5cfd47272146 +0 -0
  48. data/test/dummy/tmp/cache/assets/test/sprockets/c0bb6b15bdd48873e96974816e18abe9 +0 -0
  49. data/test/dummy/tmp/cache/assets/test/sprockets/c8c4c1b316845f30168739b5795846d6 +0 -0
  50. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sprockets/{b692b37dad694df23f130ceda8c808dd → dd568c8ef1f3f20b5931d72ef2eb5963} +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sprockets/e2a67ad17895f7711966ca1a5ff7af86 +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/e44f5ebcd8f42995512e64b96b63c9cf +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/e8aa57b28c86586b8b7344feb891c43f +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/e9abb671d48f6ff2be6ffb463ea652bf +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/ed5238112abbfd6a794a100804365903 +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  58. data/test/dummy/tmp/ember-rails/ember.js +185 -120
  59. data/test/dummy/tmp/generator_test_output/app/assets/javascripts/application.js +0 -0
  60. data/test/dummy/tmp/generator_test_output/app/assets/javascripts/custom/application.js +0 -0
  61. data/test/dummy/tmp/generator_test_output/app/assets/javascripts/views/post.js.es6 +3 -0
  62. data/test/generators/bootstrap_generator_test.rb +18 -0
  63. data/test/generators/component_generator_test.rb +58 -0
  64. data/test/generators/controller_generator_test.rb +51 -0
  65. data/test/generators/model_generator_test.rb +48 -0
  66. data/test/generators/resource_generator_test.rb +43 -0
  67. data/test/generators/template_generator_test.rb +31 -0
  68. data/test/generators/view_generator_test.rb +55 -0
  69. data/test/support/generator_test_support.rb +14 -1
  70. data/vendor/assets/javascripts/app.js.es6 +13 -0
  71. data/{test/dummy/tmp/cache/assets/development/sprockets/ebc77031c7503fcc60aaa5c603aa9138 → vendor/assets/javascripts/ember-appkit/almond.js} +0 -0
  72. data/vendor/assets/javascripts/ember-appkit/index.js +5 -0
  73. data/vendor/assets/javascripts/ember-appkit/resolver.js +169 -0
  74. metadata +68 -132
  75. data/test/dummy/tmp/cache/assets/development/sprockets/009d416d9e579ca73b72e11a882283db +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/0f63b9e77aec7451fc0c21d376f8eb28 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/13c56481151a0f8ff72b183daf16c0ba +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/19c9bc7dbf67a891e93c7a663a62ff1c +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/22d5df6f378a04858f2123ee6e176ff1 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/30095b6d23a5bac343099341a88a9768 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/30e6b42a491dc4952ff020137405d502 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/32a4bf18777e24ecbd1bb7bf1afb9d41 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/331122f2f78d79778408023cf5bad1e3 +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/34b3026e7f937c6a19a0aee7f8451aad +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/36b770b8db4bb47ce9c524d7104be2e9 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/3a168599f447464b14332bdfd140ff00 +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/3b825365f669ab10c71ccee9d64335b6 +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/3f60ef531652da88a591066588c06000 +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/3fa9b534ed1d39ba8274b7ab49a38d11 +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/4138a0978ec2097970b05e52c1d1cf94 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/61df2fa75b3733030a82b166f1c135e9 +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/720ee922899be7948cc2a8b27660ce0b +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/7689ffe6d7c831ee178e07106482b2cc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/776c336ba7d7935e564e9bf5072e3dd8 +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/7bf1770d3a1c8bc1b59a4bc89d5c4bca +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/7d008b32a16b10ea72ea849f47d9a095 +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/832a081f27208b2b977b49b487d2bc89 +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/8333b0a9d6f14badf985b50415d5deee +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/8e9feb35d7e388f760d17aaf89b32731 +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/8ebc8c58233ab12eee6edfc0feca2492 +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/8fc8cc19ffe18f3fb8d3a8506d9169b3 +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/91ce00d4fbb2d91206d66229af2dda20 +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/9475a88de7edd7f2eb6268573986cbdd +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/aee731d32c121990e31f5d68a034087c +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/b6477f770c118c6b4362a1043ea87879 +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/b692b37dad694df23f130ceda8c808dd +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/b7ee576b652da2c60e89e6a466d073f4 +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/c0bb6b15bdd48873e96974816e18abe9 +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/c8c4c1b316845f30168739b5795846d6 +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/d05ba20923e543730084eb723e770f12 +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/e1658f6900cfc0ba388976a2fd25f94f +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/e2a67ad17895f7711966ca1a5ff7af86 +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/e44f5ebcd8f42995512e64b96b63c9cf +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/e610538e56e78934ee9fa328294fcc06 +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/e8aa57b28c86586b8b7344feb891c43f +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/ed5238112abbfd6a794a100804365903 +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/f2a13b6bc27457cb7513b583b4e69ed5 +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/f46d0d400dce471af50b05c9ac272ba9 +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/f8c79edb4a48d7e4f74a6113d25f4699 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/fa20075040efd309e2e2fdb310135e63 +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/fdcd9e39dbe03f947086b7e6c1ce29d2 +0 -0
  125. data/test/dummy/tmp/cache/assets/test/sprockets/009d416d9e579ca73b72e11a882283db +0 -0
  126. data/test/dummy/tmp/cache/assets/test/sprockets/32a4bf18777e24ecbd1bb7bf1afb9d41 +0 -0
  127. data/test/dummy/tmp/cache/assets/test/sprockets/3a168599f447464b14332bdfd140ff00 +0 -0
  128. data/test/dummy/tmp/cache/assets/test/sprockets/3fa9b534ed1d39ba8274b7ab49a38d11 +0 -0
  129. data/test/dummy/tmp/cache/assets/test/sprockets/91ce00d4fbb2d91206d66229af2dda20 +0 -0
  130. data/test/dummy/tmp/cache/assets/test/sprockets/fdcd9e39dbe03f947086b7e6c1ce29d2 +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16b3775c8e387671006ac4f33ef615fe87250dbd
4
- data.tar.gz: 0a4184aa877c03c4d5a832e0bd9871da2e1e94a8
3
+ metadata.gz: 61ad3678cb7db18e0fc9cba4fb81da523d2bcc7b
4
+ data.tar.gz: a9a86a703960f2d97a980df2033e8d3f74ba4c6c
5
5
  SHA512:
6
- metadata.gz: ddad3bd0370b364177f157acff8185661fa25bd85dd25c408b0a206d05da100adbb14e187aa28a7b69bca0b721ebfa2ebb363c23dc059a13535180150c51ae2a
7
- data.tar.gz: 6612ae0f335946469ede3839779ae658a1a643e263eded384aeeeefddb486085cde696b69dc39b1c5a16dd33660528e23c715c018ea9d056fed1ca9427adb047
6
+ metadata.gz: f430d8436c2953f58c551d29a141c60c768b554e6803aa8ff2d2d733f1a545f0fffbfe8dfa99afcf33abb8643b26f09b6be921096bac648734ff6fdf3d8cc48e
7
+ data.tar.gz: b6c94f04ccf3d58f2168d40e9763957cab8beb4f37839d13b25ccf0299f5d6671cb7d55010225df02ac8b1129df2a02e740180731c95762111869489dae9ab6b
data/Rakefile CHANGED
@@ -1,11 +1,13 @@
1
+ require 'rdoc/task'
2
+ require 'net/http'
3
+ require 'uri'
4
+
1
5
  begin
2
6
  require 'bundler/setup'
3
7
  rescue LoadError
4
8
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
9
  end
6
10
 
7
- require 'rdoc/task'
8
-
9
11
  RDoc::Task.new(:rdoc) do |rdoc|
10
12
  rdoc.rdoc_dir = 'rdoc'
11
13
  rdoc.title = 'EmberAppKit'
@@ -17,7 +19,23 @@ end
17
19
  APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
20
  load 'rails/tasks/engine.rake'
19
21
 
22
+ desc "Update ember-resolver."
23
+ task :update_resolver do
24
+ uri = URI("https://raw.github.com/stefanpenner/ember-jj-abrams-resolver/master/dist/ember-resolver.js")
20
25
 
26
+ output = StringIO.new
27
+ output.puts "// Fetched from: " + uri.to_s
28
+ output.puts "// Fetched on: " + Time.now.utc.iso8601.to_s
29
+ output.puts Net::HTTP.get(uri).force_encoding("UTF-8")
30
+ output.rewind
31
+
32
+ File.write('vendor/assets/javascripts/ember-appkit/resolver.js', output.read)
33
+ end
34
+
35
+ desc "Updates the resolver when UPDATE_RESOLVER is set."
36
+ task :update_resolver_if_requested do
37
+ Rake::Task['update_resolver'].invoke if ENV['UPDATE_RESOLVER'] == 'true'
38
+ end
21
39
 
22
40
  Bundler::GemHelper.install_tasks
23
41
 
@@ -37,6 +55,6 @@ Rake::TestTask.new(:generators_test) do |t|
37
55
  t.verbose = false
38
56
  end
39
57
 
40
- task :test => [:generators_test, :integration_test]
58
+ task :test => [:update_resolver_if_requested, :generators_test, :integration_test]
41
59
 
42
60
  task default: :test
@@ -1,7 +1,7 @@
1
1
  module Ember
2
2
  module Appkit
3
3
  module Rails
4
- VERSION = '0.0.1'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,24 @@
1
+ require 'generators/ember/generator_helpers'
2
+
3
+ module Ember
4
+ module Generators
5
+ class ComponentGenerator < ::Rails::Generators::NamedBase
6
+ include Ember::Generators::GeneratorHelpers
7
+
8
+ source_root File.expand_path("../../templates", __FILE__)
9
+
10
+ desc "Creates a new Ember.js component and component template\nCustom Ember Components require at least two descriptive names separated by a dash. Use CamelCase or dash-case to name your component.\n\nExample,\n\trails generate ember:component PostChart [options]\n\trails generate ember:component post-chart [options]"
11
+
12
+ class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
13
+
14
+ def create_component_files
15
+ dashed_file_name = file_name.gsub(/_/, '-')
16
+ component_path = File.join(ember_path, 'components', class_path, "#{dashed_file_name}_component.js.es6")
17
+ template "component.js.es6", component_path
18
+
19
+ template_path = File.join(ember_path, 'templates/components', class_path, "#{dashed_file_name}.hbs")
20
+ template "component.template.hbs", template_path
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,31 @@
1
+ require 'generators/ember/generator_helpers'
2
+
3
+ module Ember
4
+ module Generators
5
+ class ControllerGenerator < ::Rails::Generators::NamedBase
6
+ include Ember::Generators::GeneratorHelpers
7
+
8
+ source_root File.expand_path("../../templates", __FILE__)
9
+
10
+ desc "Creates a new Ember.js controller."
11
+
12
+ class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects."
13
+ class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.ObjectController to represent a single object."
14
+ class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path."
15
+
16
+
17
+ def create_controller_files
18
+ file_path = File.join(ember_path, 'controllers', class_path, "#{file_name}.js.es6")
19
+
20
+ if options.array?
21
+ template "array_controller.js.es6", file_path
22
+ elsif options.object?
23
+ template "object_controller.js.es6", file_path
24
+ else
25
+ template "controller.js.es6", file_path
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+
@@ -5,10 +5,14 @@ module Ember
5
5
  module GeneratorHelpers
6
6
 
7
7
  def ember_path
8
- if rails_engine?
9
- options[:ember_path] || "app/assets/javascripts/#{engine_name}"
8
+ if options[:ember_path]
9
+ options[:ember_path]
10
+ elsif configuration.ember_path
11
+ configuration.ember_path
12
+ elsif rails_engine?
13
+ "app/assets/javascripts/#{engine_name}"
10
14
  else
11
- options[:ember_path] || "app/assets/javascripts"
15
+ "app/assets/javascripts"
12
16
  end
13
17
  end
14
18
 
@@ -23,6 +27,10 @@ module Ember
23
27
  def application_name
24
28
  if options[:app_name]
25
29
  options[:app_name]
30
+ elsif configuration.app_name
31
+ configuration.app_name
32
+ elsif rails_engine?
33
+ engine_name
26
34
  else
27
35
  "App"
28
36
  end
@@ -35,6 +43,10 @@ module Ember
35
43
  def handlebars_template_path
36
44
  File.join(class_path, file_name).gsub(/^\//, '')
37
45
  end
46
+
47
+ def configuration
48
+ ::Rails.configuration.ember
49
+ end
38
50
  end
39
51
  end
40
52
  end
@@ -0,0 +1,47 @@
1
+ require 'generators/ember/generator_helpers'
2
+
3
+ module Ember
4
+ module Generators
5
+ class ModelGenerator < ::Rails::Generators::NamedBase
6
+ include Ember::Generators::GeneratorHelpers
7
+
8
+ source_root File.expand_path("../../templates", __FILE__)
9
+ desc "Creates a new ember.js model"
10
+ argument :attributes, :type => :array, :default => [], :banner => "field[:type] field[:type] ..."
11
+
12
+ class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
13
+
14
+ def create_model_files
15
+ file_path = File.join(ember_path, 'models', class_path, "#{file_name}.js.es6")
16
+ template "model.js.es6", file_path
17
+ end
18
+
19
+ private
20
+ EMBER_TYPE_LOOKUP = {
21
+ nil => 'string',
22
+ :binary => 'string',
23
+ :string => 'string',
24
+ :text => 'string',
25
+ :boolean => 'boolean',
26
+ :date => 'date',
27
+ :datetime =>'date',
28
+ :time => 'date',
29
+ :timestamp => 'date',
30
+ :decimal => 'number',
31
+ :float => 'number',
32
+ :integer => 'number',
33
+ :primary_key => 'number'
34
+ }
35
+
36
+ def parse_attributes!
37
+ self.attributes = (attributes || []).map do |attr|
38
+ name, type = attr.split(':')
39
+ key = type.try(:to_sym)
40
+ ember_type = EMBER_TYPE_LOOKUP[key] || type
41
+
42
+ { :name => name, :type => ember_type }
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,25 @@
1
+ require 'generators/ember/generator_helpers'
2
+
3
+ module Ember
4
+ module Generators
5
+ class ResourceGenerator < ::Rails::Generators::NamedBase
6
+ include Ember::Generators::GeneratorHelpers
7
+
8
+ source_root File.expand_path("../../templates", __FILE__)
9
+
10
+ desc "Creates a new Ember.js router, controller, view and template"
11
+
12
+ class_option :skip_route, :type => :boolean, :default => false, :desc => "Don't create route"
13
+ class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
14
+ class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.ObjectController to represent a single object"
15
+
16
+ def create_resource_files
17
+ invoke('ember:route', [ name ], options) unless options[:skip_route]
18
+ invoke('ember:controller', [ name ], options)
19
+ invoke('ember:template', [ name ], options)
20
+ end
21
+
22
+ end
23
+ end
24
+ end
25
+
@@ -0,0 +1,20 @@
1
+ require 'generators/ember/generator_helpers'
2
+
3
+ module Ember
4
+ module Generators
5
+ class TemplateGenerator < ::Rails::Generators::NamedBase
6
+ include Ember::Generators::GeneratorHelpers
7
+
8
+ source_root File.expand_path("../../templates", __FILE__)
9
+
10
+ desc "Creates a new Ember.js template."
11
+ class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
12
+
13
+ def create_template_files
14
+ file_path = File.join(ember_path, 'templates', class_path, "#{file_name}.hbs")
15
+ template 'template.hbs', file_path
16
+ end
17
+ end
18
+ end
19
+ end
20
+
@@ -0,0 +1,23 @@
1
+ require 'generators/ember/generator_helpers'
2
+
3
+ module Ember
4
+ module Generators
5
+ class ViewGenerator < ::Rails::Generators::NamedBase
6
+ include Ember::Generators::GeneratorHelpers
7
+
8
+ source_root File.expand_path("../../templates", __FILE__)
9
+
10
+ desc "Creates a new Ember.js view and associated template."
11
+ class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
12
+ class_option :without_template, :type => :boolean, :default => false, :desc => "Create template for this view"
13
+
14
+ def create_view_files
15
+ file_path = File.join(ember_path, 'views', class_path, "#{file_name}.js.es6")
16
+ template "view.js.es6", file_path
17
+ invoke('ember:template', [ name ], options) unless options[:without_template]
18
+ end
19
+ end
20
+ end
21
+ end
22
+
23
+
@@ -0,0 +1,4 @@
1
+ export default = <%= class_name.camelize %>Controller = Ember.ArrayController.extend({
2
+
3
+ });
4
+
@@ -0,0 +1,2 @@
1
+ export default = Ember.Component.extend({
2
+ });
File without changes
@@ -0,0 +1,3 @@
1
+ export default = <%= class_name.camelize %>Controller = Ember.Controller.extend({
2
+
3
+ });
@@ -0,0 +1,11 @@
1
+ export default = DS.Model.extend({
2
+ <% attributes.each_with_index do |attribute, idx| -%>
3
+ <%= attribute[:name].camelize(:lower) %>: <%=
4
+ if %w(references belongs_to).member?(attribute[:type])
5
+ "DS.belongsTo('%s.%s')" % [application_name.camelize, attribute[:name].camelize]
6
+ else
7
+ "DS.attr('%s')" % attribute[:type]
8
+ end
9
+ %><% if (idx < attributes.length-1) %>,<% end %>
10
+ <% end -%>
11
+ });
@@ -0,0 +1,4 @@
1
+ export default = <%= class_name.camelize %>Controller = Ember.ObjectController.extend({
2
+
3
+ });
4
+
@@ -0,0 +1,5 @@
1
+ <h1><%= class_name %></h1>
2
+
3
+ <p>Your content here.</p>
4
+
5
+ {{outlet}}
@@ -0,0 +1,3 @@
1
+ export default = Ember.View.extend({
2
+
3
+ });
@@ -1,9 +1,7 @@
1
- var IndexController = Ember.ObjectController.extend({
1
+ export default = Ember.ObjectController.extend({
2
2
  actions: {
3
3
  sayHi: function() {
4
4
  alert(this.get('name') + ' says hi!');
5
5
  }
6
6
  }
7
7
  });
8
-
9
- export default = IndexController;
@@ -26,5 +26,4 @@ Dummy::Application.configure do
26
26
  # This option may cause significant delays in view rendering with a large
27
27
  # number of complex assets.
28
28
  config.assets.debug = true
29
- config.ember.variant = :development
30
29
  end
@@ -33,5 +33,4 @@ Dummy::Application.configure do
33
33
 
34
34
  # Print deprecation notices to the stderr.
35
35
  config.active_support.deprecation = :stderr
36
- config.ember.variant = :development
37
36
  end
@@ -3955,3 +3955,395 @@ Started GET "/assets/routes/index.js?body=1" for 127.0.0.1 at 2013-10-29 18:20:0
3955
3955
 
3956
3956
 
3957
3957
  Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-29 18:20:06 -0400
3958
+
3959
+
3960
+ Started GET "/" for 127.0.0.1 at 2013-10-30 22:03:24 -0400
3961
+ Processing by ApplicationController#show as HTML
3962
+ Rendered application/show.html within layouts/application (0.7ms)
3963
+ Completed 500 Internal Server Error in 80ms
3964
+
3965
+ ActionView::Template::Error (undefined method `split' for nil:NilClass
3966
+ (in /Users/bcardarella/Dropbox/projects/ember-appkit-rails/vendor/assets/javascripts/ember-appkit/resolver.js.es6)):
3967
+ 3: <head>
3968
+ 4: <title>Dummy</title>
3969
+ 5: <%= stylesheet_link_tag "application", media: "all" %>
3970
+ 6: <%= javascript_include_tag "application" %>
3971
+ 7: <%= csrf_meta_tags %>
3972
+ 8: </head>
3973
+ 9: <body>
3974
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__2024311010824424818_70288727268620'
3975
+
3976
+
3977
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
3978
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (12.5ms)
3979
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (19.0ms)
3980
+
3981
+
3982
+ Started GET "/" for 127.0.0.1 at 2013-10-30 22:03:26 -0400
3983
+ Processing by ApplicationController#show as HTML
3984
+ Rendered application/show.html within layouts/application (0.0ms)
3985
+ Completed 500 Internal Server Error in 39ms
3986
+
3987
+ ActionView::Template::Error (undefined method `split' for nil:NilClass
3988
+ (in /Users/bcardarella/Dropbox/projects/ember-appkit-rails/vendor/assets/javascripts/ember-appkit/resolver.js.es6)):
3989
+ 3: <head>
3990
+ 4: <title>Dummy</title>
3991
+ 5: <%= stylesheet_link_tag "application", media: "all" %>
3992
+ 6: <%= javascript_include_tag "application" %>
3993
+ 7: <%= csrf_meta_tags %>
3994
+ 8: </head>
3995
+ 9: <body>
3996
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__2024311010824424818_70288727268620'
3997
+
3998
+
3999
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
4000
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
4001
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.9ms)
4002
+
4003
+
4004
+ Started GET "/" for 127.0.0.1 at 2013-10-30 22:13:09 -0400
4005
+ Processing by ApplicationController#show as HTML
4006
+ Rendered application/show.html within layouts/application (0.7ms)
4007
+ Completed 200 OK in 864ms (Views: 863.3ms)
4008
+
4009
+
4010
+ Started GET "/stylesheets/application.css" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4011
+
4012
+ ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):
4013
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
4014
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4015
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
4016
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
4017
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
4018
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
4019
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
4020
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
4021
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4022
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4023
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4024
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
4025
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4026
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4027
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
4028
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
4029
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4030
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4031
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4032
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
4033
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
4034
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
4035
+
4036
+
4037
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.7ms)
4038
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
4039
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.4ms)
4040
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (15.0ms)
4041
+
4042
+
4043
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4044
+
4045
+
4046
+ Started GET "/assets/ember.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4047
+
4048
+
4049
+ Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4050
+
4051
+
4052
+ Started GET "/assets/ember-appkit/almond.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4053
+
4054
+
4055
+ Started GET "/assets/ember-appkit/resolver.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4056
+
4057
+
4058
+ Started GET "/assets/app.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4059
+
4060
+
4061
+ Started GET "/assets/ember-appkit/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4062
+
4063
+
4064
+ Started GET "/assets/ember-app.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4065
+
4066
+
4067
+ Started GET "/assets/router.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4068
+
4069
+
4070
+ Started GET "/assets/models/person.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4071
+
4072
+
4073
+ Started GET "/assets/templates/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4074
+
4075
+
4076
+ Started GET "/assets/templates/components/my-component.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4077
+
4078
+
4079
+ Started GET "/assets/templates/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4080
+
4081
+
4082
+ Started GET "/assets/controllers/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4083
+
4084
+
4085
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4086
+
4087
+
4088
+ Started GET "/assets/routes/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:13:10 -0400
4089
+
4090
+
4091
+ Started GET "/" for 127.0.0.1 at 2013-10-30 22:31:45 -0400
4092
+ Processing by ApplicationController#show as HTML
4093
+ Rendered application/show.html within layouts/application (0.6ms)
4094
+ Completed 200 OK in 874ms (Views: 873.9ms)
4095
+
4096
+
4097
+ Started GET "/stylesheets/application.css" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4098
+
4099
+ ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):
4100
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
4101
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4102
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
4103
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
4104
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
4105
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
4106
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
4107
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
4108
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4109
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4110
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4111
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
4112
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4113
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4114
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
4115
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
4116
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4117
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4118
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4119
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
4120
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
4121
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
4122
+
4123
+
4124
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.6ms)
4125
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
4126
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms)
4127
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (11.4ms)
4128
+
4129
+
4130
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4131
+
4132
+
4133
+ Started GET "/assets/ember-appkit/almond.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4134
+
4135
+
4136
+ Started GET "/assets/ember-appkit/resolver.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4137
+
4138
+
4139
+ Started GET "/assets/ember.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4140
+
4141
+
4142
+ Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4143
+
4144
+
4145
+ Started GET "/assets/app.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4146
+
4147
+
4148
+ Started GET "/assets/ember-appkit/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4149
+
4150
+
4151
+ Started GET "/assets/ember-app.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4152
+
4153
+
4154
+ Started GET "/assets/router.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4155
+
4156
+
4157
+ Started GET "/assets/models/person.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4158
+
4159
+
4160
+ Started GET "/assets/templates/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4161
+
4162
+
4163
+ Started GET "/assets/templates/components/my-component.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4164
+
4165
+
4166
+ Started GET "/assets/templates/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4167
+
4168
+
4169
+ Started GET "/assets/controllers/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4170
+
4171
+
4172
+ Started GET "/assets/routes/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4173
+
4174
+
4175
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:46 -0400
4176
+
4177
+
4178
+ Started GET "/" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4179
+ Processing by ApplicationController#show as HTML
4180
+ Rendered application/show.html within layouts/application (0.0ms)
4181
+ Completed 200 OK in 7ms (Views: 6.5ms)
4182
+
4183
+
4184
+ Started GET "/stylesheets/application.css" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4185
+
4186
+ ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):
4187
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
4188
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4189
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
4190
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
4191
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
4192
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
4193
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
4194
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
4195
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4196
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4197
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4198
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
4199
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4200
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4201
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
4202
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
4203
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4204
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4205
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4206
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
4207
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
4208
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
4209
+
4210
+
4211
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
4212
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
4213
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.7ms)
4214
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (9.9ms)
4215
+
4216
+
4217
+ Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4218
+
4219
+
4220
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4221
+
4222
+
4223
+ Started GET "/assets/ember-appkit/resolver.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4224
+
4225
+
4226
+ Started GET "/assets/ember-appkit/almond.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4227
+
4228
+
4229
+ Started GET "/assets/ember.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4230
+
4231
+
4232
+ Started GET "/assets/app.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4233
+
4234
+
4235
+ Started GET "/assets/ember-appkit/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4236
+
4237
+
4238
+ Started GET "/assets/ember-app.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4239
+
4240
+
4241
+ Started GET "/assets/models/person.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4242
+
4243
+
4244
+ Started GET "/assets/router.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4245
+
4246
+
4247
+ Started GET "/assets/templates/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4248
+
4249
+
4250
+ Started GET "/assets/templates/components/my-component.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4251
+
4252
+
4253
+ Started GET "/assets/templates/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4254
+
4255
+
4256
+ Started GET "/assets/controllers/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4257
+
4258
+
4259
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4260
+
4261
+
4262
+ Started GET "/assets/routes/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:31:51 -0400
4263
+
4264
+
4265
+ Started GET "/" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4266
+ Processing by ApplicationController#show as HTML
4267
+ Rendered application/show.html within layouts/application (0.0ms)
4268
+ Completed 200 OK in 7ms (Views: 6.7ms)
4269
+
4270
+
4271
+ Started GET "/stylesheets/application.css" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4272
+
4273
+ ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):
4274
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
4275
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4276
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
4277
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
4278
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
4279
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
4280
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
4281
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
4282
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4283
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4284
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4285
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
4286
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4287
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4288
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
4289
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
4290
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4291
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4292
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4293
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
4294
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
4295
+ /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
4296
+
4297
+
4298
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.6ms)
4299
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
4300
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms)
4301
+ Rendered /Users/bcardarella/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (8.4ms)
4302
+
4303
+
4304
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4305
+
4306
+
4307
+ Started GET "/assets/ember-appkit/resolver.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4308
+
4309
+
4310
+ Started GET "/assets/ember-appkit/almond.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4311
+
4312
+
4313
+ Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4314
+
4315
+
4316
+ Started GET "/assets/ember.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4317
+
4318
+
4319
+ Started GET "/assets/app.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4320
+
4321
+
4322
+ Started GET "/assets/ember-appkit/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4323
+
4324
+
4325
+ Started GET "/assets/ember-app.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4326
+
4327
+
4328
+ Started GET "/assets/router.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4329
+
4330
+
4331
+ Started GET "/assets/models/person.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4332
+
4333
+
4334
+ Started GET "/assets/templates/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4335
+
4336
+
4337
+ Started GET "/assets/templates/components/my-component.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4338
+
4339
+
4340
+ Started GET "/assets/controllers/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4341
+
4342
+
4343
+ Started GET "/assets/templates/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4344
+
4345
+
4346
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400
4347
+
4348
+
4349
+ Started GET "/assets/routes/index.js?body=1" for 127.0.0.1 at 2013-10-30 22:32:00 -0400