optipng 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. data/Gemfile +3 -6
  2. data/Gemfile.lock +11 -11
  3. data/README.md +1 -1
  4. data/Rakefile +3 -11
  5. data/VERSION +1 -1
  6. data/lib/optipng.rb +2 -5
  7. data/optipng.gemspec +15 -18
  8. metadata +11 -24
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
@@ -46,6 +46,6 @@ Copyright © 2011 [Martin Kozák][3]. See `LICENSE.txt` for
46
46
  further details.
47
47
 
48
48
  [1]: http://optipng.sourceforge.net/
49
- [2]: http://github.com/martinkozak/qrpc/issues
49
+ [2]: http://github.com/martinkozak/optipng/issues
50
50
  [3]: http://www.martinkozak.net/
51
51
  [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 = "optipng"
@@ -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
@@ -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
  ##
@@ -79,12 +78,10 @@ module Optipng
79
78
  if options[:debug] == true
80
79
  STDERR.write cmd.to_s + "\n"
81
80
  end
82
-
83
- cmd = cmd.to_s
84
81
 
85
82
  # Blocking
86
83
  if block.nil?
87
- output = Pipe.run(cmd)
84
+ output = cmd.execute!
88
85
 
89
86
  # Parses output
90
87
  succeed, errors = __parse_output(output)
@@ -92,7 +89,7 @@ module Optipng
92
89
 
93
90
  # Non-blocking
94
91
  else
95
- Pipe.run(cmd) do |output|
92
+ cmd.execute do |output|
96
93
  succeed, errors = __parse_output(output)
97
94
  block.call(self::Result::new(succeed, errors))
98
95
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{optipng}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Martin Kozák"]
12
- s.date = %q{2011-02-22}
11
+ s.authors = [%q{Martin Kozák}]
12
+ s.date = %q{2011-07-30}
13
13
  s.email = %q{martinkozak@martinkozak.net}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -28,33 +28,30 @@ Gem::Specification.new do |s|
28
28
  "test"
29
29
  ]
30
30
  s.homepage = %q{https://github.com/martinkozak/optipng}
31
- s.licenses = ["MIT"]
32
- s.require_paths = ["lib"]
33
- s.rubygems_version = %q{1.5.2}
31
+ s.licenses = [%q{MIT}]
32
+ s.require_paths = [%q{lib}]
33
+ s.rubygems_version = %q{1.8.5}
34
34
  s.summary = %q{Ruby interface to 'optipng' tool.}
35
35
 
36
36
  if s.respond_to? :specification_version then
37
37
  s.specification_version = 3
38
38
 
39
39
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
- s.add_runtime_dependency(%q<pipe-run>, [">= 0.2.0"])
41
- s.add_runtime_dependency(%q<command-builder>, [">= 0.1.0"])
40
+ s.add_runtime_dependency(%q<command-builder>, [">= 0.2.0"])
42
41
  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"])
42
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
43
+ s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
45
44
  else
46
- s.add_dependency(%q<pipe-run>, [">= 0.2.0"])
47
- s.add_dependency(%q<command-builder>, [">= 0.1.0"])
45
+ s.add_dependency(%q<command-builder>, [">= 0.2.0"])
48
46
  s.add_dependency(%q<unix-whereis>, [">= 0.1.0"])
49
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
50
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
47
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
48
+ s.add_dependency(%q<jeweler>, [">= 1.5.2"])
51
49
  end
52
50
  else
53
- s.add_dependency(%q<pipe-run>, [">= 0.2.0"])
54
- s.add_dependency(%q<command-builder>, [">= 0.1.0"])
51
+ s.add_dependency(%q<command-builder>, [">= 0.2.0"])
55
52
  s.add_dependency(%q<unix-whereis>, [">= 0.1.0"])
56
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
57
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
53
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
54
+ s.add_dependency(%q<jeweler>, [">= 1.5.2"])
58
55
  end
59
56
  end
60
57
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: optipng
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: []
@@ -88,7 +76,6 @@ files:
88
76
  - lib/optipng.rb
89
77
  - optipng.gemspec
90
78
  - test
91
- has_rdoc: true
92
79
  homepage: https://github.com/martinkozak/optipng
93
80
  licenses:
94
81
  - MIT
@@ -102,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
89
  requirements:
103
90
  - - ">="
104
91
  - !ruby/object:Gem::Version
105
- hash: -1525761151381107860
92
+ hash: -34390319723187235
106
93
  segments:
107
94
  - 0
108
95
  version: "0"
@@ -115,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
102
  requirements: []
116
103
 
117
104
  rubyforge_project:
118
- rubygems_version: 1.5.2
105
+ rubygems_version: 1.8.5
119
106
  signing_key:
120
107
  specification_version: 3
121
108
  summary: Ruby interface to 'optipng' tool.