yui-compressor-ext 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -12,12 +12,13 @@ Hoe.plugin :yard
|
|
12
12
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
13
|
$hoe = Hoe.spec 'yui-compressor-ext' do
|
14
14
|
self.developer 'Matsukei Co.,Ltd', 'osc@matsukei.co.jp'
|
15
|
-
self.description = %q{YUI Compressor Extensions is an enhancing library of
|
15
|
+
self.description = %q{YUI Compressor Extensions is an enhancing library of YUI Compressor.
|
16
16
|
The following functions can be used by this extension.
|
17
17
|
* CLI interface
|
18
18
|
* Compression and uniting of multiple assets}
|
19
|
-
self.summary = %q{YUI Compressor Extensions is an enhancing library of
|
20
|
-
self.version = '0.0.
|
19
|
+
self.summary = %q{YUI Compressor Extensions is an enhancing library of YUI Compressor}
|
20
|
+
self.version = '0.0.2'
|
21
|
+
self.extra_rdoc_files = ['README.rdoc']
|
21
22
|
self.extra_deps = [['yui-compressor','>= 0.9.1'], ['cri','>= 1.0.0'], ['win32-open3', '>= 0.3.2']]
|
22
23
|
self.yard_title = "YUI-Compressor Extensions (#{self.version})"
|
23
24
|
end
|
data/lib/yui/compressor/ext.rb
CHANGED
@@ -12,6 +12,9 @@ class YUI::Compressor
|
|
12
12
|
|
13
13
|
protected
|
14
14
|
|
15
|
+
# @param [String] type
|
16
|
+
# @param [Hash] config
|
17
|
+
# @return [void]
|
15
18
|
def compress(type, config)
|
16
19
|
target = config.files(type).inject('') do |t, f|
|
17
20
|
t << File.read(f)
|
@@ -22,6 +25,9 @@ class YUI::Compressor
|
|
22
25
|
end
|
23
26
|
end
|
24
27
|
|
28
|
+
# @param [String] type
|
29
|
+
# @param [Hash] options
|
30
|
+
# @return [YUI::Compressor]
|
25
31
|
def compressor(type, options)
|
26
32
|
case type
|
27
33
|
when 'js'
|
@@ -63,10 +63,15 @@ class YUI::Compressor
|
|
63
63
|
|
64
64
|
private
|
65
65
|
|
66
|
+
# @param [String] type
|
67
|
+
# @param [String] config
|
68
|
+
# @return [Object]
|
66
69
|
def config_for(type, config)
|
67
70
|
@config[type] && @config[type][config]
|
68
71
|
end
|
69
72
|
|
73
|
+
# @param [String] path
|
74
|
+
# @return [String]
|
70
75
|
def clean_path(path)
|
71
76
|
if path
|
72
77
|
path = path.strip
|
data/yui-compressor-ext.gemspec
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{yui-compressor-ext}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Matsukei Co.,Ltd"]
|
9
|
-
s.date = %q{2010-12-
|
9
|
+
s.date = %q{2010-12-31}
|
10
10
|
s.default_executable = %q{yuicompress}
|
11
|
-
s.description = %q{YUI Compressor Extension is an enhancing library of
|
11
|
+
s.description = %q{YUI Compressor Extension is an enhancing library of YUI Compressor.
|
12
12
|
The following functions can be used by this extension.
|
13
13
|
* CLI interface
|
14
14
|
* Compression and uniting of multiple assets}
|
15
15
|
s.email = ["osc@matsukei.co.jp"]
|
16
16
|
s.executables = ["yuicompress"]
|
17
|
-
s.extra_rdoc_files = ["Manifest.txt"]
|
17
|
+
s.extra_rdoc_files = ["README.rdoc", "Manifest.txt"]
|
18
18
|
s.files = ["README.rdoc", "Manifest.txt", "Rakefile", "bin/yuicompress", "lib/yui/compressor/ext.rb", "lib/yui/compressor/ext/cli.rb", "lib/yui/compressor/ext/cli/base.rb", "lib/yui/compressor/ext/cli/commands.rb", "lib/yui/compressor/ext/cli/commands/abstract.rb", "lib/yui/compressor/ext/cli/commands/all.rb", "lib/yui/compressor/ext/cli/commands/css.rb", "lib/yui/compressor/ext/cli/commands/js.rb", "lib/yui/compressor/ext/config.rb", "script/console", "script/console.cmd", "script/destroy", "script/destroy.cmd", "script/generate", "script/generate.cmd", "test/cli/commands/test_all.rb", "test/cli/commands/test_css.rb", "test/cli/commands/test_js.rb", "test/sample/config.yml", "test/sample/css-1.css", "test/sample/css-2.css", "test/sample/js-1.js", "test/sample/js-2.js", "test/test_helper.rb", "test/text_config.rb", "yui-compressor-ext.gemspec"]
|
19
19
|
s.has_rdoc = %q{yard}
|
20
20
|
s.homepage = %q{http://osc.matsukei.net/projects/ruby-yui-compressor-ext/wiki}
|
@@ -22,7 +22,7 @@ The following functions can be used by this extension.
|
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
s.rubyforge_project = %q{yui-compressor-ext}
|
24
24
|
s.rubygems_version = %q{1.3.7}
|
25
|
-
s.summary = %q{YUI Compressor Extensions is an enhancing library of
|
25
|
+
s.summary = %q{YUI Compressor Extensions is an enhancing library of YUI Compressor}
|
26
26
|
s.test_files = ["test/cli/commands/test_all.rb", "test/cli/commands/test_css.rb", "test/cli/commands/test_js.rb", "test/test_helper.rb"]
|
27
27
|
|
28
28
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yui-compressor-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matsukei Co.,Ltd
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-31 00:00:00 +09:00
|
19
19
|
default_executable: yuicompress
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -115,7 +115,7 @@ dependencies:
|
|
115
115
|
type: :development
|
116
116
|
version_requirements: *id006
|
117
117
|
description: |-
|
118
|
-
YUI Compressor Extension is an enhancing library of
|
118
|
+
YUI Compressor Extension is an enhancing library of YUI Compressor.
|
119
119
|
The following functions can be used by this extension.
|
120
120
|
* CLI interface
|
121
121
|
* Compression and uniting of multiple assets
|
@@ -126,6 +126,7 @@ executables:
|
|
126
126
|
extensions: []
|
127
127
|
|
128
128
|
extra_rdoc_files:
|
129
|
+
- README.rdoc
|
129
130
|
- Manifest.txt
|
130
131
|
files:
|
131
132
|
- README.rdoc
|
@@ -165,7 +166,7 @@ licenses: []
|
|
165
166
|
post_install_message:
|
166
167
|
rdoc_options:
|
167
168
|
- --title
|
168
|
-
- YUI-Compressor Extension (0.0.
|
169
|
+
- YUI-Compressor Extension (0.0.2)
|
169
170
|
- --quiet
|
170
171
|
require_paths:
|
171
172
|
- lib
|
@@ -195,7 +196,7 @@ rubyforge_project: yui-compressor-ext
|
|
195
196
|
rubygems_version: 1.3.7
|
196
197
|
signing_key:
|
197
198
|
specification_version: 3
|
198
|
-
summary: YUI Compressor Extensions is an enhancing library of
|
199
|
+
summary: YUI Compressor Extensions is an enhancing library of YUI Compressor
|
199
200
|
test_files:
|
200
201
|
- test/cli/commands/test_all.rb
|
201
202
|
- test/cli/commands/test_css.rb
|