attached 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/attached/image.rb +7 -1
  2. metadata +2 -15
@@ -1,6 +1,12 @@
1
1
  require 'attached/processor'
2
2
 
3
- require 'rmagick'
3
+ begin
4
+ require 'rmagick'
5
+ rescue LoadError
6
+ require 'RMagick'
7
+ rescue LoadError
8
+ raise "Installation of 'rmagick' is required before using the 'image' processor"
9
+ end
4
10
 
5
11
  module Attached
6
12
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Sylvestre
@@ -43,19 +43,6 @@ dependencies:
43
43
  version: "0"
44
44
  type: :runtime
45
45
  version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
- name: rmagick
48
- prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
- version: "0"
57
- type: :runtime
58
- version_requirements: *id003
59
46
  description: Attached is a Ruby on Rails cloud attachment and processor library inspired by Paperclip. Attached lets users push files to the cloud, then perform remote processing on the files.
60
47
  email:
61
48
  - kevin@ksylvest.com