retina_rails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -58,7 +58,7 @@ For retina images use
58
58
  ------------
59
59
 
60
60
  ```ruby
61
- = image_tag('/assets/image.png', :retina => true)
61
+ image_tag('image.png', :retina => true)
62
62
  ```
63
63
 
64
64
  Voila! Now you're using Retina Rails.
@@ -10,7 +10,8 @@ module ActionView
10
10
  filename = retina_source.slice!(-2)
11
11
  retina_source = retina_source.insert(-2, "#{filename}@2x").join('.')
12
12
 
13
- options.merge!(:data => { :at2x => path_to_image(retina_source) })
13
+ options[:data] ||= {}
14
+ options[:data].merge!(:at2x => path_to_image(retina_source))
14
15
  end
15
16
 
16
17
  image_tag_without_retina(source, options)
@@ -19,4 +20,4 @@ module ActionView
19
20
 
20
21
  end
21
22
  end
22
- end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module RetinaRails
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -23,9 +23,9 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency 'rspec-rails', '~> 2.0'
24
24
  gem.add_development_dependency 'carrierwave'
25
25
  gem.add_development_dependency 'paperclip'
26
+ gem.add_development_dependency 'rmagick'
26
27
  gem.add_development_dependency 'sqlite3'
27
28
  gem.add_development_dependency 'coveralls'
28
29
 
29
30
  gem.add_dependency 'rails', '>= 3.0'
30
- gem.add_dependency 'rmagick'
31
31
  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.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-16 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -108,7 +108,7 @@ dependencies:
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  - !ruby/object:Gem::Dependency
111
- name: sqlite3
111
+ name: rmagick
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -124,7 +124,7 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: coveralls
127
+ name: sqlite3
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
@@ -140,29 +140,29 @@ dependencies:
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
- name: rails
143
+ name: coveralls
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
147
147
  - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
- version: '3.0'
150
- type: :runtime
149
+ version: '0'
150
+ type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
155
155
  - - ! '>='
156
156
  - !ruby/object:Gem::Version
157
- version: '3.0'
157
+ version: '0'
158
158
  - !ruby/object:Gem::Dependency
159
- name: rmagick
159
+ name: rails
160
160
  requirement: !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
164
164
  - !ruby/object:Gem::Version
165
- version: '0'
165
+ version: '3.0'
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
@@ -170,7 +170,7 @@ dependencies:
170
170
  requirements:
171
171
  - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: '3.0'
174
174
  description: Retina Rails automatically generates retina versions of your uploaded
175
175
  images (CarrierWave or Paperclip). It detects if a visitor has a retina display
176
176
  and if so it displays the @2x version