sprockets-babel-miniracer 0.0.11 → 0.0.12

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: 3f2a259c66a7efbeed23a5492fa265f6a42dd9ff
4
- data.tar.gz: 7a117702038a8ed033413731155f03f547ac8cea
3
+ metadata.gz: 3a08c41ec7b0d5db82692da74c15ee3b8d12fed6
4
+ data.tar.gz: a91cf61d9075c8213e73dc00badcecf146f36571
5
5
  SHA512:
6
- metadata.gz: 224789322dd28b3572ab08557ad980da2caa0bbee6227880ba7610f201f7ee5c42c87f144c81a660f53ea22922a699f14e4655b67ea1a77664c6f3d93c0505a7
7
- data.tar.gz: 1fb93dbc9bdab5e9f33887949e35c2dbee0ab01d8e1e57126de4b27c9dfdf21b32af18e4f1a5d2092b36ada39feba093d5d24dbbfbee16e37854c851a380e47e
6
+ metadata.gz: ea2d9f246900e26da8b48f6bf449214344d5e63d4999d6a0bda08db20ff9b1c0aa1a5ca6ef320937474ece980b7f1622107f6c2f8b9ca9958884ccb3ed9bb851
7
+ data.tar.gz: e424e76613e15bc8d2d4ccf58a2dcf2f79a8f350b25131fd9b39bd789f47cd47f7c04e88901f313067f23ff245d46c5224d7d3b71d8736d41535223313c416c3
@@ -209,5 +209,11 @@ module Sprockets
209
209
  end
210
210
  end
211
211
 
212
- register_engine '.es6', Babel::Template, mime_type: 'application/javascript', silence_deprecation: true
212
+ # NOTE KI https://github.com/appjudo/skim/issues/55
213
+ if Sprockets.respond_to?(:register_engine)
214
+ register_engine '.es6', Babel::Template, mime_type: 'application/javascript', silence_deprecation: true
215
+ else
216
+ Sprockets.register_mime_type 'text/es6', extensions: ['.es6', '.mjs']
217
+ Sprockets.register_transformer 'text/es6', 'application/javascript', Babel::Template
218
+ end
213
219
  end
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Babel
3
- VERSION = '0.0.11'
3
+ VERSION = '0.0.12'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-babel-miniracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kari Ikonen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.2.2
117
+ rubygems_version: 2.5.1
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Sprockets 2.x plugin for BabelJS.