ember-cli-rails 0.0.17 → 0.0.18

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: bea73c50b7ae583d0d513fd537bbf9090a792981
4
- data.tar.gz: 1d3ac0194431d6dabe1dd42f30b39122922a463d
3
+ metadata.gz: 02bdcb704d9cf103835f4d33f06a395b154e6f83
4
+ data.tar.gz: be0455d38e0af37abe4ce06880974c16fb2edbf5
5
5
  SHA512:
6
- metadata.gz: cafc706e56398f3d3f0a991c12bff319e1b847642f7dffd8660508bd7dc6a905b0eabcc5d5504fae6d7b59dd12a0758839495b6dd1ed3fae10d12b85070cc3a6
7
- data.tar.gz: c07db85db8e00b3e87a3b1141177bbc7d9845bf522d5bf2119440507a89b621875d67cf359e8d1290f52642f2c429471f25adfa15223b3d13e0d127d517c4dad
6
+ metadata.gz: b2f69ab85c0197d8581541bd4cd020f1e579ae34d40c27a5a16a8d5d9177cbb98550ac9687a712c917447cf3833deb15de3d9f25f479768b9f64be9c0204ed14
7
+ data.tar.gz: 22c0988bc923d89e60fd9ee0252ccb230a277e3fb38d5b37e9999fbf49f0a8e0494819e7f7c8ea9353b5b2b5d0f59e501263bf7744fd81549f82f14182face3d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 0.0.18
2
+ ------
3
+
4
+ * Remove suppress jQuery feature [#49](https://github.com/rwz/ember-cli-rails/issues/49)
5
+ * Add option to manually suppress Ember dependencies [#55](https://github.com/rwz/ember-cli-rails/pull/55)
6
+
1
7
  0.0.17
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.7
67
+ npm install --save-dev ember-cli-rails-addon@0.0.8
68
68
  ```
69
69
 
70
70
  And that's it!
@@ -145,6 +145,23 @@ polluting your git history. Note that for this to work, you must have
145
145
  building Ember CLI will not be enabled.
146
146
 
147
147
 
148
+ #### Ember Depdencies
149
+
150
+ Ember has several dependencies. Some of these dependencies might already be
151
+ present in your asset list. For example jQuery is bundled in `jquery-rails` gem.
152
+ If you have the jQuery assets included on your page you may want to exclude them
153
+ from the Ember distribution. You can do so by setting the `exclude_ember_deps`
154
+ option like so:
155
+
156
+ ```ruby
157
+ EmberCLI.configure do |c|
158
+ c.app :frontend, exclude_ember_deps: "jquery"
159
+ c.app :admin_panel, exclude_ember_deps: ["jquery", "handlebars"]
160
+ end
161
+ ```
162
+
163
+ jQuery and Handlebars are the main use cases for this flag.
164
+
148
165
  ## Contributing
149
166
 
150
167
  1. Fork it (https://github.com/rwz/ember-cli-rails/fork)
data/lib/ember-cli/app.rb CHANGED
@@ -2,9 +2,8 @@ require "timeout"
2
2
 
3
3
  module EmberCLI
4
4
  class App
5
- ADDON_VERSION = "0.0.7"
6
- EMBER_CLI_VERSION = "~> 0.1.3"
7
- JQUERY_VERSIONS = ["~> 1.7", "~> 2.1"].freeze
5
+ ADDON_VERSION = "0.0.8"
6
+ EMBER_CLI_VERSION = "~> 0.1.5"
8
7
 
9
8
  attr_reader :name, :options, :pid
10
9
 
@@ -101,14 +100,6 @@ module EmberCLI
101
100
  end
102
101
  end
103
102
 
104
- def suppress_jquery?
105
- return false unless defined?(Jquery::Rails::JQUERY_VERSION)
106
-
107
- JQUERY_VERSIONS.any? do |requirement|
108
- match_version?(Jquery::Rails::JQUERY_VERSION, requirement)
109
- end
110
- end
111
-
112
103
  def check_ember_cli_version!
113
104
  version = dev_dependencies.fetch("ember-cli").split("-").first
114
105
 
@@ -206,10 +197,14 @@ module EmberCLI
206
197
  app_path.join("node_modules", "ember-cli-rails-addon", "package.json").exist?
207
198
  end
208
199
 
200
+ def excluded_ember_deps
201
+ Array.wrap(options[:exclude_ember_deps]).join(",")
202
+ end
203
+
209
204
  def env_hash
210
205
  ENV.clone.tap do |vars|
211
206
  vars.store "DISABLE_FINGERPRINTING", "true"
212
- vars.store "SUPPRESS_JQUERY", "true" if suppress_jquery?
207
+ vars.store "EXCLUDE_EMBER_ASSETS", excluded_ember_deps
213
208
  end
214
209
  end
215
210
 
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.0.17".freeze
2
+ VERSION = "0.0.18".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.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud