ember-cli-rails 0.5.0 → 0.5.1

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: 6f7a15bd1d1e7f77df7e98e35264d3f0bc65eb85
4
- data.tar.gz: 75608b21cf7b54146116bc3b6303573ff9b32623
3
+ metadata.gz: 76353b506d35c0822340fbe4811403afd3078b42
4
+ data.tar.gz: c70a6346f869e47826c2a56b27cb5fe01a6d506c
5
5
  SHA512:
6
- metadata.gz: 76ec528e85b8ca4698a61b91645f6631d8afe9473357351ef435860cf4eb8c5023802fca59238ae4d35dd91475b2033e8f555a163d1ab554dac064d458900111
7
- data.tar.gz: cf291820f9befdc3ccc18a598301b3893489b1111ae381d5ff486db54279dcfc72cf38721510f175f04e801c1047c96c16e9bee1b984d68d8176889c2275595b
6
+ metadata.gz: a8c2bf094b44381b615e9077a7d4e0951e5d55c07d240a229ab18f21a70905d057da6f9b83961a1c574d126d5aa9c6a10c238a643a4898f9a532198e11bcac7e
7
+ data.tar.gz: 00447aca1034efe20b110828bcc0d363077192c2dfe58e90a604afddf3d14e3dd56b4a644cedcf770c7a00d9be118b8bf78d7ef4862cf81b6f8a35a0bedfe883
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  master
2
2
  ------
3
3
 
4
+ 0.5.1
5
+ -----
6
+
7
+ * Invoke `EmberCli::App#compile` in `test` environment, spawn `build` process in
8
+ development, rely on `rake assets:precompile` in `production`-like
9
+ environments.
10
+
4
11
  0.5.0
5
12
  -----
6
13
 
data/lib/ember-cli/app.rb CHANGED
@@ -35,9 +35,9 @@ module EmberCli
35
35
  end
36
36
 
37
37
  def build
38
- if EmberCli.env.development?
38
+ if development?
39
39
  build_and_watch
40
- else
40
+ elsif test?
41
41
  compile
42
42
  end
43
43
 
@@ -59,7 +59,7 @@ module EmberCli
59
59
  end
60
60
 
61
61
  def index_file
62
- if EmberCli.env.production?
62
+ if production?
63
63
  paths.applications.join("#{name}.html")
64
64
  else
65
65
  paths.dist.join("index.html")
@@ -68,6 +68,12 @@ module EmberCli
68
68
 
69
69
  private
70
70
 
71
+ delegate :development?, :production?, :test?, to: :env
72
+
73
+ def env
74
+ EmberCli.env
75
+ end
76
+
71
77
  def build_and_watch
72
78
  prepare
73
79
  @shell.build_and_watch
@@ -84,7 +90,7 @@ module EmberCli
84
90
  end
85
91
 
86
92
  def copy_index_html_file
87
- if EmberCli.env.production?
93
+ if production?
88
94
  FileUtils.cp(paths.app_assets.join("index.html"), index_file)
89
95
  end
90
96
  end
@@ -1,3 +1,3 @@
1
1
  module EmberCli
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.5.1".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.5.0
4
+ version: 0.5.1
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: 2015-11-15 00:00:00.000000000 Z
13
+ date: 2015-11-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties