quick_magick 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of quick_magick might be problematic. Click here for more details.

File without changes
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('quick_magick', '0.7.1') do |p|
5
+ Echoe.new('quick_magick', '0.7.2') do |p|
6
6
  p.description = "QuickMagick allows you to access ImageMagick command line functions using Ruby interface."
7
7
  p.url = "http://quickmagick.rubyforge.org/"
8
8
  p.author = "Ahmed ElDawy"
@@ -36,6 +36,7 @@ module QuickMagick
36
36
  template_name << '-' << color2.to_s if color2
37
37
  i = self.new(template_name, 0, nil, true)
38
38
  i.size = QuickMagick::geometry(width, height)
39
+ yield(i) if block_given?
39
40
  i
40
41
  end
41
42
 
@@ -45,6 +46,7 @@ module QuickMagick
45
46
  template_name << color.to_s if color
46
47
  i = self.new(template_name, 0, nil, true)
47
48
  i.size = QuickMagick::geometry(width, height)
49
+ yield(i) if block_given?
48
50
  i
49
51
  end
50
52
 
@@ -54,6 +56,7 @@ module QuickMagick
54
56
  template_name = "pattern:#{pattern.to_s}"
55
57
  i = self.new(template_name, 0, nil, true)
56
58
  i.size = QuickMagick::geometry(width, height)
59
+ yield(i) if block_given?
57
60
  i
58
61
  end
59
62
 
data/quick_magick.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{quick_magick}
5
- s.version = "0.7.1"
5
+ s.version = "0.7.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ahmed ElDawy"]
9
- s.date = %q{2009-11-18}
9
+ s.date = %q{2010-01-30}
10
10
  s.description = %q{QuickMagick allows you to access ImageMagick command line functions using Ruby interface.}
11
11
  s.email = %q{ahmed.eldawy@badrit.com}
12
- s.extra_rdoc_files = ["README", "lib/quick_magick.rb", "lib/quick_magick/image.rb", "lib/quick_magick/image_list.rb"]
13
- s.files = ["Manifest", "README", "Rakefile", "lib/quick_magick.rb", "lib/quick_magick/image.rb", "lib/quick_magick/image_list.rb", "test/9.gif", "test/badfile.xxx", "test/image_list_test.rb", "test/image_test.rb", "test/multipage.tif", "test/test_magick.rb", "test/warnings.tiff", "quick_magick.gemspec"]
12
+ s.extra_rdoc_files = ["README.rdoc", "lib/quick_magick.rb", "lib/quick_magick/image.rb", "lib/quick_magick/image_list.rb"]
13
+ s.files = ["Manifest", "README.rdoc", "Rakefile", "lib/quick_magick.rb", "lib/quick_magick/image.rb", "lib/quick_magick/image_list.rb", "test/9.gif", "test/badfile.xxx", "test/image_list_test.rb", "test/image_test.rb", "test/multipage.tif", "test/test_magick.rb", "test/warnings.tiff", "quick_magick.gemspec"]
14
14
  s.homepage = %q{http://quickmagick.rubyforge.org/}
15
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Quick_magick", "--main", "README"]
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Quick_magick", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{quickmagick}
18
18
  s.rubygems_version = %q{1.3.5}
data/test/image_test.rb CHANGED
@@ -311,6 +311,9 @@ class ImageTest < Test::Unit::TestCase
311
311
  i = QuickMagick::Image.solid(100, 100, :white)
312
312
  i.antialias = true
313
313
  assert i.command_line =~ /\-antialias/
314
+
315
+ i = QuickMagick::Image.solid(100, 100, :white) { |img| img.antialias = false}
316
+ assert i.command_line =~ /\+antialias/
314
317
  end
315
318
 
316
319
  def test_get_pixel
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_magick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed ElDawy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-18 00:00:00 +02:00
12
+ date: 2010-01-30 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -20,13 +20,13 @@ executables: []
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - README
23
+ - README.rdoc
24
24
  - lib/quick_magick.rb
25
25
  - lib/quick_magick/image.rb
26
26
  - lib/quick_magick/image_list.rb
27
27
  files:
28
28
  - Manifest
29
- - README
29
+ - README.rdoc
30
30
  - Rakefile
31
31
  - lib/quick_magick.rb
32
32
  - lib/quick_magick/image.rb
@@ -50,7 +50,7 @@ rdoc_options:
50
50
  - --title
51
51
  - Quick_magick
52
52
  - --main
53
- - README
53
+ - README.rdoc
54
54
  require_paths:
55
55
  - lib
56
56
  required_ruby_version: !ruby/object:Gem::Requirement