multi_css 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/README.md +1 -2
  2. data/lib/multi_css.rb +4 -5
  3. data/lib/multi_css/version.rb +1 -1
  4. data/multi_css.gemspec +2 -1
  5. data/spec/multi_css_spec.rb +5 -10
  6. metadata +17 -116
  7. data/.gitmodules +0 -3
  8. data/lib/multi_css/adapters/vendored.rb +0 -9
  9. data/vendor/cssminify/.gitignore +0 -9
  10. data/vendor/cssminify/.travis.yml +0 -7
  11. data/vendor/cssminify/CHANGES.md +0 -12
  12. data/vendor/cssminify/Gemfile +0 -4
  13. data/vendor/cssminify/LICENSE.md +0 -22
  14. data/vendor/cssminify/README.md +0 -64
  15. data/vendor/cssminify/cssminify.gemspec +0 -30
  16. data/vendor/cssminify/lib/cssminify.rb +0 -34
  17. data/vendor/cssminify/lib/cssminify/cssmin.rb +0 -383
  18. data/vendor/cssminify/lib/cssminify/version.rb +0 -5
  19. data/vendor/cssminify/spec/cssminify_spec.rb +0 -257
  20. data/vendor/cssminify/spec/sample.css +0 -100
  21. data/vendor/cssminify/spec/spec_helper.rb +0 -4
  22. data/vendor/cssminify/spec/tests/background-position.css +0 -2
  23. data/vendor/cssminify/spec/tests/background-position.css.min +0 -1
  24. data/vendor/cssminify/spec/tests/border-none.css +0 -5
  25. data/vendor/cssminify/spec/tests/border-none.css.min +0 -1
  26. data/vendor/cssminify/spec/tests/box-model-hack.css +0 -9
  27. data/vendor/cssminify/spec/tests/box-model-hack.css.min +0 -1
  28. data/vendor/cssminify/spec/tests/bug2527974.css +0 -10
  29. data/vendor/cssminify/spec/tests/bug2527974.css.min +0 -1
  30. data/vendor/cssminify/spec/tests/bug2527991.css +0 -19
  31. data/vendor/cssminify/spec/tests/bug2527991.css.min +0 -1
  32. data/vendor/cssminify/spec/tests/bug2527998.css +0 -4
  33. data/vendor/cssminify/spec/tests/bug2527998.css.min +0 -1
  34. data/vendor/cssminify/spec/tests/bug2528034.css +0 -5
  35. data/vendor/cssminify/spec/tests/bug2528034.css.min +0 -1
  36. data/vendor/cssminify/spec/tests/bug2528093.css +0 -3
  37. data/vendor/cssminify/spec/tests/bug2528093.css.min +0 -1
  38. data/vendor/cssminify/spec/tests/charset-media.css +0 -9
  39. data/vendor/cssminify/spec/tests/charset-media.css.min +0 -1
  40. data/vendor/cssminify/spec/tests/color-simple.css +0 -8
  41. data/vendor/cssminify/spec/tests/color-simple.css.min +0 -1
  42. data/vendor/cssminify/spec/tests/color.css +0 -46
  43. data/vendor/cssminify/spec/tests/color.css.min +0 -1
  44. data/vendor/cssminify/spec/tests/comment.css +0 -3
  45. data/vendor/cssminify/spec/tests/comment.css.min +0 -1
  46. data/vendor/cssminify/spec/tests/concat-charset.css +0 -15
  47. data/vendor/cssminify/spec/tests/concat-charset.css.min +0 -1
  48. data/vendor/cssminify/spec/tests/dataurl-base64-doublequotes.css +0 -23
  49. data/vendor/cssminify/spec/tests/dataurl-base64-doublequotes.css.min +0 -1
  50. data/vendor/cssminify/spec/tests/dataurl-base64-eof.css +0 -10
  51. data/vendor/cssminify/spec/tests/dataurl-base64-eof.css.min +0 -1
  52. data/vendor/cssminify/spec/tests/dataurl-base64-linebreakindata.css +0 -34
  53. data/vendor/cssminify/spec/tests/dataurl-base64-linebreakindata.css.min +0 -1
  54. data/vendor/cssminify/spec/tests/dataurl-base64-noquotes.css +0 -26
  55. data/vendor/cssminify/spec/tests/dataurl-base64-noquotes.css.min +0 -1
  56. data/vendor/cssminify/spec/tests/dataurl-base64-singlequotes.css +0 -23
  57. data/vendor/cssminify/spec/tests/dataurl-base64-singlequotes.css.min +0 -1
  58. data/vendor/cssminify/spec/tests/dataurl-base64-twourls.css +0 -27
  59. data/vendor/cssminify/spec/tests/dataurl-base64-twourls.css.min +0 -1
  60. data/vendor/cssminify/spec/tests/dataurl-dbquote-font.css +0 -30
  61. data/vendor/cssminify/spec/tests/dataurl-dbquote-font.css.min +0 -5
  62. data/vendor/cssminify/spec/tests/dataurl-nonbase64-doublequotes.css +0 -13
  63. data/vendor/cssminify/spec/tests/dataurl-nonbase64-doublequotes.css.min +0 -1
  64. data/vendor/cssminify/spec/tests/dataurl-nonbase64-noquotes.css +0 -11
  65. data/vendor/cssminify/spec/tests/dataurl-nonbase64-noquotes.css.min +0 -1
  66. data/vendor/cssminify/spec/tests/dataurl-nonbase64-singlequotes.css +0 -15
  67. data/vendor/cssminify/spec/tests/dataurl-nonbase64-singlequotes.css.min +0 -2
  68. data/vendor/cssminify/spec/tests/dataurl-noquote-multiline-font.css +0 -31
  69. data/vendor/cssminify/spec/tests/dataurl-noquote-multiline-font.css.min +0 -3
  70. data/vendor/cssminify/spec/tests/dataurl-realdata-doublequotes.css +0 -90
  71. data/vendor/cssminify/spec/tests/dataurl-realdata-doublequotes.css.min +0 -1
  72. data/vendor/cssminify/spec/tests/dataurl-realdata-noquotes.css +0 -90
  73. data/vendor/cssminify/spec/tests/dataurl-realdata-noquotes.css.min +0 -1
  74. data/vendor/cssminify/spec/tests/dataurl-realdata-singlequotes.css +0 -90
  75. data/vendor/cssminify/spec/tests/dataurl-realdata-singlequotes.css.min +0 -1
  76. data/vendor/cssminify/spec/tests/dataurl-realdata-yuiapp.css +0 -106
  77. data/vendor/cssminify/spec/tests/dataurl-realdata-yuiapp.css.min +0 -1
  78. data/vendor/cssminify/spec/tests/dataurl-singlequote-font.css +0 -30
  79. data/vendor/cssminify/spec/tests/dataurl-singlequote-font.css.min +0 -3
  80. data/vendor/cssminify/spec/tests/decimals.css +0 -3
  81. data/vendor/cssminify/spec/tests/decimals.css.min +0 -1
  82. data/vendor/cssminify/spec/tests/dollar-header.css +0 -7
  83. data/vendor/cssminify/spec/tests/dollar-header.css.min +0 -3
  84. data/vendor/cssminify/spec/tests/font-face.css +0 -6
  85. data/vendor/cssminify/spec/tests/font-face.css.min +0 -1
  86. data/vendor/cssminify/spec/tests/ie5mac.css +0 -5
  87. data/vendor/cssminify/spec/tests/ie5mac.css.min +0 -1
  88. data/vendor/cssminify/spec/tests/media-empty-class.css +0 -16
  89. data/vendor/cssminify/spec/tests/media-empty-class.css.min +0 -1
  90. data/vendor/cssminify/spec/tests/media-multi.css +0 -3
  91. data/vendor/cssminify/spec/tests/media-multi.css.min +0 -1
  92. data/vendor/cssminify/spec/tests/media-test.css +0 -3
  93. data/vendor/cssminify/spec/tests/media-test.css.min +0 -1
  94. data/vendor/cssminify/spec/tests/opacity-filter.css +0 -14
  95. data/vendor/cssminify/spec/tests/opacity-filter.css.min +0 -1
  96. data/vendor/cssminify/spec/tests/preserve-case.css +0 -15
  97. data/vendor/cssminify/spec/tests/preserve-case.css.min +0 -1
  98. data/vendor/cssminify/spec/tests/preserve-new-line.css +0 -6
  99. data/vendor/cssminify/spec/tests/preserve-new-line.css.min +0 -3
  100. data/vendor/cssminify/spec/tests/preserve-strings.css +0 -7
  101. data/vendor/cssminify/spec/tests/preserve-strings.css.min +0 -1
  102. data/vendor/cssminify/spec/tests/pseudo-first.css +0 -16
  103. data/vendor/cssminify/spec/tests/pseudo-first.css.min +0 -1
  104. data/vendor/cssminify/spec/tests/pseudo.css +0 -4
  105. data/vendor/cssminify/spec/tests/pseudo.css.min +0 -1
  106. data/vendor/cssminify/spec/tests/special-comments.css +0 -13
  107. data/vendor/cssminify/spec/tests/special-comments.css.min +0 -9
  108. data/vendor/cssminify/spec/tests/star-underscore-hacks.css +0 -5
  109. data/vendor/cssminify/spec/tests/star-underscore-hacks.css.min +0 -1
  110. data/vendor/cssminify/spec/tests/string-in-comment.css +0 -8
  111. data/vendor/cssminify/spec/tests/string-in-comment.css.min +0 -1
  112. data/vendor/cssminify/spec/tests/webkit-transform.css +0 -2
  113. data/vendor/cssminify/spec/tests/webkit-transform.css.min +0 -1
  114. data/vendor/cssminify/spec/tests/zeros.css +0 -12
  115. data/vendor/cssminify/spec/tests/zeros.css.min +0 -1
data/README.md CHANGED
@@ -19,13 +19,12 @@ supported engines already loaded, it will utilize them before attempting to
19
19
  load any.
20
20
  It will load libraries in following order:
21
21
 
22
- - [css_press](https://github.com/stereobooster/css_press)
23
22
  - [cssminify](https://github.com/matthiassiegel/cssminify)
24
23
  - [yuicssmin](https://github.com/matthiassiegel/yuicssmin)
25
24
  - [ruby-yui-compressor](https://github.com/sstephenson/ruby-yui-compressor). Doesn't test with travis-ci
26
25
  - [rainpress](https://github.com/sprsquish/rainpress)
27
26
 
28
- If no other library is available, MultiCss falls back to vendored [cssminify](https://github.com/matthiassiegel/cssminify), a simple and reliable library.
27
+ If no other library is available, MultiCss falls back to [css_press](https://github.com/stereobooster/css_press).
29
28
 
30
29
  ## TODO
31
30
 
@@ -11,11 +11,11 @@ module MultiCss
11
11
  @adapter = nil
12
12
 
13
13
  REQUIREMENT_MAP = [
14
- ["css_press", :css_press],
15
14
  ["cssminify", :cssminify],
16
15
  ["yuicssmin", :yuicssmin],
17
16
  ["yui/compressor", :yui_compressor],
18
- ["rainpress", :rainpress]
17
+ ["rainpress", :rainpress],
18
+ ["css_press", :css_press]
19
19
  ]
20
20
 
21
21
  class << self
@@ -25,11 +25,11 @@ module MultiCss
25
25
  # if any adapters are already loaded, then checks
26
26
  # to see which are installed if none are loaded.
27
27
  def default_adapter
28
- return :css_press if defined?(::CssPress)
29
28
  return :cssminify if defined?(::CSSminify)
30
29
  return :yuicssmin if defined?(::Yuicssmin)
31
30
  return :yui_compressor if defined?(::YUI::CssCompressor)
32
31
  return :rainpress if defined?(::Rainpress)
32
+ return :css_press if defined?(::CssPress)
33
33
 
34
34
  REQUIREMENT_MAP.each do |(library, adapter)|
35
35
  begin
@@ -40,8 +40,7 @@ module MultiCss
40
40
  end
41
41
  end
42
42
 
43
- Kernel.warn "[WARNING] MultiCss is using the default adapter."
44
- :vendored
43
+ :css_press
45
44
  end
46
45
  # :nodoc:
47
46
  alias :default_engine :default_adapter
@@ -1,3 +1,3 @@
1
1
  module MultiCss
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -14,11 +14,12 @@ Gem::Specification.new do |gem|
14
14
  gem.license = "MIT"
15
15
 
16
16
  gem.files = `git ls-files`.split($/)
17
- gem.files += `cd vendor/cssminify && git ls-files`.split($/).map{|f| 'vendor/cssminify/' + f}
18
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
19
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
20
19
  gem.require_paths = ["lib"]
21
20
 
21
+ gem.add_dependency 'css_press'
22
+
22
23
  gem.add_development_dependency 'rake'
23
24
  gem.add_development_dependency 'rdoc'
24
25
  gem.add_development_dependency 'rspec'
@@ -38,18 +38,13 @@ describe 'MultiCss' do
38
38
  end
39
39
 
40
40
  it 'defaults to vendored implemention if no other implementions are available' do
41
- MultiCss.default_adapter.should eq :vendored
42
- end
43
-
44
- it 'prints a warning' do
45
- Kernel.should_receive(:warn).with(/warning/i)
46
- MultiCss.default_adapter
41
+ MultiCss.default_adapter.should eq :css_press
47
42
  end
48
43
  end
49
44
 
50
- it 'defaults to the best available gem' do
51
- require 'css_press'
52
- MultiCss.adapter.name.should eq 'MultiCss::Adapters::CssPress'
45
+ it 'defaults to the best not vendored lib if any other lib available' do
46
+ require 'cssminify'
47
+ MultiCss.adapter.name.should eq 'MultiCss::Adapters::Cssminify'
53
48
  end
54
49
 
55
50
  it 'is settable via a symbol' do
@@ -63,7 +58,7 @@ describe 'MultiCss' do
63
58
  end
64
59
  end
65
60
 
66
- %w(css_press cssminify yuicssmin rainpress vendored).each do |adapter|
61
+ %w(css_press cssminify yuicssmin rainpress).each do |adapter|
67
62
  context adapter do
68
63
  it_behaves_like "an adapter", adapter
69
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_css
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,22 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: css_press
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: rake
16
32
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +99,6 @@ extensions: []
83
99
  extra_rdoc_files: []
84
100
  files:
85
101
  - .gitignore
86
- - .gitmodules
87
102
  - .travis.yml
88
103
  - Gemfile
89
104
  - LICENSE.txt
@@ -93,7 +108,6 @@ files:
93
108
  - lib/multi_css/adapters/css_press.rb
94
109
  - lib/multi_css/adapters/cssminify.rb
95
110
  - lib/multi_css/adapters/rainpress.rb
96
- - lib/multi_css/adapters/vendored.rb
97
111
  - lib/multi_css/adapters/yui_compressor.rb
98
112
  - lib/multi_css/adapters/yuicssmin.rb
99
113
  - lib/multi_css/version.rb
@@ -101,113 +115,6 @@ files:
101
115
  - spec/adapter_shared_example.rb
102
116
  - spec/helper.rb
103
117
  - spec/multi_css_spec.rb
104
- - vendor/cssminify/.gitignore
105
- - vendor/cssminify/.travis.yml
106
- - vendor/cssminify/CHANGES.md
107
- - vendor/cssminify/Gemfile
108
- - vendor/cssminify/LICENSE.md
109
- - vendor/cssminify/README.md
110
- - vendor/cssminify/cssminify.gemspec
111
- - vendor/cssminify/lib/cssminify.rb
112
- - vendor/cssminify/lib/cssminify/cssmin.rb
113
- - vendor/cssminify/lib/cssminify/version.rb
114
- - vendor/cssminify/spec/cssminify_spec.rb
115
- - vendor/cssminify/spec/sample.css
116
- - vendor/cssminify/spec/spec_helper.rb
117
- - vendor/cssminify/spec/tests/background-position.css
118
- - vendor/cssminify/spec/tests/background-position.css.min
119
- - vendor/cssminify/spec/tests/border-none.css
120
- - vendor/cssminify/spec/tests/border-none.css.min
121
- - vendor/cssminify/spec/tests/box-model-hack.css
122
- - vendor/cssminify/spec/tests/box-model-hack.css.min
123
- - vendor/cssminify/spec/tests/bug2527974.css
124
- - vendor/cssminify/spec/tests/bug2527974.css.min
125
- - vendor/cssminify/spec/tests/bug2527991.css
126
- - vendor/cssminify/spec/tests/bug2527991.css.min
127
- - vendor/cssminify/spec/tests/bug2527998.css
128
- - vendor/cssminify/spec/tests/bug2527998.css.min
129
- - vendor/cssminify/spec/tests/bug2528034.css
130
- - vendor/cssminify/spec/tests/bug2528034.css.min
131
- - vendor/cssminify/spec/tests/bug2528093.css
132
- - vendor/cssminify/spec/tests/bug2528093.css.min
133
- - vendor/cssminify/spec/tests/charset-media.css
134
- - vendor/cssminify/spec/tests/charset-media.css.min
135
- - vendor/cssminify/spec/tests/color-simple.css
136
- - vendor/cssminify/spec/tests/color-simple.css.min
137
- - vendor/cssminify/spec/tests/color.css
138
- - vendor/cssminify/spec/tests/color.css.min
139
- - vendor/cssminify/spec/tests/comment.css
140
- - vendor/cssminify/spec/tests/comment.css.min
141
- - vendor/cssminify/spec/tests/concat-charset.css
142
- - vendor/cssminify/spec/tests/concat-charset.css.min
143
- - vendor/cssminify/spec/tests/dataurl-base64-doublequotes.css
144
- - vendor/cssminify/spec/tests/dataurl-base64-doublequotes.css.min
145
- - vendor/cssminify/spec/tests/dataurl-base64-eof.css
146
- - vendor/cssminify/spec/tests/dataurl-base64-eof.css.min
147
- - vendor/cssminify/spec/tests/dataurl-base64-linebreakindata.css
148
- - vendor/cssminify/spec/tests/dataurl-base64-linebreakindata.css.min
149
- - vendor/cssminify/spec/tests/dataurl-base64-noquotes.css
150
- - vendor/cssminify/spec/tests/dataurl-base64-noquotes.css.min
151
- - vendor/cssminify/spec/tests/dataurl-base64-singlequotes.css
152
- - vendor/cssminify/spec/tests/dataurl-base64-singlequotes.css.min
153
- - vendor/cssminify/spec/tests/dataurl-base64-twourls.css
154
- - vendor/cssminify/spec/tests/dataurl-base64-twourls.css.min
155
- - vendor/cssminify/spec/tests/dataurl-dbquote-font.css
156
- - vendor/cssminify/spec/tests/dataurl-dbquote-font.css.min
157
- - vendor/cssminify/spec/tests/dataurl-nonbase64-doublequotes.css
158
- - vendor/cssminify/spec/tests/dataurl-nonbase64-doublequotes.css.min
159
- - vendor/cssminify/spec/tests/dataurl-nonbase64-noquotes.css
160
- - vendor/cssminify/spec/tests/dataurl-nonbase64-noquotes.css.min
161
- - vendor/cssminify/spec/tests/dataurl-nonbase64-singlequotes.css
162
- - vendor/cssminify/spec/tests/dataurl-nonbase64-singlequotes.css.min
163
- - vendor/cssminify/spec/tests/dataurl-noquote-multiline-font.css
164
- - vendor/cssminify/spec/tests/dataurl-noquote-multiline-font.css.min
165
- - vendor/cssminify/spec/tests/dataurl-realdata-doublequotes.css
166
- - vendor/cssminify/spec/tests/dataurl-realdata-doublequotes.css.min
167
- - vendor/cssminify/spec/tests/dataurl-realdata-noquotes.css
168
- - vendor/cssminify/spec/tests/dataurl-realdata-noquotes.css.min
169
- - vendor/cssminify/spec/tests/dataurl-realdata-singlequotes.css
170
- - vendor/cssminify/spec/tests/dataurl-realdata-singlequotes.css.min
171
- - vendor/cssminify/spec/tests/dataurl-realdata-yuiapp.css
172
- - vendor/cssminify/spec/tests/dataurl-realdata-yuiapp.css.min
173
- - vendor/cssminify/spec/tests/dataurl-singlequote-font.css
174
- - vendor/cssminify/spec/tests/dataurl-singlequote-font.css.min
175
- - vendor/cssminify/spec/tests/decimals.css
176
- - vendor/cssminify/spec/tests/decimals.css.min
177
- - vendor/cssminify/spec/tests/dollar-header.css
178
- - vendor/cssminify/spec/tests/dollar-header.css.min
179
- - vendor/cssminify/spec/tests/font-face.css
180
- - vendor/cssminify/spec/tests/font-face.css.min
181
- - vendor/cssminify/spec/tests/ie5mac.css
182
- - vendor/cssminify/spec/tests/ie5mac.css.min
183
- - vendor/cssminify/spec/tests/media-empty-class.css
184
- - vendor/cssminify/spec/tests/media-empty-class.css.min
185
- - vendor/cssminify/spec/tests/media-multi.css
186
- - vendor/cssminify/spec/tests/media-multi.css.min
187
- - vendor/cssminify/spec/tests/media-test.css
188
- - vendor/cssminify/spec/tests/media-test.css.min
189
- - vendor/cssminify/spec/tests/opacity-filter.css
190
- - vendor/cssminify/spec/tests/opacity-filter.css.min
191
- - vendor/cssminify/spec/tests/preserve-case.css
192
- - vendor/cssminify/spec/tests/preserve-case.css.min
193
- - vendor/cssminify/spec/tests/preserve-new-line.css
194
- - vendor/cssminify/spec/tests/preserve-new-line.css.min
195
- - vendor/cssminify/spec/tests/preserve-strings.css
196
- - vendor/cssminify/spec/tests/preserve-strings.css.min
197
- - vendor/cssminify/spec/tests/pseudo-first.css
198
- - vendor/cssminify/spec/tests/pseudo-first.css.min
199
- - vendor/cssminify/spec/tests/pseudo.css
200
- - vendor/cssminify/spec/tests/pseudo.css.min
201
- - vendor/cssminify/spec/tests/special-comments.css
202
- - vendor/cssminify/spec/tests/special-comments.css.min
203
- - vendor/cssminify/spec/tests/star-underscore-hacks.css
204
- - vendor/cssminify/spec/tests/star-underscore-hacks.css.min
205
- - vendor/cssminify/spec/tests/string-in-comment.css
206
- - vendor/cssminify/spec/tests/string-in-comment.css.min
207
- - vendor/cssminify/spec/tests/webkit-transform.css
208
- - vendor/cssminify/spec/tests/webkit-transform.css.min
209
- - vendor/cssminify/spec/tests/zeros.css
210
- - vendor/cssminify/spec/tests/zeros.css.min
211
118
  homepage: https://github.com/stereobooster/multi_css
212
119
  licenses:
213
120
  - MIT
@@ -221,18 +128,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
128
  - - ! '>='
222
129
  - !ruby/object:Gem::Version
223
130
  version: '0'
224
- segments:
225
- - 0
226
- hash: -293339025
227
131
  required_rubygems_version: !ruby/object:Gem::Requirement
228
132
  none: false
229
133
  requirements:
230
134
  - - ! '>='
231
135
  - !ruby/object:Gem::Version
232
136
  version: '0'
233
- segments:
234
- - 0
235
- hash: -293339025
236
137
  requirements: []
237
138
  rubyforge_project:
238
139
  rubygems_version: 1.8.24
@@ -1,3 +0,0 @@
1
- [submodule "vendor/cssminify"]
2
- path = vendor/cssminify
3
- url = https://github.com/matthiassiegel/cssminify.git
@@ -1,9 +0,0 @@
1
- require File.expand_path('../../../../vendor/cssminify/lib/cssminify', __FILE__)
2
- require 'cssminify'
3
-
4
- module MultiCss
5
- module Adapters
6
- class Vendored < Cssminify
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
- coverage
6
- rdoc
7
- doc
8
- .yardoc
9
- .rspec
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.2
4
- - 1.9.3
5
- - jruby-19mode # JRuby in 1.9 mode
6
- - rbx-19mode
7
- script: bundle exec rspec spec
@@ -1,12 +0,0 @@
1
- ### 1.0.2 (30 June 2012)
2
-
3
- * Removed unnecessary Bundler dependency
4
-
5
- ### 1.0.1 (30 June 2012)
6
-
7
- * Updated cssmin.rb to 1.0.1
8
- * Updated tests
9
-
10
- ## 1.0.0 (29 June 2012)
11
-
12
- First release
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in cssminify.gemspec
4
- gemspec
@@ -1,22 +0,0 @@
1
- Copyright (c) 2012 Matthias Siegel (matthias.siegel@gmail.com)
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- Note: the included Ruby port of YUI compressor has a different license. See the [source code](https://github.com/matthiassiegel/cssminify/blob/master/lib/cssminify/cssmin.rb) for details.
@@ -1,64 +0,0 @@
1
- # CSSminify [![Build Status](https://secure.travis-ci.org/matthiassiegel/cssminify.png)](http://travis-ci.org/matthiassiegel/cssminify)
2
-
3
- CSS minification with YUI compressor, but as native Ruby port.
4
-
5
- The CSSminify gem provides CSS compression using YUI compressor. Instead of wrapping around the Java or Javascript version of YUI compressor it uses a native [Ruby port](https://github.com/matthiassiegel/cssmin) of the CSS engine. Therefore this gem has no dependencies.
6
-
7
- In basic benchmarks the Ruby version performed about as good as the Java jar. It currently passes all CSS test cases included with the YUI compressor Java source code.
8
-
9
- Main motivation for the Ruby port and this gem was to reduce dependencies like Java.
10
-
11
- ## Installation
12
- Install CSSminify from RubyGems:
13
-
14
- gem install cssminify
15
-
16
- Or include it in your project's Gemfile:
17
-
18
- gem 'cssminify'
19
-
20
- ## Usage
21
-
22
- require 'cssminify'
23
-
24
- CSSminify.compress('/* a comment */ .test { display: block; }')
25
- # => minified CSS
26
-
27
- CSSminify.compress(File.read('path/to/styles.css'))
28
- # => minified CSS
29
-
30
- CSSminify.compress(File.open('path/to/styles.css'))
31
- # => minified CSS
32
-
33
- # Alternatively use instance method...
34
- compressor = CSSminify.new
35
- compressor.compress(File.read("path/to/styles.css"))
36
- # => minified CSS
37
-
38
- Files or strings are acceptable as input.
39
-
40
- You can pass in a second argument to control the maximum output line length (default 5000 characters):
41
-
42
- CSSminify.compress(File.read("path/to/styles.css"), 200)
43
-
44
- Note: in most cases line length will only be approximated.
45
-
46
- ## Rails asset pipeline
47
- Rails 3.1 integrated [Sprockets](https://github.com/sstephenson/sprockets) to provide asset packaging and minimising out of the box. For CSS compression it relies on the [yui-compressor gem](https://github.com/sstephenson/ruby-yui-compressor) which requires Java. To use CSSminify instead, edit your config/application.rb file:
48
-
49
- config.assets.css_compressor = CSSminify.new
50
-
51
- ## Compatibility
52
- Tested with Ruby 1.9.2, 1.9.3, jruby-19mode, rbx-19mode
53
-
54
- ## Changelog
55
- See [CHANGES](https://github.com/matthiassiegel/cssminify/blob/master/CHANGES.md).
56
-
57
- ## Copyright
58
-
59
- ### CSSminify gem and documentation
60
- Copyright (c) 2012 Matthias Siegel (matthias.siegel@gmail.com)
61
- See [LICENSE](https://github.com/matthiassiegel/cssminify/blob/master/LICENSE.md) for details.
62
-
63
- ### YUI compressor
64
- See [file](https://github.com/matthiassiegel/cssminify/blob/master/lib/cssminify/cssmin.rb).
@@ -1,30 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "cssminify/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "cssminify"
7
- s.version = CSSminify::VERSION
8
- s.author = "Matthias Siegel"
9
- s.email = "matthias.siegel@gmail.com"
10
- s.homepage = "https://github.com/matthiassiegel/cssminify"
11
- s.summary = "CSS minification with YUI compressor, but as native Ruby port."
12
- s.description = <<-EOF
13
- The CSSminify gem provides CSS compression using YUI compressor. Instead of wrapping around the Java or Javascript version of YUI compressor it uses a native Ruby port of the CSS engine. Therefore this gem has no dependencies.
14
- EOF
15
-
16
- s.extra_rdoc_files = [
17
- "CHANGES.md",
18
- "LICENSE.md",
19
- "README.md"
20
- ]
21
-
22
- s.license = "MIT"
23
- s.rubyforge_project = "cssminify"
24
-
25
- s.files = `git ls-files`.split("\n")
26
- s.test_files = `git ls-files -- spec/*`.split("\n")
27
- s.require_paths = ["lib"]
28
-
29
- s.add_development_dependency "rspec", "~> 2.7"
30
- end