sprockets-traceur 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -0
- data/lib/sprockets/traceur.rb +6 -1
- data/lib/sprockets/traceur/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmZkYWIyYmYzOWU1MTEwN2Q0NmJkMjQwNjlkOGJjZGIwZTYzOTQxNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjEwMjMyNzBlNDMyYTU1YWI5NGUzN2E1ZGM3MWY3OTEyZTQ0YmE2Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWFjY2E3YmZkOGY3MDU0NDVhOWYxZjgwNTQyM2NiMjdjNDE0OTFhNmRjNTJl
|
10
|
+
NzQ0MDAyMjU2M2JjMzM5ODdlZTdlNzA3NTMyOTY1N2Q4ZWFlZmFhNWY3YTMw
|
11
|
+
ZWZkMTlkMDI2ZGM3YWQ3MjZkN2E3ODkwZTdmNDY4ZTg5MDUwMDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTAxZTczYzY2ZTVmNTg5MDA1NzUyM2E0MzM3ODQ0M2ExYWUxZGQyMDZmZWIz
|
14
|
+
NTY0NzBkMWNmYjkzZDQ3N2RkYzQzOGFkNjcwNGFhNmU1NDMyZWNiYTM5OTc3
|
15
|
+
NzViYzMzNDM0M2EwZWM3NWY1OGZmMjhkMmIzZDRkMTBhNjM1YTc=
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Sprockets::Traceur
|
2
2
|
|
3
|
+
[Introductory blog post](http://gunpowderlabs.com/blog/introducing-sprockets-traceur/)
|
4
|
+
|
3
5
|
This gem integrates [traceur-rb](https://github.com/gunpowderlabs/traceur-rb) with Sprockets (and through Sprockets, with Rails Asset Pipeline).
|
4
6
|
|
5
7
|
## Installation
|
data/lib/sprockets/traceur.rb
CHANGED
@@ -19,7 +19,12 @@ module Sprockets
|
|
19
19
|
|
20
20
|
def evaluate(scope, locals, &block)
|
21
21
|
name = module_name(scope)
|
22
|
-
|
22
|
+
|
23
|
+
if ::Rails.present?
|
24
|
+
filename = file.gsub(/^#{::Rails.root}/, '')
|
25
|
+
end
|
26
|
+
|
27
|
+
::Traceur.compile(data, module_name: name, filename: filename)
|
23
28
|
end
|
24
29
|
|
25
30
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-traceur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Pohorecki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|