web_assets 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/web_assets/client_interface.rb +11 -4
- data/lib/web_assets/script_processor.rb +4 -0
- data/lib/web_assets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86fbad01477009b7389f17b5dbca1821586de1a6
|
4
|
+
data.tar.gz: 02a2f6737698505383ba5d21cd2ab9cef80ac031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64cb2a923f3f7e0033a29db122e2a7f6dd1f466dcecd9825e4992ae1f229a5e380a0988d1f8ae0c24f9bd70ec070dc314a717cc278e9aebf0f53f587c0947c44
|
7
|
+
data.tar.gz: dadb7acdcecf28465446c01166ae88345ad994aef88a67448beb32f82f4a3f4e2b33af7c67b813ff07dd6a4eeaef8bb84662b8d368552da27aacf97c27fcaa20
|
@@ -26,22 +26,22 @@ module WebAssets
|
|
26
26
|
|
27
27
|
request.when [:set_script_path, String] do |path|
|
28
28
|
WebAssets.logger.debug "ClientInterface#process: set_script_path = #{path.inspect}"
|
29
|
-
reply request, api.set_script_path(path)
|
29
|
+
reply request, api.set_script_path(eval_path path)
|
30
30
|
end
|
31
31
|
|
32
32
|
request.when [:set_stylesheet_path, String] do |path|
|
33
33
|
WebAssets.logger.debug "ClientInterface#process: set_stylesheet_path = #{path.inspect}"
|
34
|
-
reply request, api.set_stylesheet_path(path)
|
34
|
+
reply request, api.set_stylesheet_path(eval_path path)
|
35
35
|
end
|
36
36
|
|
37
37
|
request.when [:add_script_load_path, String] do |path|
|
38
38
|
WebAssets.logger.debug "ClientInterface#process: add_script_load_path = #{path.inspect}"
|
39
|
-
reply request, api.add_script_load_path(path)
|
39
|
+
reply request, api.add_script_load_path(eval_path path)
|
40
40
|
end
|
41
41
|
|
42
42
|
request.when [:add_stylesheet_load_path, String] do |path|
|
43
43
|
WebAssets.logger.debug "ClientInterface#process: add_stylesheet_load_path = #{path.inspect}"
|
44
|
-
reply request, api.add_stylesheet_load_path(path)
|
44
|
+
reply request, api.add_stylesheet_load_path(eval_path path)
|
45
45
|
end
|
46
46
|
|
47
47
|
request.when [:script_filenames, String] do |filename|
|
@@ -83,6 +83,13 @@ module WebAssets
|
|
83
83
|
request.receive_loop
|
84
84
|
end
|
85
85
|
|
86
|
+
def eval_path path
|
87
|
+
return path unless path.start_with? "ruby:"
|
88
|
+
instance_eval path[5..-1]
|
89
|
+
rescue StandardError
|
90
|
+
"INVALID PATH"
|
91
|
+
end
|
92
|
+
|
86
93
|
end
|
87
94
|
|
88
95
|
end
|
data/lib/web_assets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathieu Lajugie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: compass
|