spree_watermark 0.50.2 → 0.50.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,25 +5,25 @@ Image.class_eval do
5
5
  :styles => {
6
6
  :mini => {
7
7
  :geometry => '48x48>',
8
- :watermark_path => "#{RAILS_ROOT}/public/images/watermarks/tiny.png",
8
+ :watermark_path => "#{Rails.root.to_s}/public/images/watermarks/tiny.png",
9
9
  :watermark_position => "SouthWest",
10
10
  :format => :png,
11
11
  },
12
12
  :small => {
13
13
  :geometry => '100x100>',
14
- :watermark_path => "#{RAILS_ROOT}/public/images/watermarks/small.png",
14
+ :watermark_path => "#{Rails.root.to_s}/public/images/watermarks/small.png",
15
15
  :watermark_position => "SouthWest",
16
16
  :format => :png,
17
17
  },
18
18
  :product => {
19
19
  :geometry => '240x240>',
20
- :watermark_path => "#{RAILS_ROOT}/public/images/watermarks/product.png",
20
+ :watermark_path => "#{Rails.root.to_s}/public/images/watermarks/product.png",
21
21
  :watermark_position => "SouthWest",
22
22
  :format => :png,
23
23
  },
24
24
  :large => {
25
25
  :geometry => '600x600>',
26
- :watermark_path => "#{RAILS_ROOT}/public/images/watermarks/large.png",
26
+ :watermark_path => "#{Rails.root.to_s}/public/images/watermarks/large.png",
27
27
  :watermark_position => "SouthWest",
28
28
  :format => :png,
29
29
  },
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'spree_watermark'
4
- s.version = '0.50.2'
4
+ s.version = '0.50.3'
5
5
  s.summary = 'adds watermarking to incoming product images'
6
6
  s.description = 'Adds watermarking to incoming product images'
7
7
  s.required_ruby_version = '>= 1.9.2'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: spree_watermark
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.50.2
5
+ version: 0.50.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Christopher Maujean
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-28 00:00:00 -07:00
13
+ date: 2011-04-30 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency