polygallery 0.4.6 → 0.4.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: 5dee9c9d0bf44f68e1cc707295d0638826ee6884
4
- data.tar.gz: ee7a7264e8d8bb90a9183ead4f8a21ae365c7fd0
3
+ metadata.gz: f6a811497459b0f48e9b71652a408e05951d52e6
4
+ data.tar.gz: f1bbc415472c9600c05345b75cd0574b04751601
5
5
  SHA512:
6
- metadata.gz: 174326ff6c8045018740f033347dcf20671cb9425ed6acfe6692971ba66f8bbc7dc8707abe861b803bf8610dbf91f352d02e726c370c802cdd9f1d3cc023c977
7
- data.tar.gz: a2c34fccea0d228992037ef4b65895c6875a735876b21b1b1fa3d645425407b09b9c59d7eb8e4abd4ab44dc8581ead8751d0016d60730f35a48d28e5ff816fa6
6
+ metadata.gz: a7595fc839a5e5e1a2cce0a42e551db423c04a63a73e62482c0adac6c61509d79bcf9a8b26bf08d8a2296375d75971b87fed41b1c67add85fe0793a76e5cb87f
7
+ data.tar.gz: f22d9e797b90f34535553af65134c7e4ed2be2e53b6b0264a9eb5dd07381f5e571c5c6e13f1985a51dc6db5d6a727dbb05b4966bc33abecf2f54494fd986e36a
@@ -7,8 +7,8 @@
7
7
  = f.input_field :galleryable_type, as: :hidden
8
8
  = image_tag f.object.photo.file? ? f.object.photo.url(:thumb) : 'polygallery/thumbnail-missing.jpg', class: 'img-responsive'
9
9
  %td
10
- = f.input_field :photo
10
+ = f.input_field :photo, settings[:file_input]
11
11
  = f.input_field :caption, placeholder: 'Caption... (optional)', style: 'margin-top:5px;', as: :string
12
12
  %td.text-center{style: 'width:51px;'}
13
- = link_to_remove_association f, settings[:remove_btn] do
13
+ = link_to_remove_association f, settings[:remove_btn] do
14
14
  %span.glyphicon.glyphicon-trash
@@ -16,7 +16,8 @@ module Polygallery
16
16
  class: 'btn btn-default btn-sm pull-right',
17
17
  data: { association_insertion_method: 'append',
18
18
  association_insertion_node: "##{fb.object.send(title).polygallery_settings[:association_names][:photos]} .photo-receptacle" }},
19
- remove_btn: { class: 'btn btn-default btn-sm' }}
19
+ remove_btn: { class: 'btn btn-default btn-sm' },
20
+ file_input: {}}
20
21
  settings = if (options = args.find{|a| a.is_a? Hash }).nil? then defaults
21
22
  else defaults.deep_merge options end
22
23
  new_block = block_given? ? block : ->(fb2) {
@@ -1,3 +1,3 @@
1
1
  module Polygallery
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polygallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
385
385
  version: '0'
386
386
  requirements: []
387
387
  rubyforge_project:
388
- rubygems_version: 2.4.8
388
+ rubygems_version: 2.4.5.1
389
389
  signing_key:
390
390
  specification_version: 4
391
391
  summary: Polymorphic galleries made simple.