ember-cli-rails 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d157a938817929f1ba712ece97d2d011589b9277
4
- data.tar.gz: 2e813694b87a48835a810a87d7f6344f2f68b8d2
3
+ metadata.gz: 0428e24dab02b22384c818ae31d5e862bfb0927a
4
+ data.tar.gz: 9b827a565cee652b9a757bf98445fcbfa14ecfd7
5
5
  SHA512:
6
- metadata.gz: 081d7613d112ce8bd739a13f6fd236e4e921d7ee5d2dae204774415558271d528fdda723b7579414e65c7e3a6d3f0562424e6971b9682528155b6d08ef4bdeab
7
- data.tar.gz: b37e4cba19eb651a5e4d4240a6c22ec365327c4604a99a7c5fc98616f58a63dfb46a833bfa310d465e588d5f19b2b1776fb12fbf81cffde5c77389b37af4d6e5
6
+ metadata.gz: 511a4adc88ce2a166f85962e52701ffc4d69598c0e0c2a50721fc0f82e1182d94b1f04e794d871172beb537a3f20c20b1e004dc85185f18d3d11ed4509ca65ee
7
+ data.tar.gz: 210e20c73c81deab80a60b5532afd58bd9a01088ac19270213f322810dceb5c84a95e95ab4cf15352f5a793ffc0d2805e12b55daa279ea8986724298e5303977
data/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  master
2
2
  ------
3
3
 
4
+ 0.7.4
5
+ -----
6
+
7
+ * Fix dependencies check for compile command. [#455]
8
+ * Introduce the `silent` configuration value. [#445]
9
+
10
+ [#455]: https://github.com/thoughtbot/ember-cli-rails/pull/455
11
+ [#445]: https://github.com/thoughtbot/ember-cli-rails/pull/445
12
+
4
13
  0.7.3
5
14
  -----
6
15
 
data/README.md CHANGED
@@ -77,11 +77,14 @@ c.app :frontend, path: "~/projects/my-ember-app"
77
77
  - `path` - the path where your Ember CLI application is located. The default
78
78
  value is the name of your app in the Rails root.
79
79
 
80
+ - `silent` - this provides `--silent` option for Ember CLI commands to control verbosity of their output.
81
+
80
82
  ```ruby
81
83
  EmberCli.configure do |c|
82
84
  c.app :adminpanel # path defaults to `Rails.root.join("adminpanel")`
83
85
  c.app :frontend,
84
86
  path: "/path/to/your/ember-cli-app/on/disk"
87
+ c.app :payments, silent: true # by default it's false
85
88
  end
86
89
  ```
87
90
 
@@ -342,6 +345,35 @@ helper in your view:
342
345
  The `body` block argument and the corresponding call to `body.append` in the
343
346
  example are both optional, and can be omitted.
344
347
 
348
+ ### Serving Rails-generated CSS
349
+
350
+ For more information on how to work with EmberCLI-generated stylesheets, refer
351
+ to the [Stylesheets section][ember-cli-css]. EmberCLI-generated CSS will be
352
+ embedded in the response's HTML document by default.
353
+
354
+ To serve assets generated and served by Rails, inject them into the document's
355
+ `<head>`:
356
+
357
+ ```erb
358
+ <%= render_ember_app :frontend do |head| %>
359
+ <% head.append do %>
360
+ <%= stylesheet_link_tag "application" %>
361
+ <%= csrf_meta_tags %>
362
+ <% end %>
363
+ <% end %>
364
+ ```
365
+
366
+ There are no technical limitations to sharing assets between the Ember client
367
+ and the Rails server, but picking one or the other might simplify the project's
368
+ organization.
369
+
370
+ Sharing code during asset compilation is __not__ possible.
371
+
372
+ For example, Ember's SCSS files __cannot__ use `@import` directives referencing
373
+ Rails' SCSS modules.
374
+
375
+ [ember-cli-css]: http://ember-cli.com/user-guide/#stylesheets
376
+
345
377
  ### Overriding the controller
346
378
 
347
379
  To override this behavior, you can specify [any of Rails' routing options]
@@ -25,11 +25,16 @@ module EmberCli
25
25
  options.fetch(:watcher) { EmberCli.configuration.watcher }
26
26
  end
27
27
 
28
+ def silent?
29
+ options.fetch(:silent) { false }
30
+ end
31
+
28
32
  def ember_build(watch: false)
29
33
  line = Cocaine::CommandLine.new(paths.ember, [
30
34
  "build",
31
35
  ("--watch" if watch),
32
36
  ("--watcher :watcher" if process_watcher),
37
+ ("--silent" if silent?),
33
38
  "--environment :environment",
34
39
  "--output-path :output_path",
35
40
  ].compact.join(" "))
@@ -57,20 +57,20 @@ module EmberCli
57
57
  delegate :run, :run!, to: :runner
58
58
 
59
59
  def invalid_ember_dependencies?
60
- !run("#{paths.ember} version")
60
+ !run("#{paths.ember} version").success?
61
61
  rescue DependencyError
62
62
  false
63
63
  end
64
64
 
65
65
  def clean_ember_dependencies!
66
- ember_dependency_directories.select(&:exist?).each(&:rmtree)
66
+ ember_dependency_directories.flat_map(&:children).each(&:rmtree)
67
67
  end
68
68
 
69
69
  def ember_dependency_directories
70
70
  [
71
71
  paths.node_modules,
72
72
  paths.bower_components,
73
- ]
73
+ ].select(&:exist?)
74
74
  end
75
75
 
76
76
  def spawn(command)
@@ -1,3 +1,3 @@
1
1
  module EmberCli
2
- VERSION = "0.7.3".freeze
2
+ VERSION = "0.7.4".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-cli-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-03-26 00:00:00.000000000 Z
13
+ date: 2016-05-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ember-cli-rails-assets