csso-rails 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.
@@ -1,6 +1,8 @@
1
1
  function CSSOTranslator() {}
2
2
 
3
3
  CSSOTranslator.prototype.translate = function(tree) {
4
+ // console.trace('--------');
5
+ // console.log(tree);
4
6
  return this._t(tree);
5
7
  };
6
8
 
data/lib/csso/js/util.js CHANGED
File without changes
data/lib/csso/rails.rb CHANGED
@@ -26,7 +26,11 @@ module Csso
26
26
  end
27
27
 
28
28
  def self.register
29
- Sprockets::Compressors.register_css_compressor(COMPRESSOR_SYM, 'Csso::CssCompressor', :default => true)
29
+ if Sprockets.respond_to? :register_compressor
30
+ Sprockets.register_compressor('text/css', COMPRESSOR_SYM, 'Csso::CssCompressor')
31
+ else
32
+ Sprockets::Compressors.register_css_compressor(COMPRESSOR_SYM, 'Csso::CssCompressor', :default => true)
33
+ end
30
34
  end
31
35
  end
32
36
 
data/lib/csso/version.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  module Csso
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
+ CSSO_VERSION = '1.3.7'
3
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csso-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-24 00:00:00.000000000 Z
12
+ date: 2013-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: therubyracer
@@ -96,7 +96,7 @@ files:
96
96
  - lib/csso/js/compressor.js
97
97
  - lib/csso/js/csso.js
98
98
  - lib/csso/js/cssoapi.js
99
- - lib/csso/js/parser.js
99
+ - lib/csso/js/gonzales.cssp.node.js
100
100
  - lib/csso/js/translator.js
101
101
  - lib/csso/js/util.js
102
102
  - lib/csso/loader.rb
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: 2273465511458410944
122
+ hash: -3516938475445365228
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  none: false
125
125
  requirements:
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  segments:
130
130
  - 0
131
- hash: 2273465511458410944
131
+ hash: -3516938475445365228
132
132
  requirements: []
133
133
  rubyforge_project: csso-rails
134
134
  rubygems_version: 1.8.24