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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWE4ODAxMjM5MGM4NzVmOTVkMTVkMzBkMDI3NDM4Y2E0NDlkNDc5ZQ==
4
+ MmZkYWIyYmYzOWU1MTEwN2Q0NmJkMjQwNjlkOGJjZGIwZTYzOTQxNQ==
5
5
  data.tar.gz: !binary |-
6
- MDk0MWNjNjllZmY1OWVjOWIzMDg0MDgxMzRlZTE0OTVlYTc3Y2JiZQ==
6
+ YjEwMjMyNzBlNDMyYTU1YWI5NGUzN2E1ZGM3MWY3OTEyZTQ0YmE2Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWRjOGI2ODU1NDUwNTdmOGI0OGExOGM1N2I2YjdiYmU1ZjA3ZTBiNWMwODFl
10
- MDE1N2M3NmEwZDAxMDk2MDkxNGM1Mzk4YjlhOWI5NGQ2NDM0MTBkM2VjNjEy
11
- OTJkMmQyMmI1MmY0N2M5M2NlNWZiM2ZjZTQ1YzJmODA1NTA4MDM=
9
+ MWFjY2E3YmZkOGY3MDU0NDVhOWYxZjgwNTQyM2NiMjdjNDE0OTFhNmRjNTJl
10
+ NzQ0MDAyMjU2M2JjMzM5ODdlZTdlNzA3NTMyOTY1N2Q4ZWFlZmFhNWY3YTMw
11
+ ZWZkMTlkMDI2ZGM3YWQ3MjZkN2E3ODkwZTdmNDY4ZTg5MDUwMDU=
12
12
  data.tar.gz: !binary |-
13
- ZGEyM2MyNWNjMGE5Y2NkZjI2MjUyYzZlNDQwYTZiNWFjYjUxZDM4ZjFkZDll
14
- MDBhOGFhYjUyNjFkOTEyM2UyNGQ2NDJiOThhNDg3YTIxY2IzMTkzOGY2MDIw
15
- ZWZkOTA1NmU4MzI5ODQ5MDc3ODQwMTE4Yjg2ZWUwYzViMDNkOTQ=
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
@@ -19,7 +19,12 @@ module Sprockets
19
19
 
20
20
  def evaluate(scope, locals, &block)
21
21
  name = module_name(scope)
22
- ::Traceur.compile(data, module_name: name, filename: file)
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
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Traceur
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
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.2
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-01-30 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets