featuredimage 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a19990d040de328c24f613bc1b4c4233f4c8d044d72c32aff8acc73ad3f6b587
4
+ data.tar.gz: 64d28002ad3c154195177df8bb3bc16201b3d348ec2376d199c651956995fb07
5
+ SHA512:
6
+ metadata.gz: 64308f3e41736c97e9cc9a933dc621ea0930ee6c6ed173c0d190038591289ddfb728dc1c861f051fabda551784912ccfa4b3f4f11c6b6f489726dc285cdd23d9
7
+ data.tar.gz: 90f4faf5f66f36c3ab18b7e1f71c5c5abd6d10e291aefb007a99d884894622e17c3c0670d2ed838e60c28ec63e148afb682a61473b7538c7aef787f83310536c
@@ -1,4 +1,8 @@
1
- require 'RMagick'
1
+ begin
2
+ require "rmagick"
3
+ rescue LoadError
4
+ require "RMagick"
5
+ end
2
6
 
3
7
  module FeaturedImage
4
8
  class Converter
@@ -1,5 +1,9 @@
1
1
  require "mechanize"
2
- require "RMagick"
2
+ begin
3
+ require "rmagick"
4
+ rescue LoadError
5
+ require "RMagick"
6
+ end
3
7
 
4
8
  module FeaturedImage
5
9
  class Finder
metadata CHANGED
@@ -1,91 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featuredimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
5
- prerelease:
4
+ version: 0.9.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - xmisao
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-29 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mechanize
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rmagick
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
- description: ! 'FeaturedImage is the finder that extract featured image from a web
47
- page.
48
-
49
- FeaturedImage::Finder accesses and analyses a web page using Mechanize, download
50
- images which are referenced by IMG tag in HTML, and specify a featured image based
51
- on size of image using RMagick.
52
-
53
- Furthermore, FeaturedImage contains pretty good thumbnail generating function too.
54
- FeaturedImage::Converter crops centered area of image, resizes, and convert to arbitrary
55
- format automatically.
56
-
57
- '
41
+ description: |
42
+ FeaturedImage is the finder that extract featured image from a web page.
43
+ FeaturedImage::Finder accesses and analyses a web page using Mechanize, download images which are referenced by IMG tag in HTML, and specify a featured image based on size of image using RMagick.
44
+ Furthermore, FeaturedImage contains pretty good thumbnail generating function too. FeaturedImage::Converter crops centered area of image, resizes, and convert to arbitrary format automatically.
58
45
  email: mail@xmisao.com
59
46
  executables: []
60
47
  extensions: []
61
48
  extra_rdoc_files: []
62
49
  files:
63
50
  - lib/featuredimage.rb
64
- - lib/featuredimage/finder.rb
65
51
  - lib/featuredimage/converter.rb
52
+ - lib/featuredimage/finder.rb
66
53
  homepage: https://github.com/xmisao/featuredimage
67
54
  licenses:
68
55
  - MIT
56
+ metadata: {}
69
57
  post_install_message:
70
58
  rdoc_options: []
71
59
  require_paths:
72
60
  - lib
73
61
  required_ruby_version: !ruby/object:Gem::Requirement
74
- none: false
75
62
  requirements:
76
- - - ! '>='
63
+ - - ">="
77
64
  - !ruby/object:Gem::Version
78
65
  version: '0'
79
66
  required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
67
  requirements:
82
- - - ! '>='
68
+ - - ">="
83
69
  - !ruby/object:Gem::Version
84
70
  version: '0'
85
71
  requirements: []
86
72
  rubyforge_project:
87
- rubygems_version: 1.8.23
73
+ rubygems_version: 2.7.6
88
74
  signing_key:
89
- specification_version: 3
75
+ specification_version: 4
90
76
  summary: FeaturedImage is the finder that extract featured image from a web page.
91
77
  test_files: []