pageflow-before-after 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- N2RkZDBiMzRjMmJkODkyMmRiMDdlMGYyZDJlMmZhYjc4NmY2NTUwYg==
5
- data.tar.gz: !binary |-
6
- OGRlOTZkNDZlYWI3YjRiMzMyZjQ1OTUzNjQ2N2ExNTExZTVjOWFiZA==
2
+ SHA1:
3
+ metadata.gz: 5fd332b27a95e066bd3805dea138e9f4b26af8f8
4
+ data.tar.gz: f8165d131b391121f1300f74fcd6f77703aae1ab
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzdjYmZjNjFiMDJiZjZjYTk0NGI5NGZmNzFlZTQ5MzM2YThkMGM0MDQ1Y2Y3
10
- YzQyOGY0M2Q5YjFjYThhMmQ0Mzc0YzEwZDA1NTg1MDczNGNmMzRjYjE5NjFh
11
- MDAxNmEzZjc3Y2RjMzM4YTVjNTQyZDgzZGMwZjAzNGEyZjc0Mzc=
12
- data.tar.gz: !binary |-
13
- MGQ2ZGM3MDc2NDU4N2E1ODEwYjVjZGEwNzBhNjg0MTQyZjFhZWMzYWZmYmFk
14
- OGU4YTQ4ZDFkMjM2ZDA0NzVmNmM4NmFlYTgzYmQ1YzRhMWJlNmMwYWE1Nzcy
15
- NDRhYWI2YjlhN2Y1OWJjNzU5M2QxMDk4YjIyMmVlZTk0ZjZkZGQ=
6
+ metadata.gz: 2ab84046cd1e157768130f37008239b996341b08eb86da13c484e0ff8a324e979bbeeddab603f3e4ac061a8c5de3a6a5536f8dfb684c0a4c51acea859b7dede5
7
+ data.tar.gz: aff2f522693163c17f060c5ea4ea2ef83e3260bb7736b0aea9850cd7aa645898455a0b20386f40159ee47f4e538433da76c893465cbc4d39a43feb9e20263b08
@@ -1,8 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Changes on `master`
3
+ ### Version 0.4.0
4
4
 
5
- None so far.
5
+ 2016-06-09
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow-before-after/compare/v0.3.0...v0.4.0)
8
+
9
+ - Use configurable page type pictograms
10
+ ([#14](https://github.com/codevise/pageflow-before-after/pull/14))
11
+ - Use public i18n gem translation in update method
12
+ ([#12](https://github.com/codevise/pageflow-before-after/pull/12),
13
+ [#11](https://github.com/codevise/pageflow-before-after/pull/11),
14
+ [#10](https://github.com/codevise/pageflow-before-after/pull/10),
15
+ [#9](https://github.com/codevise/pageflow-before-after/pull/9))
6
16
 
7
17
  ### Version 0.3.0
8
18
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ Register the page type:
15
15
 
16
16
  # config/initializers/pageflow.rb
17
17
  Pageflow.configure do |config|
18
- config.register_page_type(Pageflow::BeforeAfter::PageType.new)
18
+ config.page_types.register(Pageflow::BeforeAfter.page_type)
19
19
  end
20
20
 
21
21
  Include javascripts and stylesheets:
@@ -29,6 +29,9 @@ Include javascripts and stylesheets:
29
29
  # app/assets/stylesheets/pageflow/application.css.scss
30
30
  @import "pageflow/before_after";
31
31
 
32
+ # app/assets/stylesheets/pageflow/themes/default.css.scss
33
+ @import "pageflow/before_after/themes/default";
34
+
32
35
  Execute `bundle install`
33
36
  Restart the application server.
34
37
 
data/Rakefile CHANGED
@@ -5,3 +5,6 @@ rescue LoadError
5
5
  end
6
6
 
7
7
  Bundler::GemHelper.install_tasks
8
+
9
+ require 'semmy'
10
+ Semmy::Tasks.install
@@ -50,7 +50,7 @@ pageflow.pageType.register('before_after', _.extend({
50
50
  pageElement.find('h2 .subtitle').text(configuration.get('subtitle') || '');
51
51
  pageElement.find('p').html(configuration.get('text') || '');
52
52
  pageElement.find('.control_bar_text').text(configuration.get('control_bar_text') ||
53
- I18n.t('pageflow.before_after.page.start', {
53
+ I18n.t('pageflow.public.before_after.start', {
54
54
  locale: pageflow.entry.configuration.get('locale')
55
55
  }));
56
56
 
@@ -9,7 +9,7 @@ pageflow.ConfigurationEditorView.register('before_after', {
9
9
  this.group('general');
10
10
 
11
11
  this.input('control_bar_text', pageflow.TextInputView, {
12
- placeholder: I18n.t('pageflow.before_after.page.start', {
12
+ placeholder: I18n.t('pageflow.public.before_after.start', {
13
13
  locale: pageflow.entry.configuration.get('locale')
14
14
  })
15
15
  });
@@ -0,0 +1 @@
1
+ @include pageflow-page-type-pictograms("before_after");
@@ -1,8 +1,8 @@
1
1
  <div class="blackLayer"></div>
2
2
  <div class="content_and_background beforeAfterPage">
3
- <div class="close_button text_hidden_only" tabindex="4" title="<%= t('.close_title') %>">
3
+ <div class="close_button text_hidden_only" tabindex="4" title="<%= t('pageflow.public.before_after.leave_view') %>">
4
4
  <div class="label">
5
- <%= t('.close') %>
5
+ <%= t('pageflow.public.close') %>
6
6
  </div>
7
7
  </div>
8
8
 
@@ -24,14 +24,14 @@
24
24
 
25
25
  <div class="content">
26
26
  <div class="controls">
27
- <span class="hint"><%= t('.hint') %></span>
27
+ <span class="hint"><%= t('pageflow.public.before_after.hint') %></span>
28
28
  <%= info_box(configuration) %>
29
29
  <div class="vjs-control-bar view-control">
30
30
  <div class="play_button vjs-controls vjs-default-skin vjs-player">
31
- <a class="vjs-play-control vjs-play vjs-control" tabindex="4" title="<%= t('.start_title') %>"><span></span></a>
31
+ <a class="vjs-play-control vjs-play vjs-control" tabindex="4" title="<%= t('pageflow.public.before_after.start_title') %>"><span></span></a>
32
32
  </div>
33
33
  <div class="control_bar_text">
34
- <%= configuration['control_bar_text'].presence || t('.start') %>
34
+ <%= configuration['control_bar_text'].presence || t('pageflow.public.before_after.start') %>
35
35
  </div>
36
36
  </div>
37
37
  </div>
@@ -10,30 +10,7 @@ de:
10
10
  help_entries:
11
11
  page_type:
12
12
  menu_item: Vorher/Nachher
13
- text: ! '# Vorher/Nachher
14
-
15
-
16
- Zwei übereinander liegende Bilder mit Schieberegler getrennt
17
-
18
-
19
- Mit dem Vorher/Nachher-Effekt lassen sich zwei Bilder übereinander legen, die dann per
20
-
21
- Schieberegler mehr oder weniger in Erscheinung treten.
22
-
23
- Dieser Seitentyp macht vor allem dann Sinn, wenn Du etwas miteinander vergleichen
24
-
25
- möchtest. Besonders wirksam ist dieser optische Abgleich, wenn Winkel und Ausschnitt
26
-
27
- beider Aufnahmen oder Grafiken exakt übereinstimmen.
28
-
29
-
30
- Typische Anwendungsbeispiele: Damals wie Heute, Status quo und Planung, leer oder voll etc.'
31
- page:
32
- close: Schließen
33
- close_title: Vorher/Nachher-Ansicht verlassen und Text einblenden
34
- hint: Vorher/Nacher Ansicht
35
- start: Vorher/Nachher-Ansicht starten
36
- start_title: Vorher/Nachher-Ansicht starten
13
+ text: ! "# Vorher/Nachher\n\n*Zwei übereinander liegende Bilder mit Schieberegler getrennt*\n \nMit dem Vorher/Nachher-Effekt lassen sich zwei Bilder übereinander legen, die dann per\nSchieberegler mehr oder weniger in Erscheinung treten.\nDieser Seitentyp macht vor allem dann Sinn, wenn Du etwas miteinander vergleichen\nmöchtest. Besonders wirksam ist dieser optische Abgleich, wenn Winkel und Ausschnitt\nbeider Aufnahmen oder Grafiken exakt übereinstimmen.\n\nTypische Anwendungsbeispiele: Damals wie Heute, Status quo und Planung, leer oder voll etc."
37
14
  page_type_category_name: Interaktiv
38
15
  page_type_description: Zwei übereinandergelegte Bilder mit Schieberegler getrennt
39
16
  page_type_name: Vorher/Nachher
@@ -10,22 +10,7 @@ en:
10
10
  help_entries:
11
11
  page_type:
12
12
  menu_item: Before/After
13
- text: ! '# Before/After
14
-
15
-
16
- Two overlapping pictures, separated through a slider
17
-
18
-
19
- With the before and after effect two pictures can be put on top of each other. The pictures can be viewed with a slider. This page type makes sense, if you want to compare something. If the angle and sequence match, this it is particularly effective.
20
-
21
-
22
- Examples of application: now and then, status quo and planned, empty or crowded'
23
- page:
24
- close: Close
25
- close_title: Leave before/after view
26
- hint: Before/after view
27
- start: Start before/after view
28
- start_title: Start before/after view
13
+ text: ! "# Before/After\n\n*Two overlapping pictures, separated through a slider*\n \nWith the before and after effect two pictures can be put on top of each other. The pictures can be viewed with a slider. This page type makes sense, if you want to compare something. If the angle and sequence match, this it is particularly effective.\n\nExamples of application: now and then, status quo and planned, empty or crowded"
29
14
  page_type_category_name: Interactive
30
15
  page_type_description: Two images separated by a slider
31
16
  page_type_name: Before/After
@@ -0,0 +1,5 @@
1
+ module Pageflow
2
+ module BeforeAfter
3
+ VERSION = '0.4.0'.freeze
4
+ end
5
+ end
@@ -1,8 +1,11 @@
1
1
  # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pageflow/before_after/version'
2
5
 
3
6
  Gem::Specification.new do |spec|
4
7
  spec.name = 'pageflow-before-after'
5
- spec.version = '0.3.0'
8
+ spec.version = Pageflow::BeforeAfter::VERSION
6
9
  spec.authors = ['Codevise Solutions']
7
10
  spec.email = ['info@codevise.de']
8
11
  spec.summary = 'Pageflow page type for before/after image slider.'
@@ -14,11 +17,14 @@ Gem::Specification.new do |spec|
14
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
18
  spec.require_paths = ['lib']
16
19
 
17
-
18
- spec.add_dependency 'pageflow', '~> 0.7'
20
+ spec.add_dependency 'pageflow', '~> 0.10'
21
+ spec.add_dependency 'pageflow-public-i18n', '~> 1.0'
19
22
 
20
23
  spec.add_dependency 'jquery-ui-rails', '~> 5.0'
21
24
 
22
25
  # Using translations from rails locales in javascript code.
23
26
  spec.add_dependency 'i18n-js'
27
+
28
+ # Semantic versioning rake tasks
29
+ spec.add_development_dependency 'semmy', '~> 0.2.1'
24
30
  end
metadata CHANGED
@@ -1,57 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-before-after
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2015-10-23 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.7'
26
+ version: '0.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pageflow-public-i18n
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: jquery-ui-rails
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ~>
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
47
  version: '5.0'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ~>
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
54
  version: '5.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: i18n-js
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ! '>='
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ! '>='
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: semmy
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.2.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.2.1
55
83
  description:
56
84
  email:
57
85
  - info@codevise.de
@@ -59,7 +87,7 @@ executables: []
59
87
  extensions: []
60
88
  extra_rdoc_files: []
61
89
  files:
62
- - .gitignore
90
+ - ".gitignore"
63
91
  - CHANGELOG.md
64
92
  - Gemfile
65
93
  - README.md
@@ -68,6 +96,8 @@ files:
68
96
  - app/assets/images/pageflow/before_after/draghandle.png
69
97
  - app/assets/images/pageflow/before_after/lt-small.png
70
98
  - app/assets/images/pageflow/before_after/rt-small.png
99
+ - app/assets/images/pageflow/before_after/themes/default/pictograms/sprite.png
100
+ - app/assets/images/pageflow/before_after/themes/default/pictograms/wide.png
71
101
  - app/assets/images/pageflow/before_after_pictogram.png
72
102
  - app/assets/images/pageflow/before_after_pictogram_small.png
73
103
  - app/assets/images/pageflow/before_after_sprite.png
@@ -77,12 +107,14 @@ files:
77
107
  - app/assets/javascripts/pageflow/before_after/editor/before_after_embedded_view.js
78
108
  - app/assets/javascripts/pageflow/before_after/widget.js
79
109
  - app/assets/stylesheets/pageflow/before_after.css.scss
110
+ - app/assets/stylesheets/pageflow/before_after/themes/default.scss
80
111
  - app/views/pageflow/before_after/page.html.erb
81
112
  - config/locales/de.yml
82
113
  - config/locales/en.yml
83
114
  - lib/pageflow-before-after.rb
84
115
  - lib/pageflow/before_after/engine.rb
85
116
  - lib/pageflow/before_after/page_type.rb
117
+ - lib/pageflow/before_after/version.rb
86
118
  - pageflow-before-after.gemspec
87
119
  homepage: https://github.com/codevise/pageflow-before-after
88
120
  licenses:
@@ -94,17 +126,17 @@ require_paths:
94
126
  - lib
95
127
  required_ruby_version: !ruby/object:Gem::Requirement
96
128
  requirements:
97
- - - ! '>='
129
+ - - ">="
98
130
  - !ruby/object:Gem::Version
99
131
  version: '0'
100
132
  required_rubygems_version: !ruby/object:Gem::Requirement
101
133
  requirements:
102
- - - ! '>='
134
+ - - ">="
103
135
  - !ruby/object:Gem::Version
104
136
  version: '0'
105
137
  requirements: []
106
138
  rubyforge_project:
107
- rubygems_version: 2.4.2
139
+ rubygems_version: 2.2.5
108
140
  signing_key:
109
141
  specification_version: 4
110
142
  summary: Pageflow page type for before/after image slider.