pageflow-before-after 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGE5MDVkYjAyZWNlNDAwMjNlZmM0NDhiNjdlNWU1NDAxMTA3MTliZA==
4
+ ODg3YThlZjdiZmU5ZTIwY2Q0NzA1MjQxMGU3ZGJhOTQ0NGQwOGE4NQ==
5
5
  data.tar.gz: !binary |-
6
- YmQzZjk0MTVmZmM1YjRhMDEwYWRiOGEzNGM0MTM2YzNlZGIwN2E2YQ==
6
+ Y2FhMDU0NWE4ZjA1NzgzOWRlYzZmNjZmNjVkZDYzOTQxMWU0MjljMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDJmYTIyNWQ2NzA0NmNhNTdlZWNmOTQ4MmM4MWQ3MmU1YWJmMjE1NmMyN2Yx
10
- YTU0NTAzODEwMzQ2MWY3OTIwZmFmMmUyZTQ3ZjlkNTFlYTAxODVkYzc1MWE1
11
- MDY5OTVmODJlNzA3Y2RiY2FkMTAyN2UzZDM1NDA2NmNhZDJlMjc=
9
+ MDM5OTM0Y2YxYzQ1NmIwMDM3MDk2YzRkZTBjNGY2NmJmMjc1MGZjY2U4Yjgy
10
+ ZmNjNDdiZTkxYWJjNTg2N2NkZGI2ODY5YjFkYzMyNzI0ZDVkOTA4NDljM2Iz
11
+ NTJlZWM1MWM0OTNkYTdjNGI5YjYzNWMxODA5NDc1MTIyZmE3OTg=
12
12
  data.tar.gz: !binary |-
13
- ODI5OWM5YzhlNmU3ZjY0ZDc5MDZjMDIxNDFhZWNlMmNkOTM3M2Q0YzY4ZWQw
14
- MGEwMTQxNGY5M2Y5NWI0MTY4Yzc3YzcyOGQ4ZjMwY2Y5OWQ4MmZkNWE1NDEy
15
- ODg3MzlkNmFiNTc1ZGQyZTRkY2Y3MzQ0MmYxN2RmYjI1ZmM1MjI=
13
+ YzFkOWMwNDQyYmUxODY2NWIwOGVhYzQ0NjE5ODc2MjhmMWRhZTdhMzJmNzJk
14
+ MmMzYWEwNzkwZjkxYmE1ZTVkZTk1ZTI0YTY2M2NlM2JkMWNmYzYwNmM5ZGU1
15
+ YjBlMWNlZTk5ZDgzYzIyMzUxMGNjMjZmMWE2MjZhOWMyNDU2ZjU=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 0.1.0
4
+
5
+ - Display correct page thumbnails in Pageflow 0.5.
6
+ ([#1](https://github.com/codevise/pageflow-before-after/pull/1))
7
+
3
8
  ### Version 0.0.2
4
9
 
5
10
  - Split `page_types` directory in `app/*` directories. Mixing assets
data/README.md CHANGED
@@ -20,14 +20,18 @@ Register the page type:
20
20
 
21
21
  Include javascripts and stylesheets:
22
22
 
23
- # app/assets/javascripts/application.js
23
+ # app/assets/javascripts/pageflow/application.js
24
24
  //= require "pageflow/before_after"
25
25
 
26
26
  # app/assets/javascripts/pageflow/editor.js
27
27
  //= require pageflow/before_after/editor
28
28
 
29
- # app/assets/stylesheets/application.scss.css
29
+ # app/assets/stylesheets/pageflow/application.css.scss
30
30
  @import "pageflow/before_after";
31
31
 
32
32
  Execute `bundle install`
33
33
  Restart the application server.
34
+
35
+ ## Troubleshooting
36
+
37
+ If you run into problems while installing the page type, please also refer to the [Troubleshooting](https://github.com/codevise/pageflow/wiki/Troubleshooting) wiki page in the [Pageflow repository](https://github.com/codevise/pageflow). If that doesn't help, consider [filing an issue](https://github.com/codevise/pageflow-before-after/issues).
@@ -2,6 +2,13 @@ module Pageflow
2
2
  module BeforeAfter
3
3
  class PageType < Pageflow::PageType
4
4
  name 'before_after'
5
+
6
+ def thumbnail_candidates
7
+ [
8
+ {attribute: 'thumbnail_image_id', file_collection: 'image_files'},
9
+ {attribute: 'after_image_id', file_collection: 'image_files'}
10
+ ]
11
+ end
5
12
  end
6
13
  end
7
14
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'pageflow-before-after'
5
- spec.version = '0.0.2'
5
+ spec.version = '0.1.0'
6
6
  spec.authors = ['Codevise Solutions']
7
7
  spec.email = ['info@codevise.de']
8
8
  spec.summary = 'Pageflow page type for before/after image slider.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-before-after
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-16 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow