yui-compressor-ext 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -1
- data/Rakefile +3 -2
- data/lib/yui/compressor/ext.rb +12 -8
- data/yui-compressor-ext.gemspec +8 -5
- metadata +6 -6
data/README.rdoc
CHANGED
@@ -8,12 +8,13 @@ YUI Compressor Extension is an enhancing library of {http://github.com/sstephens
|
|
8
8
|
The following functions can be used by this extension.
|
9
9
|
* CLI interface
|
10
10
|
* Compression and uniting of multiple assets
|
11
|
+
* Support to Win32 Platform
|
11
12
|
|
12
13
|
== REQUIREMENTS
|
13
14
|
|
14
15
|
* yui-compressor
|
15
16
|
* cri
|
16
|
-
* win32-open3 (Only
|
17
|
+
* win32-open3 (Only less than Ruby 1.9, and onWin32 Platform)
|
17
18
|
|
18
19
|
== INSTALL
|
19
20
|
|
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
gem 'hoe', '>= 2.1.0'
|
4
4
|
require 'hoe'
|
5
|
+
require 'hoe/yard'
|
5
6
|
require 'fileutils'
|
6
7
|
require './lib/yui/compressor/ext'
|
7
8
|
|
@@ -12,9 +13,9 @@ Hoe.plugin :yard
|
|
12
13
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
14
|
$hoe = Hoe.spec 'yui-compressor-ext' do
|
14
15
|
self.developer 'Matsukei Co.,Ltd', 'osc@matsukei.co.jp'
|
15
|
-
self.description = %q{YUI Compressor Extension is an enhancing library of YUI Compressor. The functions that CLI interface, Compression and uniting of multiple assets can be used by this extension.}
|
16
|
+
self.description = %q{YUI Compressor Extension is an enhancing library of YUI Compressor. The functions that CLI interface, Compression and uniting of multiple assets and Support to Win32 Platform can be used by this extension.}
|
16
17
|
self.summary = %q{YUI Compressor Extension is an enhancing library of YUI Compressor}
|
17
|
-
self.version = '0.0.
|
18
|
+
self.version = '0.0.4'
|
18
19
|
self.extra_rdoc_files = ['README.rdoc']
|
19
20
|
self.extra_deps = [['yui-compressor','>= 0.9.1'], ['cri','>= 1.0.0'], ['win32-open3', '>= 0.3.2']]
|
20
21
|
self.yard_title = "YUI-Compressor Extension (#{self.version})"
|
data/lib/yui/compressor/ext.rb
CHANGED
@@ -5,21 +5,25 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'yui/compressor'
|
7
7
|
|
8
|
-
#
|
8
|
+
# For support in open3 to Win32-Platform
|
9
|
+
# when Ruby version is less than 1.8.x and on Win32-Platform.
|
9
10
|
if (RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|cygwin|bccwin/)
|
10
|
-
|
11
|
-
class Compressor
|
11
|
+
begin
|
12
12
|
require 'win32/open3'
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
rescue LoadError
|
14
|
+
# Nothing to do
|
15
|
+
else
|
16
|
+
class YUI::Compressor
|
17
|
+
def initialize(options = {}) #:nodoc:
|
18
|
+
@options = self.class.default_options.merge(options)
|
19
|
+
@command = [path_to_java, "-jar", path_to_jar_file, *(command_option_for_type + command_options)].flatten.join(' ')
|
20
|
+
end
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
19
|
-
end
|
20
24
|
|
21
25
|
module YUI::Compressor::Ext
|
22
|
-
VERSION = '0.0.
|
26
|
+
VERSION = '0.0.4'
|
23
27
|
end
|
24
28
|
|
25
29
|
# Load Ext modules.
|
data/yui-compressor-ext.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
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.4"
|
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"]
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.files = ["Manifest.txt", "README.rdoc", "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/assets/css-1.css", "test/sample/assets/css-2.css", "test/sample/assets/js-1.js", "test/sample/assets/js-2.js", "test/sample/compressed/compiled.css", "test/sample/compressed/compiled.js", "test/sample/config.yml", "test/test_config.rb", "test/test_helper.rb", "yui-compressor-ext.gemspec"]
|
16
16
|
s.has_rdoc = %q{yard}
|
17
17
|
s.homepage = %q{http://osc.matsukei.net/projects/ruby-yui-compressor-ext/wiki}
|
18
|
-
s.rdoc_options = ["--main", "README.rdoc", "--title", "YUI-Compressor Extension (0.0.
|
18
|
+
s.rdoc_options = ["--main", "README.rdoc", "--title", "YUI-Compressor Extension (0.0.4)", "--quiet"]
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.rubyforge_project = %q{yui-compressor-ext}
|
21
21
|
s.rubygems_version = %q{1.3.7}
|
@@ -29,14 +29,16 @@ Gem::Specification.new do |s|
|
|
29
29
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
30
30
|
s.add_runtime_dependency(%q<yui-compressor>, [">= 0.9.1"])
|
31
31
|
s.add_runtime_dependency(%q<cri>, [">= 1.0.0"])
|
32
|
-
s.add_runtime_dependency(%q<win32-open3>, [">= 0.3.2"])
|
32
|
+
s.add_runtime_dependency(%q<win32-open3>, [">= 0.3.2"]) \
|
33
|
+
if RUBY_VERSION < '1.9.0' && RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|cygwin|bccwin/
|
33
34
|
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
34
35
|
s.add_development_dependency(%q<hoe-yard>, [">= 0.1.2"])
|
35
36
|
s.add_development_dependency(%q<hoe>, [">= 2.6.0"])
|
36
37
|
else
|
37
38
|
s.add_dependency(%q<yui-compressor>, [">= 0.9.1"])
|
38
39
|
s.add_dependency(%q<cri>, [">= 1.0.0"])
|
39
|
-
s.add_dependency(%q<win32-open3>, [">= 0.3.2"])
|
40
|
+
s.add_dependency(%q<win32-open3>, [">= 0.3.2"]) \
|
41
|
+
if RUBY_VERSION < '1.9.0' && RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|cygwin|bccwin/
|
40
42
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
41
43
|
s.add_dependency(%q<hoe-yard>, [">= 0.1.2"])
|
42
44
|
s.add_dependency(%q<hoe>, [">= 2.6.0"])
|
@@ -44,7 +46,8 @@ Gem::Specification.new do |s|
|
|
44
46
|
else
|
45
47
|
s.add_dependency(%q<yui-compressor>, [">= 0.9.1"])
|
46
48
|
s.add_dependency(%q<cri>, [">= 1.0.0"])
|
47
|
-
s.add_dependency(%q<win32-open3>, [">= 0.3.2"])
|
49
|
+
s.add_dependency(%q<win32-open3>, [">= 0.3.2"]) \
|
50
|
+
if RUBY_VERSION < '1.9.0' && RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|cygwin|bccwin/
|
48
51
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
49
52
|
s.add_dependency(%q<hoe-yard>, [">= 0.1.2"])
|
50
53
|
s.add_dependency(%q<hoe>, [">= 2.6.0"])
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matsukei Co.,Ltd
|
@@ -166,7 +166,7 @@ rdoc_options:
|
|
166
166
|
- --main
|
167
167
|
- README.rdoc
|
168
168
|
- --title
|
169
|
-
- YUI-Compressor Extension (0.0.
|
169
|
+
- YUI-Compressor Extension (0.0.4)
|
170
170
|
- --quiet
|
171
171
|
require_paths:
|
172
172
|
- lib
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements: []
|
194
194
|
|
195
195
|
rubyforge_project: yui-compressor-ext
|
196
|
-
rubygems_version: 1.
|
196
|
+
rubygems_version: 1.4.1
|
197
197
|
signing_key:
|
198
198
|
specification_version: 3
|
199
199
|
summary: YUI Compressor Extension is an enhancing library of YUI Compressor
|