retina_rails 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.
@@ -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: