ember-cli-rails 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +5 -1
- data/lib/ember-cli-rails.rb +1 -1
- data/lib/ember-cli/app.rb +4 -4
- data/lib/ember-cli/helpers.rb +14 -1
- data/lib/ember-cli/middleware.rb +1 -1
- 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: 80bff7ddf6a25ed99c090e4098e2da8929bc0fb0
|
4
|
+
data.tar.gz: 74c0f4b34f36bc24de522d6a151613e5fa6bae41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4a9a91135ae46175d12f511a5a0615e48ed279b7db29db47d7ca031f810948daa91c85f64074f5b44bfad32dadc61d8672bb2e4368b95f6f583a9950fcbc4ca
|
7
|
+
data.tar.gz: a16d659d8628c992e022622f89e1ae22e3af88798cd9db65dff7e8c6bf6b5e616be80a9c2a2e9c8aed3983c5414ae339e0f1c3d4db86225c97f830b224f38ddb
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
0.1.2
|
2
|
+
-----
|
3
|
+
|
4
|
+
* Bump addon version to prevent missing tmp folder error [ember-cli-rails-addon#8](https://github.com/rondale-sc/ember-cli-rails-addon/pull/8)
|
5
|
+
* Add configuration to control Middleware and live recompilation [#64](https://github.com/rwz/ember-cli-rails/issues/64)
|
6
|
+
|
1
7
|
0.1.1
|
2
8
|
-----
|
3
9
|
|
data/README.md
CHANGED
@@ -64,7 +64,7 @@ Once you've updated your initializer to taste, you need to install the
|
|
64
64
|
For each of your EmberCLI applications install the addon with:
|
65
65
|
|
66
66
|
```sh
|
67
|
-
npm install --save-dev ember-cli-rails-addon@0.0.
|
67
|
+
npm install --save-dev ember-cli-rails-addon@0.0.11
|
68
68
|
```
|
69
69
|
|
70
70
|
And that's it!
|
@@ -144,6 +144,10 @@ polluting your git history. Note that for this to work, you must have
|
|
144
144
|
`config/environments/development.rb`, otherwise the middleware responsible for
|
145
145
|
building Ember CLI will not be enabled.
|
146
146
|
|
147
|
+
Alternatively, if you want to override the default behavior in any given Rails
|
148
|
+
environment, you can manually set the `config.use_ember_middleware` and
|
149
|
+
`config.use_ember_live_recompilation` flags in the environment-specific config
|
150
|
+
file.
|
147
151
|
|
148
152
|
#### Ember Dependencies
|
149
153
|
|
data/lib/ember-cli-rails.rb
CHANGED
data/lib/ember-cli/app.rb
CHANGED
@@ -2,7 +2,7 @@ require "timeout"
|
|
2
2
|
|
3
3
|
module EmberCLI
|
4
4
|
class App
|
5
|
-
ADDON_VERSION = "0.0.
|
5
|
+
ADDON_VERSION = "0.0.11"
|
6
6
|
EMBER_CLI_VERSION = "~> 0.1.5"
|
7
7
|
|
8
8
|
class BuildError < StandardError; end
|
@@ -99,15 +99,15 @@ module EmberCLI
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def lockfile
|
102
|
-
tmp_path.join("build.lock")
|
102
|
+
@lockfile ||= tmp_path.join("build.lock")
|
103
103
|
end
|
104
104
|
|
105
105
|
def check_for_build_error!
|
106
|
-
raise_build_error! if
|
106
|
+
raise_build_error! if build_error?
|
107
107
|
end
|
108
108
|
|
109
109
|
def build_error_file
|
110
|
-
tmp_path.join("error.txt")
|
110
|
+
@build_error_file ||= tmp_path.join("error.txt")
|
111
111
|
end
|
112
112
|
|
113
113
|
def reset_build_error!
|
data/lib/ember-cli/helpers.rb
CHANGED
@@ -22,7 +22,20 @@ module EmberCLI
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def non_production?
|
25
|
-
!Rails.env.production? &&
|
25
|
+
!Rails.env.production? && rails_config_for(:consider_all_requests_local)
|
26
|
+
end
|
27
|
+
|
28
|
+
def use_middleware?
|
29
|
+
rails_config_for(:use_ember_middleware) || non_production?
|
30
|
+
end
|
31
|
+
|
32
|
+
def use_live_recompilation?
|
33
|
+
rails_config_for(:use_ember_live_recompilation) || Rails.env.development?
|
34
|
+
end
|
35
|
+
|
36
|
+
def rails_config_for(key)
|
37
|
+
config = Rails.configuration
|
38
|
+
config.respond_to?(key) && config.public_send(key)
|
26
39
|
end
|
27
40
|
|
28
41
|
def override_assets_precompile_task!
|
data/lib/ember-cli/middleware.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pravosud
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
12
|
+
date: 2015-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|