ember-cli-rails 0.0.15 → 0.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef5615c19dbd1784b545f48b1de07d2cdb4b5dc5
4
- data.tar.gz: 90979d9055f4f219a8fca07f8235b5407706e64b
3
+ metadata.gz: 84093485928f16ef6e3dad167909250468a8483e
4
+ data.tar.gz: eea7dab850ffb0a93d91293e29e24a7100260d8e
5
5
  SHA512:
6
- metadata.gz: 5df93ef9a78f054f52f2920da162f94d2998d88743464cb9d411b6fff42e6176521aa8cfd92627d4bf8fb93fd73ef9affed8acb46f8717e9fadce8ee78e7a4eb
7
- data.tar.gz: 36c52947b24d6312b4073acc3ba7116c48c4c69f3bc7883bda89c94bca1411f3e02903cc4be2145437cf186a92211549c04bfc649232f20f3a477a0c8b15ab4f
6
+ metadata.gz: 8ae3f692eddf8f1e6a0d50eb58c3ed0ac5d432b177bed534364ac1d9edd2c053326ba05a0657f969785b4ca8ea0d27e2e79b0c8e5271a8432c9959dbfd1d1d9a
7
+ data.tar.gz: 4f8c0afbb6d6176c6075e1622dc325da800226381cf88eca5f80ac9fe3e8c71e9b13ef56c408232048d73fa2f8d606e416abdf0c2fd8b1c08fdc0d0eece9133b
data/CHANGELOG.md CHANGED
@@ -1,50 +1,74 @@
1
+ 0.0.16
2
+ ------
3
+
4
+ * Use local executable for ember-cli instead of global one.
5
+ [Commit](https://github.com/rwz/ember-cli-rails/commit/4aeee53f048f0445645fbc478770417fdb66cace).
6
+ * Use `Dir.chdir` instead of passing `chdir` to `system`/`spawn`. Seems like
7
+ JRuby doesn't yet support `chdir` option for these methods.
8
+ Commits: [1](https://github.com/rwz/ember-cli-rails/commit/3bb149941f206153003726f1c18264dc62197f51),
9
+ [2](https://github.com/rwz/ember-cli-rails/commit/82a39f6e523ad35ecdd595fb6e49a04cb54f9c6f).
10
+
1
11
  0.0.15
2
12
  ------
3
13
 
4
- * Fix NameError when addon version doesn't match. [#47](https://github.com/rwz/ember-cli-rails/pull/47)
5
- * Fix race condition in symlink creation when run multiple workers (again). [#22](https://github.com/rwz/ember-cli-rails/pull/22)
14
+ * Fix NameError when addon version doesn't match.
15
+ [#47](https://github.com/rwz/ember-cli-rails/pull/47)
16
+ * Fix race condition in symlink creation when run multiple workers (again).
17
+ [#22](https://github.com/rwz/ember-cli-rails/pull/22)
6
18
 
7
19
  0.0.14
8
20
  ------
9
21
 
10
- * Do not include jQuery into vendor.js when jquery-rails is available. [#32](https://github.com/rwz/ember-cli-rails/issues/32)
22
+ * Do not include jQuery into vendor.js when jquery-rails is available.
23
+ [#32](https://github.com/rwz/ember-cli-rails/issues/32)
11
24
 
12
25
  0.0.13
13
26
  ------
14
27
 
15
- * Fix assets:precompile in production environment. [#38](https://github.com/rwz/ember-cli-rails/issues/38)
28
+ * Fix assets:precompile in production environment.
29
+ [#38](https://github.com/rwz/ember-cli-rails/issues/38)
16
30
 
17
31
  0.0.12
18
32
  ------
19
33
 
20
- * Make sure ember-cli-dependency-checker is present. [#35](https://github.com/rwz/ember-cli-rails/issues/35)
34
+ * Make sure ember-cli-dependency-checker is present.
35
+ [#35](https://github.com/rwz/ember-cli-rails/issues/35)
21
36
 
22
37
  0.0.11
23
38
  ------
24
39
 
25
- * Fix locking feature by bumping addon version to 0.0.5. [#31](https://github.com/rwz/ember-cli-rails/issues/31)
40
+ * Fix locking feature by bumping addon version to 0.0.5.
41
+ [#31](https://github.com/rwz/ember-cli-rails/issues/31)
26
42
 
27
43
  0.0.10
28
44
  ------
29
45
 
30
- * Add locking feature to prevent stale code. [#25](https://github.com/rwz/ember-cli-rails/pull/25)
46
+ * Add locking feature to prevent stale code.
47
+ [#25](https://github.com/rwz/ember-cli-rails/pull/25)
31
48
 
32
49
  0.0.9
33
50
  -----
34
51
 
35
- * Fix a bug when path provided as a string, not pathname. [#24](https://github.com/rwz/ember-cli-rails/issues/24)
52
+ * Fix a bug when path provided as a string, not pathname.
53
+ [#24](https://github.com/rwz/ember-cli-rails/issues/24)
36
54
 
37
55
  0.0.8
38
56
  -----
39
57
 
40
- * Add support for including Ember stylesheet link tags. [#21](https://github.com/rwz/ember-cli-rails/pull/21)
41
- * Fix an error when the symlink already exists. [#22](https://github.com/rwz/ember-cli-rails/pull/22)
58
+ * Add support for including Ember stylesheet link tags.
59
+ [#21](https://github.com/rwz/ember-cli-rails/pull/21)
60
+
61
+ * Fix an error when the symlink already exists.
62
+ [#22](https://github.com/rwz/ember-cli-rails/pull/22)
42
63
 
43
64
  0.0.7
44
65
  -----
45
66
 
46
- * Add sprockets-rails to dependency list. [commit](https://github.com/rwz/ember-cli-rails/commit/99a893030d6b754fe71363a396fd4515b93812b6)
47
- * Add a flag to skip ember-cli integration. [#17](https://github.com/rwz/ember-cli-rails/issues/17)
67
+ * Add sprockets-rails to dependency list.
68
+ [Commit](https://github.com/rwz/ember-cli-rails/commit/99a893030d6b754fe71363a396fd4515b93812b6)
69
+
70
+ * Add a flag to skip ember-cli integration.
71
+ [#17](https://github.com/rwz/ember-cli-rails/issues/17)
48
72
 
49
73
  0.0.6
50
74
  -----
@@ -56,7 +80,7 @@
56
80
  0.0.5
57
81
  -----
58
82
 
59
- * Fix generator. [commit](https://github.com/rwz/ember-cli-rails/commit/c1bb10c6a2ec5b24d55fe69b6919fdd415fd1cdc)
83
+ * Fix generator. [Commit](https://github.com/rwz/ember-cli-rails/commit/c1bb10c6a2ec5b24d55fe69b6919fdd415fd1cdc).
60
84
 
61
85
  0.0.4
62
86
  -----
data/README.md CHANGED
@@ -113,6 +113,24 @@ could render your app at the `/` route with the following view:
113
113
 
114
114
  Your Ember application will now be served at the `/` route.
115
115
 
116
+ ## Enabling LiveReload
117
+ In order to get LiveReload correctly up and running for EmberCLI Rails, you can
118
+ install the [guard](https://github.com/guard/guard) and
119
+ [guard-livereload](https://github.com/guard/guard-livereload) gems and then run
120
+ `guard init`and adding the following line to your `Guardfile`
121
+
122
+ ```ruby
123
+ guard "livereload" do
124
+ # ...
125
+ watch %r{app/<your-appname>/\w+/.+\.(js|hbs|html|css|<other-extensions>)}
126
+ # ...
127
+ end
128
+ ```
129
+
130
+ This tells Guard to watch your EmberCLI app for any changes to the JavaScript,
131
+ Handlebars, HTML, or CSS files. Take note that other extensions can be added to
132
+ the line (such as `coffee` for CoffeeScript) to watch them for changes as well.
133
+
116
134
  ## Additional Information
117
135
 
118
136
  When running in the development environment, EmberCLI Rails runs `ember build`
@@ -125,6 +143,7 @@ polluting your git history. Note that for this to work, you must have
125
143
  `config/environments/development.rb`, otherwise the middleware responsible for
126
144
  building Ember CLI will not be enabled.
127
145
 
146
+
128
147
  ## Contributing
129
148
 
130
149
  1. Fork it (https://github.com/rwz/ember-cli-rails/fork)
data/lib/ember-cli/app.rb CHANGED
@@ -14,14 +14,13 @@ module EmberCLI
14
14
 
15
15
  def compile
16
16
  prepare
17
- silence_stream STDOUT do
18
- system(env_hash, command, chdir: app_path, err: :out)
19
- end
17
+ silence_stream(STDOUT){ exec command }
20
18
  end
21
19
 
22
20
  def run
23
21
  prepare
24
- @pid = spawn(env_hash, command(watch: true), chdir: app_path, err: :out)
22
+ cmd = command(watch: true)
23
+ @pid = exec(cmd, method: :spawn)
25
24
  at_exit{ stop }
26
25
  end
27
26
 
@@ -68,9 +67,17 @@ module EmberCLI
68
67
  MSG
69
68
  end
70
69
 
70
+ def ember_path
71
+ @ember_path ||= app_path.join("node_modules", ".bin", "ember").tap do |path|
72
+ fail <<-MSG.strip_heredoc unless path.executable?
73
+ No local ember executable found. You should run `npm install`
74
+ inside the #{name} app located at #{app_path}
75
+ MSG
76
+ end
77
+ end
78
+
71
79
  private
72
80
 
73
- delegate :ember_path, to: :configuration
74
81
  delegate :match_version?, :non_production?, to: Helpers
75
82
  delegate :tee_path, to: :configuration
76
83
  delegate :configuration, to: :EmberCLI
@@ -196,7 +203,7 @@ module EmberCLI
196
203
 
197
204
  def addon_present?
198
205
  dev_dependencies["ember-cli-rails-addon"] == ADDON_VERSION &&
199
- app_path.join('node_modules', 'ember-cli-rails-addon', 'package.json').exist?
206
+ app_path.join("node_modules", "ember-cli-rails-addon", "package.json").exist?
200
207
  end
201
208
 
202
209
  def env_hash
@@ -205,5 +212,13 @@ module EmberCLI
205
212
  vars.store "SUPPRESS_JQUERY", "true" if suppress_jquery?
206
213
  end
207
214
  end
215
+
216
+ def exec(cmd, options={})
217
+ method_name = options.fetch(:method, :system)
218
+
219
+ Dir.chdir app_path do
220
+ Kernel.public_send(method_name, env_hash, cmd, err: :out)
221
+ end
222
+ end
208
223
  end
209
224
  end
@@ -17,16 +17,10 @@ module EmberCLI
17
17
  @tee_path = Helpers.which("tee")
18
18
  end
19
19
 
20
- def ember_path
21
- @ember_path ||= Helpers.which("ember").tap do |path|
22
- fail "ember-cli executable could not be found" unless path
23
- end
24
- end
25
-
26
20
  def build_timeout
27
21
  @build_timeout ||= 5
28
22
  end
29
23
 
30
- attr_writer :ember_path, :build_timeout
24
+ attr_writer :build_timeout
31
25
  end
32
26
  end
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.0.15".freeze
2
+ VERSION = "0.0.16".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.0.15
4
+ version: 0.0.16
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-06 00:00:00.000000000 Z
12
+ date: 2015-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -81,9 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.4.3
84
+ rubygems_version: 2.4.5
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Integration between Ember CLI and Rails
88
88
  test_files: []
89
- has_rdoc: