web_assets 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1e6b59a404f17c63dfe51901217c05dc4585bff
4
- data.tar.gz: fb316adc5028f2af9ce634bd09fad33037c47605
3
+ metadata.gz: 9a90355e0b954e2fd493d34a62521e6f7b574825
4
+ data.tar.gz: 751363128a72a06eab7104d354cf11cfc847123e
5
5
  SHA512:
6
- metadata.gz: 84242383dc6ed0854dafb72cc15831feb7bb41661f2df40ccca9c04451567dc414bc2065da6742ecc29802edfa0886349018f9a551a719e29eea357762c7d7a3
7
- data.tar.gz: ef0e77c2d0e13c725673c35364d3ad884a7357aea63a75880f26b072edc4d012fae6a4a053826cd59bbeb73607b3a3b4516ee1670a577097b76bc447c783a586
6
+ metadata.gz: b825c6fe19a1c65e4df8b49ec99e5d19d7c69f0921277854496c212b8e75cb79820bf13722a2cbcf08bd83586c00bc96f7b35b0c8a0fac641e1df9f50dace24a
7
+ data.tar.gz: 48eb6d86c02278f7b68e51b455efa9fdf8cc0543df0b26db3f4f858b7346aa224e137fbefa0916a34ab621aa6fbe7d1ec1d888ba7807952ea94ee93bbce45f6f
@@ -20,30 +20,54 @@ module WebAssets
20
20
  private
21
21
 
22
22
  def process request
23
- request.when [:append_javascript_path, String] do |path|
24
- WebAssets.logger.debug "ClientInterface#process: append_javascript_path = #{path.inspect}"
25
- reply request, api.append_javascript_path(path)
23
+ WebAssets.logger.debug "ClientInterface#process: START #{request.inspect}"
24
+
25
+ request.when [:set_script_path, String] do |path|
26
+ WebAssets.logger.debug "ClientInterface#process: set_script_path = #{path.inspect}"
27
+ reply request, api.set_script_path(path)
28
+ end
29
+
30
+ request.when [:set_stylesheet_path, String] do |path|
31
+ WebAssets.logger.debug "ClientInterface#process: set_stylesheet_path = #{path.inspect}"
32
+ reply request, api.set_stylesheet_path(path)
33
+ end
34
+
35
+ request.when [:add_script_load_path, String] do |path|
36
+ WebAssets.logger.debug "ClientInterface#process: add_script_load_path = #{path.inspect}"
37
+ reply request, api.add_script_load_path(path)
26
38
  end
27
39
 
28
- request.when [:append_stylesheet_path, String] do |path|
29
- WebAssets.logger.debug "ClientInterface#process: append_stylesheet_path = #{path.inspect}"
30
- reply request, api.append_stylesheet_path(path)
40
+ request.when [:add_stylesheet_load_path, String] do |path|
41
+ WebAssets.logger.debug "ClientInterface#process: add_stylesheet_load_path = #{path.inspect}"
42
+ reply request, api.add_stylesheet_load_path(path)
31
43
  end
32
44
 
33
- request.when [:javascript_filenames, String] do |filename|
34
- WebAssets.logger.debug "ClientInterface#process: javascript_filenames = #{filename.inspect}"
35
- reply request, api.javascript_filenames(filename)
45
+ request.when [:script_filenames, String] do |filename|
46
+ WebAssets.logger.debug "ClientInterface#process: script_filenames = #{filename.inspect}"
47
+ reply request, api.script_filenames(filename)
36
48
  end
37
49
 
38
- request.when [:javascript_content, Array] do |filename, options|
39
- WebAssets.logger.debug "ClientInterface#process: javascript_content = #{filename.inspect}"
40
- reply request, api.javascript_content(filename, options)
50
+ request.when [:script_digest_filename, String] do |filename|
51
+ WebAssets.logger.debug "ClientInterface#process: script_digest_filename = #{filename.inspect}"
52
+ reply request, api.script_digest_filename(filename)
53
+ end
54
+
55
+ request.when [:script_content, Array] do |filename, options|
56
+ WebAssets.logger.debug "ClientInterface#process: script_content = #{filename.inspect}"
57
+ reply request, api.script_content(filename, options)
58
+ end
59
+
60
+ request.when [:stylesheet_digest_filename, String] do |filename|
61
+ WebAssets.logger.debug "ClientInterface#process: stylesheet_digest_filename = #{filename.inspect}"
62
+ reply request, api.stylesheet_digest_filename(filename)
41
63
  end
42
64
 
43
65
  request.when [:stylesheet_content, Array] do |filename, options|
44
66
  WebAssets.logger.debug "ClientInterface#process: stylesheet_content = #{filename.inspect}"
45
67
  reply request, api.stylesheet_content(filename, options)
46
68
  end
69
+
70
+ WebAssets.logger.debug "ClientInterface#process: END"
47
71
  end
48
72
 
49
73
  def reply request, response
@@ -1,3 +1,3 @@
1
1
  module WebAssets
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
4
+ version: 0.0.3
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-01-10 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compass