retina_rails 2.0.4 → 2.0.5
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +19 -13
- data/README.md +9 -7
- data/gemfiles/rails-4-2.gemfile +5 -0
- data/gemfiles/rails-5-0.gemfile +5 -0
- data/gemfiles/rails-5-1.gemfile +5 -0
- data/gemfiles/rails-master.gemfile +5 -0
- data/lib/retina_rails/helpers.rb +0 -14
- data/lib/retina_rails/version.rb +1 -1
- data/retina_rails.gemspec +2 -0
- data/spec/helpers_spec.rb +0 -18
- metadata +8 -7
- data/spec/fixtures/db/retina_rails.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b25c9281978c52f71dca03d969b83dc866e8a9a
|
4
|
+
data.tar.gz: 1bdd136c088f4790e8933fed97d81ad577f6f6ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 869f9034a649982098c7847bb502a24f07242846b1d8c39e5d5a9abb2dcf39ed7571c7f0167eb93298c93c3dd228e251987ada8e41925ea69fda1abb80b0385f
|
7
|
+
data.tar.gz: 6b0bee6e1f5c8db2a3175b0b13575020a5ed9dd06ef5941fe28944a7e4f8682ddc480358e9267d5dbe21e0a701becf1585ee45a45f2efe7090f71b00c6fd0320
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,22 +3,28 @@ cache: bundler
|
|
3
3
|
language: ruby
|
4
4
|
sudo: false
|
5
5
|
rvm:
|
6
|
-
- 1
|
7
|
-
- 2.
|
8
|
-
- 2.
|
9
|
-
- 2.
|
6
|
+
- 2.1
|
7
|
+
- 2.2
|
8
|
+
- 2.3
|
9
|
+
- 2.4
|
10
10
|
- ruby-head
|
11
11
|
|
12
|
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
-
|
16
|
-
-
|
17
|
-
- "RAILS_VERSION=4.2.5"
|
18
|
-
- "RAILS_VERSION=master"
|
12
|
+
gemfile:
|
13
|
+
- gemfiles/rails-4-2.gemfile
|
14
|
+
- gemfiles/rails-5-0.gemfile
|
15
|
+
- gemfiles/rails-5-1.gemfile
|
16
|
+
- gemfiles/rails-master.gemfile
|
19
17
|
|
20
18
|
matrix:
|
19
|
+
fast_finish: true
|
20
|
+
exclude:
|
21
|
+
- gemfile: gemfiles/rails-5-0.gemfile
|
22
|
+
rvm: 2.1
|
23
|
+
- gemfile: gemfiles/rails-5-1.gemfile
|
24
|
+
rvm: 2.1
|
25
|
+
- gemfile: gemfiles/rails-master.gemfile
|
26
|
+
rvm: 2.1
|
21
27
|
allow_failures:
|
22
|
-
- env: "RAILS_VERSION=master"
|
23
28
|
- rvm: ruby-head
|
24
|
-
|
29
|
+
- gemfile: gemfiles/rails-master.gemfile
|
30
|
+
|
data/README.md
CHANGED
@@ -140,14 +140,16 @@ If no image is uploaded (yet) it will display the default image defined with Car
|
|
140
140
|
Supported Ruby Versions
|
141
141
|
------------
|
142
142
|
|
143
|
-
This library is tested against Travis and aims to support the following Ruby
|
143
|
+
This library is tested against Travis and aims to support the following Ruby and Rails
|
144
144
|
implementations:
|
145
145
|
|
146
|
-
* Ruby 1
|
147
|
-
* Ruby
|
148
|
-
* Ruby 2.
|
149
|
-
* Ruby 2.
|
150
|
-
*
|
146
|
+
* Ruby 2.1
|
147
|
+
* Ruby 2.2
|
148
|
+
* Ruby 2.3
|
149
|
+
* Ruby 2.4
|
150
|
+
* Rails 4.2
|
151
|
+
* Rails 5.0
|
152
|
+
* Rails 5.1
|
151
153
|
|
152
154
|
Contributing
|
153
155
|
------------
|
@@ -161,4 +163,4 @@ Contributing
|
|
161
163
|
Copyright
|
162
164
|
------------
|
163
165
|
|
164
|
-
Copyright (c)
|
166
|
+
Copyright (c) 2018 Johan van Zonneveld. See LICENSE for details.
|
data/lib/retina_rails/helpers.rb
CHANGED
@@ -35,20 +35,6 @@ module ActionView
|
|
35
35
|
|
36
36
|
image_tag(model.send(mounted_to).url(version), options)
|
37
37
|
end
|
38
|
-
|
39
|
-
##
|
40
|
-
# Show deprecation warning when old image_tag helper with retina option is used.
|
41
|
-
# TODO: Remove in new release
|
42
|
-
#
|
43
|
-
def image_tag_with_retina(source, options={})
|
44
|
-
if options.delete(:retina)
|
45
|
-
ActiveSupport::Deprecation.warn("`image_tag('image.png', :retina => true)` is deprecated use `retina_image_tag` instead")
|
46
|
-
end
|
47
|
-
|
48
|
-
image_tag_without_retina(source, options)
|
49
|
-
end
|
50
|
-
alias_method_chain :image_tag, :retina
|
51
|
-
|
52
38
|
end # AssetTagHelper
|
53
39
|
end # Helpers
|
54
40
|
end # ActionView
|
data/lib/retina_rails/version.rb
CHANGED
data/retina_rails.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ['lib']
|
20
20
|
|
21
|
+
gem.required_ruby_version = ">= 2.1.0"
|
22
|
+
|
21
23
|
gem.add_development_dependency 'bundler', '>= 1.0.0'
|
22
24
|
gem.add_development_dependency 'coveralls'
|
23
25
|
gem.add_development_dependency 'carrierwave'
|
data/spec/helpers_spec.rb
CHANGED
@@ -98,22 +98,4 @@ describe ActionView::Helpers::AssetTagHelper, :type => :helper do
|
|
98
98
|
|
99
99
|
end
|
100
100
|
|
101
|
-
describe '#image_tag' do
|
102
|
-
|
103
|
-
it 'should show a deprecation warning when used with retina option' do
|
104
|
-
expect(ActiveSupport::Deprecation).to receive(:warn)
|
105
|
-
.with("`image_tag('image.png', :retina => true)` is deprecated use `retina_image_tag` instead")
|
106
|
-
|
107
|
-
image_tag('image.png', :retina => true)
|
108
|
-
end
|
109
|
-
|
110
|
-
it 'should not show a deprecation warning when used without retina option' do
|
111
|
-
expect(ActiveSupport::Deprecation).to_not receive(:warn)
|
112
|
-
.with("`image_tag('image.png', :retina => true)` is deprecated use `retina_image_tag` instead")
|
113
|
-
|
114
|
-
image_tag('image.png')
|
115
|
-
end
|
116
|
-
|
117
|
-
end
|
118
|
-
|
119
101
|
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: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan van Zonneveld
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-02-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -155,6 +155,10 @@ files:
|
|
155
155
|
- Rakefile
|
156
156
|
- UPGRADING
|
157
157
|
- UPGRADING.md
|
158
|
+
- gemfiles/rails-4-2.gemfile
|
159
|
+
- gemfiles/rails-5-0.gemfile
|
160
|
+
- gemfiles/rails-5-1.gemfile
|
161
|
+
- gemfiles/rails-master.gemfile
|
158
162
|
- lib/retina_rails.rb
|
159
163
|
- lib/retina_rails/extensions.rb
|
160
164
|
- lib/retina_rails/extensions/carrierwave.rb
|
@@ -168,7 +172,6 @@ files:
|
|
168
172
|
- lib/retina_rails/strategies/paperclip.rb
|
169
173
|
- lib/retina_rails/version.rb
|
170
174
|
- retina_rails.gemspec
|
171
|
-
- spec/fixtures/db/retina_rails.sqlite3
|
172
175
|
- spec/fixtures/images/avatar.jpeg
|
173
176
|
- spec/helpers_spec.rb
|
174
177
|
- spec/spec_helper.rb
|
@@ -198,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
201
|
requirements:
|
199
202
|
- - ">="
|
200
203
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
204
|
+
version: 2.1.0
|
202
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
206
|
requirements:
|
204
207
|
- - ">="
|
@@ -206,12 +209,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
209
|
version: '0'
|
207
210
|
requirements: []
|
208
211
|
rubyforge_project:
|
209
|
-
rubygems_version: 2.
|
212
|
+
rubygems_version: 2.6.14
|
210
213
|
signing_key:
|
211
214
|
specification_version: 4
|
212
215
|
summary: Makes your life easier optimizing your application for retina displays
|
213
216
|
test_files:
|
214
|
-
- spec/fixtures/db/retina_rails.sqlite3
|
215
217
|
- spec/fixtures/images/avatar.jpeg
|
216
218
|
- spec/helpers_spec.rb
|
217
219
|
- spec/spec_helper.rb
|
@@ -222,4 +224,3 @@ test_files:
|
|
222
224
|
- spec/support/paperclip.rb
|
223
225
|
- spec/support/rails.rb
|
224
226
|
- spec/support/schema.rb
|
225
|
-
has_rdoc:
|
Binary file
|