jekyll-press 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/jekyll-press.gemspec +3 -2
- data/lib/jekyll-press/version.rb +1 -1
- data/lib/jekyll-press.rb +3 -3
- metadata +9 -8
data/jekyll-press.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Minifier plugin for jekyll. Minifies all html, js, css files. Simple just drop it in solution. No Java required}
|
8
8
|
gem.summary = %q{Minifier plugin for jekyll. This plugin compress html with the help of html_press, compress JavaScript files with the help of uglifier, compress css files with the help of css_press}
|
9
9
|
gem.homepage = "http://github.com/stereobooster/jekyl-press"
|
10
|
+
gem.license = "MIT"
|
10
11
|
|
11
12
|
gem.files = `git ls-files`.split($\)
|
12
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -16,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
16
17
|
gem.version = Jekyll::Press::VERSION
|
17
18
|
|
18
19
|
gem.add_dependency 'jekyll'
|
19
|
-
gem.add_dependency "html_press"
|
20
|
-
gem.add_dependency "
|
20
|
+
gem.add_dependency "html_press", ">= 0.8.0"
|
21
|
+
gem.add_dependency "multi_css", ">= 0.1.0"
|
21
22
|
gem.add_dependency "uglifier"
|
22
23
|
end
|
data/lib/jekyll-press/version.rb
CHANGED
data/lib/jekyll-press.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "jekyll-press/version"
|
2
2
|
|
3
3
|
require 'html_press'
|
4
|
-
require '
|
4
|
+
require 'multi_css'
|
5
5
|
require 'uglifier'
|
6
6
|
|
7
7
|
module Jekyll
|
@@ -44,8 +44,8 @@ module Jekyll
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def output_css(path, content)
|
47
|
-
output_file(path,
|
48
|
-
rescue
|
47
|
+
output_file(path, MultiCss.min(content))
|
48
|
+
rescue MultiCss::ParseError => e
|
49
49
|
warn "Warning: parse error in #{path}. Don't panic - copying initial file"
|
50
50
|
warn "Details: #{e.message.strip}"
|
51
51
|
output_file(path, content)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-press
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
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: 2012-11-
|
12
|
+
date: 2012-11-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 0.8.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,15 +42,15 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 0.8.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: multi_css
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
51
|
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 0.1.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.1.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: uglifier
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +92,8 @@ files:
|
|
92
92
|
- lib/jekyll-press.rb
|
93
93
|
- lib/jekyll-press/version.rb
|
94
94
|
homepage: http://github.com/stereobooster/jekyl-press
|
95
|
-
licenses:
|
95
|
+
licenses:
|
96
|
+
- MIT
|
96
97
|
post_install_message:
|
97
98
|
rdoc_options: []
|
98
99
|
require_paths:
|