jpegoptim 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+
2
+ 0.2.1 (2011-07-30)
3
+ * executing directly by 'command-builder'
4
+
5
+ 0.2.0 (2011-02-22)
6
+ * asynchronous executing support
7
+
8
+ 0.1.0 (2011-02-21)
9
+ * initial version
data/Gemfile CHANGED
@@ -1,15 +1,12 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- # gem "depq", ">= 0.4"
5
- # gem "hash-utils", ">= 0.9.0"
6
- gem "pipe-run", ">= 0.2.0"
7
- gem "command-builder", ">= 0.1.0"
4
+ gem "command-builder", ">= 0.2.0"
8
5
  gem "unix-whereis", ">= 0.1.0"
9
6
 
10
7
  # Add dependencies to develop your gem here.
11
8
  # Include everything needed to run rake, tests, features, etc.
12
9
  group :development do
13
- gem "bundler", "~> 1.0.0"
14
- gem "jeweler", "~> 1.5.2"
10
+ gem "bundler", ">= 1.0.0"
11
+ gem "jeweler", ">= 1.5.2"
15
12
  end
@@ -1,16 +1,17 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- command-builder (0.1.0)
5
- hash-utils (>= 0.7.0)
4
+ command-builder (0.2.0)
5
+ hash-utils (>= 0.18.0)
6
+ pipe-run (>= 0.2.1)
6
7
  git (1.2.5)
7
- hash-utils (0.9.0)
8
- jeweler (1.5.2)
9
- bundler (~> 1.0.0)
8
+ hash-utils (0.18.0)
9
+ jeweler (1.6.4)
10
+ bundler (~> 1.0)
10
11
  git (>= 1.2.5)
11
12
  rake
12
- pipe-run (0.2.0)
13
- rake (0.8.7)
13
+ pipe-run (0.2.1)
14
+ rake (0.9.2)
14
15
  unix-whereis (0.1.0)
15
16
  command-builder (>= 0.1.0)
16
17
  hash-utils (>= 0.9.0)
@@ -20,8 +21,7 @@ PLATFORMS
20
21
  ruby
21
22
 
22
23
  DEPENDENCIES
23
- bundler (~> 1.0.0)
24
- command-builder (>= 0.1.0)
25
- jeweler (~> 1.5.2)
26
- pipe-run (>= 0.2.0)
24
+ bundler (>= 1.0.0)
25
+ command-builder (>= 0.2.0)
26
+ jeweler (>= 1.5.2)
27
27
  unix-whereis (>= 0.1.0)
data/README.md CHANGED
@@ -61,6 +61,6 @@ Copyright © 2011 [Martin Kozák][3]. See `LICENSE.txt` for
61
61
  further details.
62
62
 
63
63
  [1]: http://www.kokkonen.net/tjko/projects.html
64
- [2]: http://github.com/martinkozak/qrpc/issues
64
+ [2]: http://github.com/martinkozak/jpegoptim/issues
65
65
  [3]: http://www.martinkozak.net/
66
66
  [4]: http://rubyeventmachine.com/
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'rubygems'
3
3
  require 'bundler'
4
+
4
5
  begin
5
6
  Bundler.setup(:default, :development)
6
7
  rescue Bundler::BundlerError => e
@@ -8,9 +9,10 @@ rescue Bundler::BundlerError => e
8
9
  $stderr.puts "Run `bundle install` to install missing gems"
9
10
  exit e.status_code
10
11
  end
11
- require 'rake'
12
12
 
13
+ require 'rake'
13
14
  require 'jeweler'
15
+
14
16
  Jeweler::Tasks.new do |gem|
15
17
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
16
18
  gem.name = "jpegoptim"
@@ -25,13 +27,3 @@ Jeweler::Tasks.new do |gem|
25
27
  # gem.add_development_dependency 'rspec', '> 1.2.3'
26
28
  end
27
29
  Jeweler::RubygemsDotOrgTasks.new
28
-
29
- require 'rake/rdoctask'
30
- Rake::RDocTask.new do |rdoc|
31
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
32
-
33
- rdoc.rdoc_dir = 'rdoc'
34
- rdoc.title = "qrpc #{version}"
35
- rdoc.rdoc_files.include('README*')
36
- rdoc.rdoc_files.include('lib/**/*.rb')
37
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -0,0 +1,58 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{jpegoptim}
8
+ s.version = "0.2.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = [%q{Martin Kozák}]
12
+ s.date = %q{2011-07-30}
13
+ s.email = %q{martinkozak@martinkozak.net}
14
+ s.extra_rdoc_files = [
15
+ "LICENSE.txt",
16
+ "README.md"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ "CHANGES.txt",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.md",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "jpegoptim.gemspec",
28
+ "lib/jpegoptim.rb",
29
+ "test"
30
+ ]
31
+ s.homepage = %q{https://github.com/martinkozak/jpegoptim}
32
+ s.licenses = [%q{MIT}]
33
+ s.require_paths = [%q{lib}]
34
+ s.rubygems_version = %q{1.8.5}
35
+ s.summary = %q{Ruby interface to 'jpegoptim' tool.}
36
+
37
+ if s.respond_to? :specification_version then
38
+ s.specification_version = 3
39
+
40
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
+ s.add_runtime_dependency(%q<command-builder>, [">= 0.2.0"])
42
+ s.add_runtime_dependency(%q<unix-whereis>, [">= 0.1.0"])
43
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
44
+ s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
45
+ else
46
+ s.add_dependency(%q<command-builder>, [">= 0.2.0"])
47
+ s.add_dependency(%q<unix-whereis>, [">= 0.1.0"])
48
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
49
+ s.add_dependency(%q<jeweler>, [">= 1.5.2"])
50
+ end
51
+ else
52
+ s.add_dependency(%q<command-builder>, [">= 0.2.0"])
53
+ s.add_dependency(%q<unix-whereis>, [">= 0.1.0"])
54
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
55
+ s.add_dependency(%q<jeweler>, [">= 1.5.2"])
56
+ end
57
+ end
58
+
@@ -2,7 +2,6 @@
2
2
  # (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
3
3
 
4
4
  require "command-builder"
5
- require "pipe-run"
6
5
  require "unix/whereis"
7
6
 
8
7
  ##
@@ -116,11 +115,9 @@ module Jpegoptim
116
115
  STDERR.write cmd.to_s + "\n"
117
116
  end
118
117
 
119
- cmd = cmd.to_s
120
-
121
118
  # Blocking
122
119
  if block.nil?
123
- output = Pipe.run(cmd)
120
+ output = cmd.execute!
124
121
 
125
122
  # Parses output
126
123
  succeed, errors = __parse_output(output)
@@ -128,7 +125,7 @@ module Jpegoptim
128
125
 
129
126
  # Non-blocking
130
127
  else
131
- Pipe.run(cmd) do |output|
128
+ cmd.execute do |output|
132
129
  succeed, errors = __parse_output(output)
133
130
  block.call(self::Result::new(succeed, errors))
134
131
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jpegoptim
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Martin Koz\xC3\xA1k"
@@ -10,11 +10,10 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-22 00:00:00 +01:00
14
- default_executable:
13
+ date: 2011-07-30 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
- name: pipe-run
16
+ name: command-builder
18
17
  requirement: &id001 !ruby/object:Gem::Requirement
19
18
  none: false
20
19
  requirements:
@@ -25,7 +24,7 @@ dependencies:
25
24
  prerelease: false
26
25
  version_requirements: *id001
27
26
  - !ruby/object:Gem::Dependency
28
- name: command-builder
27
+ name: unix-whereis
29
28
  requirement: &id002 !ruby/object:Gem::Requirement
30
29
  none: false
31
30
  requirements:
@@ -36,38 +35,27 @@ dependencies:
36
35
  prerelease: false
37
36
  version_requirements: *id002
38
37
  - !ruby/object:Gem::Dependency
39
- name: unix-whereis
38
+ name: bundler
40
39
  requirement: &id003 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ">="
44
- - !ruby/object:Gem::Version
45
- version: 0.1.0
46
- type: :runtime
47
- prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: bundler
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ~>
55
43
  - !ruby/object:Gem::Version
56
44
  version: 1.0.0
57
45
  type: :development
58
46
  prerelease: false
59
- version_requirements: *id004
47
+ version_requirements: *id003
60
48
  - !ruby/object:Gem::Dependency
61
49
  name: jeweler
62
- requirement: &id005 !ruby/object:Gem::Requirement
50
+ requirement: &id004 !ruby/object:Gem::Requirement
63
51
  none: false
64
52
  requirements:
65
- - - ~>
53
+ - - ">="
66
54
  - !ruby/object:Gem::Version
67
55
  version: 1.5.2
68
56
  type: :development
69
57
  prerelease: false
70
- version_requirements: *id005
58
+ version_requirements: *id004
71
59
  description:
72
60
  email: martinkozak@martinkozak.net
73
61
  executables: []
@@ -79,15 +67,16 @@ extra_rdoc_files:
79
67
  - README.md
80
68
  files:
81
69
  - .document
70
+ - CHANGES.txt
82
71
  - Gemfile
83
72
  - Gemfile.lock
84
73
  - LICENSE.txt
85
74
  - README.md
86
75
  - Rakefile
87
76
  - VERSION
77
+ - jpegoptim.gemspec
88
78
  - lib/jpegoptim.rb
89
79
  - test
90
- has_rdoc: true
91
80
  homepage: https://github.com/martinkozak/jpegoptim
92
81
  licenses:
93
82
  - MIT
@@ -101,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
90
  requirements:
102
91
  - - ">="
103
92
  - !ruby/object:Gem::Version
104
- hash: -56402776733951615
93
+ hash: 299986998225811142
105
94
  segments:
106
95
  - 0
107
96
  version: "0"
@@ -114,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
103
  requirements: []
115
104
 
116
105
  rubyforge_project:
117
- rubygems_version: 1.5.2
106
+ rubygems_version: 1.8.5
118
107
  signing_key:
119
108
  specification_version: 3
120
109
  summary: Ruby interface to 'jpegoptim' tool.