retina_rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module RetinaRails::Extensions
2
2
 
3
3
  ## Insert :retina interpolation in url or path
4
4
  def self.optimize_path(path)
5
- path.scan(':retina').empty? ? path.gsub(':filename', ':basename.:extensions').split('.').insert(-2, ':retina.').join : path
5
+ path.scan(':retina').empty? ? path.gsub(':filename', ':basename.:extension').split('.').insert(-2, ':retina.').join : path
6
6
  end
7
7
 
8
8
  def self.override_default_options
@@ -1,3 +1,3 @@
1
1
  module RetinaRails
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -6,8 +6,8 @@ require 'retina_rails/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = 'retina_rails'
8
8
  gem.version = RetinaRails::VERSION
9
- gem.authors = ['Johan van Zonneveld']
10
- gem.email = ['johan@vzonneveld.nl']
9
+ gem.authors = ['Johan van Zonneveld', 'Arjen Oosterkamp']
10
+ gem.email = ['johan@vzonneveld.nl', 'mail@arjen.me']
11
11
  gem.homepage = 'https://github.com/jhnvz/retina_rails.git'
12
12
  gem.summary = %q{Makes your live easier optimizing for retina displays}
13
13
  gem.description = %q{Retina Rails automatically generates retina versions of your uploaded images (CarrierWave or Paperclip). It detects if a visitor has a retina display and if so it displays the @2x version}
@@ -4,9 +4,9 @@ describe RetinaRails::Extensions do
4
4
 
5
5
  subject { RetinaRails::Extensions }
6
6
 
7
- it { subject.optimize_path('/:filename').should == '/:basename:retina.:extensions' }
7
+ it { subject.optimize_path('/:filename').should == '/:basename:retina.:extension' }
8
8
 
9
- it { subject.optimize_path('/:basename.:extensions').should == '/:basename:retina.:extensions' }
9
+ it { subject.optimize_path('/:basename.:extension').should == '/:basename:retina.:extension' }
10
10
 
11
11
  end
12
12
 
@@ -16,7 +16,7 @@ describe RetinaRails::Extensions do
16
16
 
17
17
  before { RetinaRails::Extensions.override_default_options }
18
18
 
19
- it { Paperclip::Attachment.default_options[:url].should == '/system/:class/:attachment/:id_partition/:style/:basename:retina.:extensions' }
19
+ it { Paperclip::Attachment.default_options[:url].should == '/system/:class/:attachment/:id_partition/:style/:basename:retina.:extension' }
20
20
 
21
21
  end
22
22
 
@@ -24,12 +24,12 @@ describe RetinaRails::Extensions do
24
24
 
25
25
  before do
26
26
 
27
- Paperclip::Attachment.default_options[:url] = '/:class/:attachment/:id/:style/:basename.:extensions'
27
+ Paperclip::Attachment.default_options[:url] = '/:class/:attachment/:id/:style/:basename.:extension'
28
28
  RetinaRails::Extensions.override_default_options
29
29
 
30
30
  end
31
31
 
32
- it { Paperclip::Attachment.default_options[:url].should == '/:class/:attachment/:id/:style/:basename:retina.:extensions' }
32
+ it { Paperclip::Attachment.default_options[:url].should == '/:class/:attachment/:id/:style/:basename:retina.:extension' }
33
33
 
34
34
  end
35
35
 
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retina_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Johan van Zonneveld
9
+ - Arjen Oosterkamp
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
13
+ date: 2013-05-10 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: bundler
@@ -176,6 +177,7 @@ description: Retina Rails automatically generates retina versions of your upload
176
177
  and if so it displays the @2x version
177
178
  email:
178
179
  - johan@vzonneveld.nl
180
+ - mail@arjen.me
179
181
  executables: []
180
182
  extensions: []
181
183
  extra_rdoc_files: []
@@ -224,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
226
  version: '0'
225
227
  requirements: []
226
228
  rubyforge_project:
227
- rubygems_version: 1.8.24
229
+ rubygems_version: 1.8.25
228
230
  signing_key:
229
231
  specification_version: 3
230
232
  summary: Makes your live easier optimizing for retina displays