retina_rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,7 +63,11 @@ module RetinaRails
63
63
  def retina_quality(percentage)
64
64
  if version_name.to_s.include?('retina')
65
65
  manipulate! do |img|
66
- img.write(current_path) { self.quality = percentage } unless img.quality == percentage
66
+ if defined?(Magick)
67
+ img.write(current_path) { self.quality = percentage } unless img.quality == percentage
68
+ elsif defined?(MiniMagick)
69
+ img.quality(percentage.to_s)
70
+ end
67
71
  img = yield(img) if block_given?
68
72
  img
69
73
  end
@@ -1,3 +1,3 @@
1
1
  module RetinaRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retina_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: