Module: CloudAssets
- Defined in:
- lib/cloud_assets.rb,
lib/cloud_assets/version.rb
Defined Under Namespace
Classes: Engine
Constant Summary collapse
- VERSION =
"0.0.16"
- @@origin =
ENV['CLOUD_ASSET_ORIGIN']
- @@user =
ENV['CLOUD_ASSET_USER']
- @@password =
ENV['CLOUD_ASSET_PASSWORD']
- @@cdn =
ENV['CLOUD_ASSET_CDN'] || ''
- @@cache_timeout_seconds =
604800
- @@javascript_max_age_seconds =
600
- @@css_max_age_seconds =
600
- @@other_max_age_seconds =
86400
- @@verbose =
false
Class Method Summary collapse
-
.fixup_css(css) ⇒ Object
Monkey-patch this method if you need to hack some fixups into css from your asset source.
-
.fixup_html(html) ⇒ Object
Monkey-patch this method if you need to hack some fixups into html from your asset source.
-
.fixup_javascript(javascript) ⇒ Object
Monkey-patch this method if you need to hack some fixups into javascript from your asset source.
-
.fixup_url(fullpath) ⇒ Object
Monkey-patch this method if you need to hack some fixups into asset requests urls.
- .setup {|_self| ... } ⇒ Object
Class Method Details
.fixup_css(css) ⇒ Object
Monkey-patch this method if you need to hack some fixups into css from your asset source.
29 30 31 |
# File 'lib/cloud_assets.rb', line 29 def self.fixup_css(css) css end |
.fixup_html(html) ⇒ Object
Monkey-patch this method if you need to hack some fixups into html from your asset source.
11 12 13 |
# File 'lib/cloud_assets.rb', line 11 def self.fixup_html(html) html end |
.fixup_javascript(javascript) ⇒ Object
Monkey-patch this method if you need to hack some fixups into javascript from your asset source.
23 24 25 |
# File 'lib/cloud_assets.rb', line 23 def self.fixup_javascript(javascript) javascript end |
.fixup_url(fullpath) ⇒ Object
Monkey-patch this method if you need to hack some fixups into asset requests urls
17 18 19 |
# File 'lib/cloud_assets.rb', line 17 def self.fixup_url(fullpath) fullpath end |
.setup {|_self| ... } ⇒ Object
5 6 7 |
# File 'lib/cloud_assets.rb', line 5 def self.setup yield self end |