rails_responsive_images 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 339179683409eb5f1e1708e3adc8f748be66a168
4
- data.tar.gz: 05d6cb85a113603c0aa1eea10a72087983824be6
3
+ metadata.gz: 13049b1147fe8e29db96643666c275b9a30ea48e
4
+ data.tar.gz: f762fe8b1e23f2b539ffab1fc2017b902e1ba5a5
5
5
  SHA512:
6
- metadata.gz: 29b68da48b2067bf295c2e2585dd3f98e3ffc90a029fc222ad6ccd8fedf7117f28ac06515482f99da8057e9f2cadaed42289d915b7e4b59442e880d015984533
7
- data.tar.gz: 800fa0f4c2053c743701340167650f76078c07ef0d60c8d2a582d09841acad4b829deda0906f2c46cfc208601859ba00be448127d5b9fc4a793d5e497f5ecf9b
6
+ metadata.gz: 9797bd598b532e3743e1ebeee890c7826817baef58a7502a57f6ca7312ba4edf2b53d920c862c4bffd8f19d55a991d7e29a2ae2fa2e47177aa6f97e7b759863d
7
+ data.tar.gz: b2b1b479247b67706c6767534d8fa19f268746f97a570bcabe2640827364a932edc99c5fdfe568fbf9547d0c70cefc3980448d4cf8795fe9365a2e4298da117c
@@ -1,3 +1,3 @@
1
1
  module RailsResponsiveImages
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
@@ -37,9 +37,8 @@ ActionView::Helpers::AssetTagHelper.module_eval do
37
37
  content_tag :picture do
38
38
  original_filepath = path.sub(/\A\/assets/, '')
39
39
  ::RailsResponsiveImages.configuration.image_sizes.each do |size|
40
- # TODO use image_path helper
41
- responsive_file_name = "/assets/responsive_images_#{size}/#{original_filepath}"
42
- concat content_tag(:source, '', media: "(max-width: #{size}px)", srcset: responsive_file_name)
40
+ responsive_image_path = image_path("responsive_images_#{size}/#{original_filepath}")
41
+ concat content_tag(:source, '', media: "(max-width: #{size}px)", srcset: responsive_image_path)
43
42
  end
44
43
  concat image_tag_without_responsiveness(path, options)
45
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_responsive_images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Chilian