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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/ember-cli/app.rb +10 -4
- data/lib/ember-cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76353b506d35c0822340fbe4811403afd3078b42
|
4
|
+
data.tar.gz: c70a6346f869e47826c2a56b27cb5fe01a6d506c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c2bf094b44381b615e9077a7d4e0951e5d55c07d240a229ab18f21a70905d057da6f9b83961a1c574d126d5aa9c6a10c238a643a4898f9a532198e11bcac7e
|
7
|
+
data.tar.gz: 00447aca1034efe20b110828bcc0d363077192c2dfe58e90a604afddf3d14e3dd56b4a644cedcf770c7a00d9be118b8bf78d7ef4862cf81b6f8a35a0bedfe883
|
data/CHANGELOG.md
CHANGED
data/lib/ember-cli/app.rb
CHANGED
@@ -35,9 +35,9 @@ module EmberCli
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def build
|
38
|
-
if
|
38
|
+
if development?
|
39
39
|
build_and_watch
|
40
|
-
|
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
|
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
|
93
|
+
if production?
|
88
94
|
FileUtils.cp(paths.app_assets.join("index.html"), index_file)
|
89
95
|
end
|
90
96
|
end
|
data/lib/ember-cli/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|