plumnailer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -1,6 +1,6 @@
1
1
  module Plumnailer
2
2
 
3
- # Mixin for Magick::Image that adds a comparator for sorting by relevance.
3
+ # Mixin for Magick::ImageList that adds a comparator for sorting by relevance.
4
4
  module ImgComparator
5
5
 
6
6
  def <=> other
@@ -25,12 +25,12 @@ module Plumnailer
25
25
  end
26
26
  end
27
27
 
28
- # Fetch image data from a url, load into Magick::Image and set some
28
+ # Fetch image data from a url, load into Magick::ImageList and set some
29
29
  # additional fields.
30
30
  def parse_one(img_url)
31
31
  img_data = fetcher.fetch(img_url)
32
32
  unless !img_data or img_data.empty?
33
- img = Magick::ImageList.new.from_blob(img_data).first.extend(
33
+ img = Magick::ImageList.new.from_blob(img_data).extend(
34
34
  Plumnailer::WebImage)
35
35
  img.source_url = img_url
36
36
  img
@@ -1,6 +1,6 @@
1
1
  module Plumnailer
2
2
 
3
- # Mixin for Magick::Image that adds url field and source document.
3
+ # Mixin for Magick::ImageList that adds url field and source document.
4
4
  module WebImage
5
5
  attr_accessor :source_url
6
6
  attr_accessor :doc
data/plumnailer.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{plumnailer}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matthew M. Boedicker"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plumnailer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew M. Boedicker