scrivito_gif_control_widget 0.0.1 → 0.0.2

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: b43bd5c13dd633356c0aa5c5ca543acb88050fe9
4
- data.tar.gz: e7c530ba2eb11f6e604b4570113915deffd61a35
3
+ metadata.gz: 4173fa5056657398f49b9c25b52845be12e30687
4
+ data.tar.gz: a3ee2d43240efc96c4471a0026a4816010c57a9c
5
5
  SHA512:
6
- metadata.gz: e8bb52b66ab2938c6ad535a6179c4c1dd53cbdd24222e4318c45ae0ebca15acb3c8507c6ae3596e1ef2b85bdcc77d13ed22e3d4cbbfd99af93e6b46d8587a523
7
- data.tar.gz: d56b8693c4eed2847bd416a434a41616f0fb9d02d63d208771a5529ae5c3ec7677f9a8416a74ab1528c91ead5acf908aa69755c534a5436f45396623c12cadef
6
+ metadata.gz: 7b98ed93e771ef60a18c95fbac11cb29a1556ddd1c78f0ecfd416c1dcff7155efa62face285830f75ac9c4e5d128240e587e2eb0d4b762337165acaeee9fd4f2
7
+ data.tar.gz: 32b2a4b5b6a7a505d2b698535ce975d595f05882b01539c13b7a0a85978c11f41fc2e52e25f003913d2c7c6b52f1a355c9fcd11fa59672578c33211c46934fb8
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ScrivitoGifControlWidget
2
2
 
3
- Scrivito Widget for a gif with simple controll to start and stop
3
+ A widget for starting and stopping animated GIFs.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,9 +8,13 @@ Add this line to your application's Gemfile:
8
8
 
9
9
  gem 'scrivito_gif_control_widget'
10
10
 
11
+ Add this line to your application Javascript Manifest:
12
+
13
+ //= require scrivito_gif_control_widget
14
+
11
15
  ## Customization
12
16
 
13
- Setting the image is only possible in your details view with the content browser. You will see all your filter. A filter_context is set in the details view. It is `image_gif`. Create a content browser filter for easier use:
17
+ Due to the click event the widget needs to handle, the GIF image in such a widget can only be set via the properties dialog using the Content Browser. You may want to create a corresponding filter for the Content Browser in order to find GIF binaries easier:
14
18
 
15
19
  ```js
16
20
  scrivito.content_browser.filters = function(filter) {
@@ -1,5 +1,7 @@
1
1
  <% if widget.gif %>
2
2
  <img data-gifffer="<%= widget.gif.try(:binary_url) %>" data-gifffer-width="100%" data-gifffer-height="auto" />
3
3
  <% else %>
4
- Select a gif in widgets details view.
4
+ <div class="alert alert-info">
5
+ Select a gif in widgets details view.
6
+ </div>
5
7
  <% end %>
@@ -1,3 +1,3 @@
1
- <%= scrivito_thumbnail 'Gif control widget' do %>
2
- Add a widget to control the start and stop of a gif.
1
+ <%= scrivito_thumbnail 'Gif control widget', image_tag('scrivito_gif_control_widget_thumbnail.jpg') do %>
2
+ Add a widget to control start and stop of a gif with click.
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoGifControlWidget
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_gif_control_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -48,10 +48,10 @@ files:
48
48
  - LICENSE
49
49
  - README.md
50
50
  - Rakefile
51
+ - app/assets/images/scrivito_gif_control_widget_thumbnail.jpg
51
52
  - app/assets/javascripts/scrivito_gif_control_widget.js
52
53
  - app/assets/javascripts/scrivito_gif_control_widget/gifffer.min.js
53
54
  - app/assets/javascripts/scrivito_gif_control_widget/script.js
54
- - app/assets/stylesheets/scrivito_gif_control_widget/application.css
55
55
  - app/models/gif_control_widget.rb
56
56
  - app/views/gif_control_widget/details.html.erb
57
57
  - app/views/gif_control_widget/show.html.erb
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */