jekyll-minifier 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2a121f7747a2312e5d30cd6fad939b922f839930
4
+ data.tar.gz: b4f9aaeabd21113c24ed52dfbc83ad5f5970c7a0
5
+ SHA512:
6
+ metadata.gz: a0fbedba7cee7eb20bb9945eba9ffad06aeb4739259c4a566ca7a22961aeca145988636cdd11f882a46a08b6b53c6af2b797a16ba866dad08d0ad20cad8e7994
7
+ data.tar.gz: bde544f697cda715381cbc4e9366a95fcf5bb5d4198d429c30e5bdde9557960a76908bc47ce0eaabea14dc0ae80454ed33b1d46034167614b1a4f980e4605f32
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
@@ -9,10 +9,10 @@ Gem::Specification.new do |gem|
9
9
 
10
10
  gem.authors = ["DigitalSparky"]
11
11
  gem.email = ["matthew@spurrier.com.au"]
12
- gem.description = %q{Jekyll Minifier using htmlcompressor for html , and YUI compressor for js and css}
12
+ gem.description = %q{Jekyll Minifier using htmlcompressor for html, uglifier for js and css}
13
13
  gem.summary = %q{Jekyll Minifier for html, css, and javascript}
14
14
  gem.homepage = "http://github.com/digitalsparky/jekyll-minifier"
15
- gem.license = "GPLv3"
15
+ gem.license = "GPL-3.0"
16
16
 
17
17
  gem.files = `git ls-files`.split($\)
18
18
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -21,9 +21,10 @@ Gem::Specification.new do |gem|
21
21
  gem.require_paths = ["lib"]
22
22
  gem.version = Jekyll::Minifier::VERSION
23
23
 
24
- gem.add_dependency "jekyll", ">= 3.0.0"
25
- gem.add_dependency "yui-compressor", "~> 0.12"
26
- gem.add_dependency "htmlcompressor", "~> 0.3.0"
24
+ gem.add_dependency "jekyll", "~> 3.0"
25
+ gem.add_dependency "uglifier", "~> 2.7"
26
+ gem.add_dependency "htmlcompressor", "~> 0.3"
27
+ gem.add_dependency "cssminify", "~> 1.0"
27
28
 
28
29
  gem.add_development_dependency "rake", "~> 10.4"
29
30
  end
@@ -1,5 +1,6 @@
1
- require 'yui/compressor'
1
+ require 'uglifier'
2
2
  require 'htmlcompressor'
3
+ require 'cssminify'
3
4
 
4
5
  module Jekyll
5
6
  module Compressor
@@ -29,26 +30,18 @@ module Jekyll
29
30
  end
30
31
 
31
32
  def output_html(path, content)
32
- compressor = HtmlCompressor::Compressor.new({ :compress_css => true, :compress_javascript => true, :css_compressor => :yui, :javascript_compressor => :yui })
33
+ compressor = HtmlCompressor::Compressor.new({ :remove_comments => true, :compress_css => true, :compress_javascript => true, :css_compressor => CSSminify.new, :javascript_compressor => Uglifier.new })
33
34
  output_file(path, compressor.compress(content))
34
35
  end
35
36
 
36
37
  def output_js(path, content)
37
- compressor = YUI::JavaScriptCompressor.new({ :munge => true, :preserve_semicolons => true, :optimize => true, :line_break => nil })
38
- output_file(path, compressor.compress(content))
39
- rescue compressor::ParseError => e
40
- warn "Warning: parse error in #{path}. Don't panic - copying initial file"
41
- warn "Details: #{e.message.strip}"
42
- output_file(path, content)
38
+ compressed = Uglifier.new
39
+ output_file(path, compressed.compile(content))
43
40
  end
44
41
 
45
42
  def output_css(path, content)
46
- compressor = YUI::CssCompressor.new({ :line_break => -1 })
43
+ compressor = CSSminify.new
47
44
  output_file(path, compressor.compress(content))
48
- rescue compressor::RuntimeError => e
49
- warn "Warning: parse error in #{path}. Don't panic - copying initial file"
50
- warn "Details: #{e.message.strip}"
51
- output_file(path, content)
52
45
  end
53
46
  end
54
47
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Minifier
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,82 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-minifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - DigitalSparky
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2016-03-06 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: jekyll
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 3.0.0
19
+ version: '3.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 3.0.0
26
+ version: '3.0'
30
27
  - !ruby/object:Gem::Dependency
31
- name: yui-compressor
28
+ name: uglifier
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '0.12'
33
+ version: '2.7'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: '0.12'
40
+ version: '2.7'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: htmlcompressor
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 0.3.0
47
+ version: '0.3'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: 0.3.0
54
+ version: '0.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: cssminify
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: rake
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ~>
73
+ - - "~>"
68
74
  - !ruby/object:Gem::Version
69
75
  version: '10.4'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ~>
80
+ - - "~>"
76
81
  - !ruby/object:Gem::Version
77
82
  version: '10.4'
78
- description: Jekyll Minifier using htmlcompressor for html , and YUI compressor for
79
- js and css
83
+ description: Jekyll Minifier using htmlcompressor for html, uglifier for js and css
80
84
  email:
81
85
  - matthew@spurrier.com.au
82
86
  executables: []
@@ -92,26 +96,25 @@ files:
92
96
  - lib/jekyll-minifier/version.rb
93
97
  homepage: http://github.com/digitalsparky/jekyll-minifier
94
98
  licenses:
95
- - GPLv3
99
+ - GPL-3.0
100
+ metadata: {}
96
101
  post_install_message:
97
102
  rdoc_options: []
98
103
  require_paths:
99
104
  - lib
100
105
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
106
  requirements:
103
- - - ! '>='
107
+ - - ">="
104
108
  - !ruby/object:Gem::Version
105
109
  version: 2.0.0
106
110
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
111
  requirements:
109
- - - ! '>='
112
+ - - ">="
110
113
  - !ruby/object:Gem::Version
111
114
  version: '0'
112
115
  requirements: []
113
116
  rubyforge_project:
114
- rubygems_version: 1.8.23
117
+ rubygems_version: 2.5.1
115
118
  signing_key:
116
119
  specification_version: 2
117
120
  summary: Jekyll Minifier for html, css, and javascript