ember-cli-rails 0.8.1 → 0.8.2

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: 2ec38818c1bff3a3f4d38df12e554dae2a67f381
4
- data.tar.gz: 7778a315cc16bf0955339c886035287616546f95
3
+ metadata.gz: af3a20f6caa120e87d2e61347d2bb117b5bcad75
4
+ data.tar.gz: 304bfae43332d480932067522ef703c780d04207
5
5
  SHA512:
6
- metadata.gz: 2e39413b31737031526d5ef459560eba4327f73198497bdcebe7429cb0340fee93beb205e8d609265ec4a2e7d09541a4b2ce6180bd66f707a0b936f461067150
7
- data.tar.gz: 8440109c8423a9f649e43e6e8a21dd313bf1fa799a48fed5911e5c979aee699d5f5c4a33b2bb1080367611289bbd652782e20c4b68bb02cef4c595271488062d
6
+ metadata.gz: 4f0186521688b4bc2730641f1526004f295b37ebf21e26e506363879f0540dd736743bd19bcdda9b906956fe4f69f77ac823f4d3f43812a33d1d46ef707f0f07
7
+ data.tar.gz: 70ca38c2abbc29ee08ce154e6d6e9554ce45110eabd678ea4164165ecb6e35c66d7072a2e26a40c5a45aecdedf200482ec191495f62dbc36534331bbc92bc8a0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  master
2
2
  ------
3
3
 
4
+ 0.8.2.
5
+ ------
6
+
7
+ * Support Rails 5 static file serving configuration. [#499]
8
+
9
+ [#499]: https://github.com/thoughtbot/ember-cli-rails/pull/499
10
+
4
11
  0.8.1
5
12
  -----
6
13
 
data/README.md CHANGED
@@ -278,6 +278,16 @@ applications into the project.
278
278
 
279
279
  [buildpack]: https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app#adding-a-buildpack
280
280
 
281
+ #### Slug size
282
+
283
+ [Heroku slug size is limited](https://devcenter.heroku.com/articles/slug-compiler#slug-size). The build process creates artifacts that are not necessary for the server to run, but are included in the deployed Heroku slug.
284
+
285
+ Omitting these build assets can dramatically reduce slug size.
286
+
287
+ A build-pack solution for this is discussed in [Issue #491][#491].
288
+
289
+ [#491]: https://github.com/thoughtbot/ember-cli-rails/issues/491
290
+
281
291
  ### Capistrano
282
292
 
283
293
  EmberCLI-Rails executes both `npm install` and `bower install` during EmberCLI's
@@ -304,7 +314,7 @@ contains the directory or directories that contain the `bower` and `npm`
304
314
  executables.
305
315
 
306
316
  #### For faster deployments
307
- Place the following in your deploy/<environment>.rb
317
+ Place the following in your deploy/<environment>.rb
308
318
  ```ruby
309
319
  set :linked_dirs, %w{<ember-app-name>/node_modules <ember-app-name>/bower_components}
310
320
  ```
@@ -456,7 +466,7 @@ Rails.application.routes.draw do
456
466
  end
457
467
  ```
458
468
 
459
- Then set each Ember application's `baseURL` to the mount point:
469
+ Then set each Ember application's `rootURL` to the mount point:
460
470
 
461
471
  ```javascript
462
472
  // frontend/config/environment.js
@@ -465,7 +475,7 @@ module.exports = function(environment) {
465
475
  var ENV = {
466
476
  modulePrefix: 'frontend',
467
477
  environment: environment,
468
- baseURL: '/',
478
+ rootURL: '/',
469
479
  // ...
470
480
  }
471
481
  };
@@ -476,7 +486,7 @@ module.exports = function(environment) {
476
486
  var ENV = {
477
487
  modulePrefix: 'admin_panel',
478
488
  environment: environment,
479
- baseURL: '/admin_panel', // originally '/'
489
+ rootURL: '/admin_panel', // originally '/'
480
490
  // ...
481
491
  }
482
492
  };
@@ -29,9 +29,21 @@ module EmberCli
29
29
  attr_reader :app
30
30
 
31
31
  def rack_headers
32
- {
33
- "Cache-Control" => Rails.configuration.static_cache_control,
34
- }
32
+ config = Rails.configuration
33
+
34
+ if config.respond_to?(:public_file_server) &&
35
+ config.public_file_server && config.public_file_server.headers
36
+ # Rails 5.
37
+ config.public_file_server.headers
38
+ elsif config.respond_to?(:static_cache_control)
39
+ # Rails 4.2 and below.
40
+ {
41
+ "Cache-Control" => Rails.configuration.static_cache_control,
42
+ }
43
+ else
44
+ # No specification.
45
+ {}
46
+ end
35
47
  end
36
48
 
37
49
  def check_for_error_and_raise!
@@ -1,3 +1,3 @@
1
1
  module EmberCli
2
- VERSION = "0.8.1".freeze
2
+ VERSION = "0.8.2".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.8.1
4
+ version: 0.8.2
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-09-16 00:00:00.000000000 Z
13
+ date: 2016-10-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ember-cli-rails-assets
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.4.5.1
129
+ rubygems_version: 2.5.0
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Integration between Ember CLI and Rails