resource_renderer 1.1.0 → 1.1.1

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: 9123b61e067248c9ad3b435f2ec2ea10863dac22
4
- data.tar.gz: b01328aafac7efa277b5e7a69432765c89546f1a
3
+ metadata.gz: 4e71b554764f33add56213232ba2b82b0aee2494
4
+ data.tar.gz: 959dcd0dff1a0f96553e521aa4bf52ac064ed832
5
5
  SHA512:
6
- metadata.gz: 5eb38e091ba7c2e85da29fd58a62bb9021df49e0e8ff8c12a7ebf36371c3f41096f7748bc5e8adde5e8937f4e11ef551220425c8f68f48aefc5e2e3e8d38f5b8
7
- data.tar.gz: 697589d17105562e5b3ab055aac05a3990ebc988851474f2479d65016fb9435334d21d9aa036daef373d0cad0b94944633fb2d433f79ffb3b380045f5cc0edc6
6
+ metadata.gz: c8f759b439f35102d81fc3352dd0159a8097b0c6e5d05462e7737c48b4ba486fafcdd57782b94ed0d7dde3469ce337fbd71b5177c82c4a68ca724c8a46d033a8
7
+ data.tar.gz: 09bd534ca52329d09d167cda8f94db2687197431fd181259ec586c1cca0cd9eef0d3cdc4e5974520d7873aa35839e199dd4ae10e853f14526f6cd7eb95102c9b
@@ -1,12 +1,12 @@
1
1
  class BootstrapThumbnailResourceRenderer < ResourceRenderer::ResourceRenderer::Base
2
2
  def render(&block)
3
- helper.content_tag(:div) do
3
+ helper.content_tag(:div, { :'data-target' => '#modal-gallery', :'data-toggle' => 'modal-gallery'}) do
4
4
  block.call(self)
5
5
  end
6
6
  end
7
7
 
8
8
  def thumbnail(attribute_name, options = {}, &block)
9
- options[:as] = :thumbnail
9
+ options.reverse_merge!(as: :thumbnail, image_tag_options: { class: 'thumbnail img-responsive' })
10
10
 
11
11
  helper.content_tag(:div, class: 'col-xs-12 col-sm-6 col-md-4 col-lg-2') do
12
12
  display(attribute_name, options, &block)
@@ -1,3 +1,3 @@
1
1
  module ResourceRenderer
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource_renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-09 00:00:00.000000000 Z
11
+ date: 2016-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -239,4 +239,3 @@ signing_key:
239
239
  specification_version: 4
240
240
  summary: A simple way to render resources.
241
241
  test_files: []
242
- has_rdoc: