rails-gallery 0.3.2 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d3bbbfe32714ce66e9f34e83fa55312155a6c74
4
- data.tar.gz: 75cf3f4cbd2a06df2ab57bfd6780077922f9177b
3
+ metadata.gz: 7a8c638653c9a471ec9c51284711fff6ca0b4965
4
+ data.tar.gz: 263822b87dce92361985dbe3fc162ecd244931ba
5
5
  SHA512:
6
- metadata.gz: 66b2b73fff3ab721db06dbd9d77775f1424edc3db622786e9afb12d2c4a38b92099d476593ee5818d7cdaed1c1477ce4b84975bab2f6c4dba1c392a45ca1eed0
7
- data.tar.gz: 1f8dce493034ad19917e969781d91639bebef69017408d5b505a11911547f1f93ef9c2a99bc266f638d684213e498527bb75d157bde232424952f5ec00e20d7e
6
+ metadata.gz: 0004d41f1ad45b3212e0fb7e7c0a69abb58d83221c1a4925d06a76a21e567b65a7968ea585f509356cf4bb49788b0a212151d2e7088b13473ed33939f7aa5067
7
+ data.tar.gz: 72d5491763d47fe34cf1e18c9bf2c663285ab1a27c970b283761c33412adbcadefa1f62a0b9b2b1789de557dbc26473a3c20a24131236a54ef6165dd175bc932
@@ -13,7 +13,7 @@
13
13
  .msg_thumb_wrapper
14
14
  - photos.page(:first).photos.each do |photo|
15
15
  %a{href: "#"}
16
- = gallery_image :slideshow photo
16
+ = gallery_image :slideshow, photo
17
17
  - photos.pages.remainder.each do |page|
18
18
  .msg_thumb_wrapper{style: 'display:none'}
19
19
  - page.photos.each do |photo|
@@ -1,3 +1,3 @@
1
1
  module RailsGallery
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
@@ -18,22 +18,22 @@ module RailsGallery
18
18
  autoload gallery.camelize.to_sym, "rails-gallery/view_helper/#{gallery}"
19
19
  end
20
20
 
21
- def gallery_image type, photo
21
+ def gallery_image type, photo, options = {}
22
22
  meth_name = "#{type}_gallery_image"
23
23
  validate_gallery_photo! photo
24
24
  unless respond_to? meth_name
25
25
  raise ArgumentError, "Gallery #{type} is not yet supported. Please add a View helper module for this gallery using the convention followed by the other galleries..."
26
26
  end
27
- send(meth_name, photo)
27
+ send(meth_name, photo, options)
28
28
  end
29
29
 
30
- def gallery_imageset type, imageset
30
+ def gallery_imageset type, imageset, options = {}
31
31
  meth_name = "#{type}_gallery_imageset"
32
32
  # validate_gallery_imageset! imageset
33
33
  unless respond_to? meth_name
34
34
  raise ArgumentError, "Gallery #{type} is not yet supported for imageset. Please add a View helper module for this gallery using the convention followed by the other galleries..."
35
35
  end
36
- send(meth_name, imageset)
36
+ send(meth_name, imageset, options)
37
37
  end
38
38
 
39
39
  protected
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Mandrup