ember-handlebars-template 0.7.2 → 0.7.3

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: eb66ab12609a3dd3e9b141727b25e424512001ed
4
- data.tar.gz: 227bc9680723a8467fb1d9925bd366ceb18898c4
3
+ metadata.gz: 16ecf940925fea527d60bf6f1589a49058f99a5c
4
+ data.tar.gz: f5d12ab8225fa4297ee82250a4a5da780c2ea42d
5
5
  SHA512:
6
- metadata.gz: b17e995bb8dce1bbaa2e72003abb618893820d97dcec010d982d5d88f6deb8223c43250fa5a2da06606e71697ff8739239e661d0fd32a216df859d4ed88c14ad
7
- data.tar.gz: 408d09065b5c562736118336755a1d9158d8d5013570144e9c0914a158a873e67700b6cc31f2b9e3ac64f9995661ba22cb29df0f5f625687712d860796a91b95
6
+ metadata.gz: 9bf29f8634294e12fe36466edb5bcae1cc5356c66e9770f7545ab4971e12d06ce312eb5ef4c742f1401f5b7c5ffe4d9eb5446f4c1adcd4f1ab5e5fd5ced4c250
7
+ data.tar.gz: 704dda831fb06fb00c28c358abd9e22dca6c069596fd48533d1af5b5698a9c42aea2aadf8a1399969ec0d8c617c5621b17f6eb5bf4a0f7be97aa1ebf5cf1c662
@@ -20,13 +20,13 @@ module Ember
20
20
  end
21
21
 
22
22
  def setup(env)
23
- env.register_mime_type 'text/x-handlebars', extensions: %w(.raw.hbs .raw.hjs .raw.handlebars)
23
+ env.register_mime_type 'text/x-handlebars', extensions: with_js_extension(%w(.raw.hbs .raw.hjs .raw.handlebars))
24
24
  env.register_transformer 'text/x-handlebars', 'application/javascript', self
25
25
 
26
- env.register_mime_type 'text/x-ember-mustache', extensions: %w(.mustache.hbs .mustache.hjs .mustache.handlebars)
26
+ env.register_mime_type 'text/x-ember-mustache', extensions: with_js_extension(%w(.mustache.hbs .mustache.hjs .mustache.handlebars))
27
27
  env.register_transformer 'text/x-ember-mustache', 'application/javascript', self
28
28
 
29
- env.register_mime_type 'text/x-ember-handlebars', extensions: %w(.hbs .hjs .handlebars)
29
+ env.register_mime_type 'text/x-ember-handlebars', extensions: with_js_extension(%w(.hbs .hjs .handlebars))
30
30
  env.register_transformer 'text/x-ember-handlebars', 'application/javascript', self
31
31
  end
32
32
 
@@ -41,6 +41,12 @@ module Ember
41
41
  def handlebars_available?
42
42
  Barber::Precompiler.handlebars_available?
43
43
  end
44
+
45
+ private
46
+
47
+ def with_js_extension(extensions)
48
+ extensions + extensions.map {|ext| ".js#{ext}" }
49
+ end
44
50
  end
45
51
 
46
52
  attr_reader :config
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module Handlebars
3
- VERSION = '0.7.2'
3
+ VERSION = '0.7.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-handlebars-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryunosuke SATO