sprockets-es6 0.4.0 → 0.5.0

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: 7bff26b1acf2592c984a023e5fb05542356df18d
4
- data.tar.gz: ec198d138c98e1cfa6bc0ed6485b2b4b9c4e719c
3
+ metadata.gz: 0d8ece19a8b0a1a2b751c845411eb830f2483942
4
+ data.tar.gz: a6c9908ed81924203e3e55c4f6df3a7c1c9627f3
5
5
  SHA512:
6
- metadata.gz: ce8eee48aefb23a14208359cdfd8ef2c956ef7992a6460e7259c28ee7606281dcc537a826fddd533b0d323cc404c9f3729a6e57ee7a1dfbe09de7118bffb3bed
7
- data.tar.gz: c716af4cd318347f3ca019a6e324e1c7466125a405e22c5289f917976e7945c66135764ae8168a2e098e913259b22f23ff948976199d5a09119a643241191ac0
6
+ metadata.gz: 4399a02b0519f2796f6e66a73082a048676f97756dbc9fa04bf981fdd33f0c6bdf588327f2805a2a0b0acd52d63e7e5b7e1f9f0240bc0ea703f2b1f0d237fd9e
7
+ data.tar.gz: c5203c421bcd6d5810804c1bde0295ce00c71941f0ad996acb85f1ce240913bd300a327a3a0b495127b597975200cfdbfcd7c4ca9ff219c383ed42e8cb7451e2
data/README.md CHANGED
@@ -27,6 +27,16 @@ class Animal {
27
27
  }
28
28
  ```
29
29
 
30
+ ## Releases
31
+
32
+ This plugin is primarily experimental and will never reach a stable 1.0. The
33
+ purpose is to test out 6to5 features on Sprockets 3.x and include it by default
34
+ in Sprockets 4.x.
35
+
30
36
  ## Caveats
31
37
 
32
38
  Requires Sprockets 3 betas.
39
+
40
+ ``` ruby
41
+ gem 'sprockets', '~>3.0.0.beta'
42
+ ```
@@ -26,7 +26,12 @@ module Sprockets
26
26
  def call(input)
27
27
  data = input[:data]
28
28
  result = input[:cache].fetch(@cache_key + [data]) do
29
- ES6to5.transform(data, @options)
29
+ ES6to5.transform(data, @options.merge(
30
+ 'sourceRoot' => input[:load_path],
31
+ 'moduleRoot' => '',
32
+ 'filename' => input[:filename],
33
+ 'filenameRelative' => input[:environment].split_subpath(input[:load_path], input[:filename])
34
+ ))
30
35
  end
31
36
  result['code']
32
37
  end
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  class ES6
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-es6
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: 6to5