scrivito_teaser_widget 0.1.1 → 0.1.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: aac29f86d736936f0379a2e151233892fb77ed84
4
- data.tar.gz: c9d1c02a74ca02dd265c7d7aaa307250f329d7f0
3
+ metadata.gz: a9a4dbed5274bea55d9a8b96f098d4476589d6bb
4
+ data.tar.gz: 42b54e9263c3ec3cda7a0b56d87f0f1ec07b6059
5
5
  SHA512:
6
- metadata.gz: 0e78380df3e3df94a9851c05cd47ec13152b010560dcd3086e323c156d76408252db2ab1619c206068c567739e375f51c6018e6c0ca3d3367af03c9f24317eb7
7
- data.tar.gz: afc637cc794a09e0e58dc768622cb719edc16e38e65458d65471ac0d3df773c343532f957ab38849c4fe18744713e15fed7e830f71074dfcda36382eade67ea1
6
+ metadata.gz: b6984fbaf98e6ae503b42a28a27b7bf215726f87efef1eff34c00a76942dbc6555b9051d10cc7e8e5de33a49e1efc6562d767ac2a9dcb3bc7d778ab5c4619413
7
+ data.tar.gz: 61478204b3dcd6a8f5f80ba05fed8a8cfe78fab296b702d78f0d0878732c14793eccc08fdfc3fe3ec5e8349b841a378dc32138416fd33993f1abcc9f73fd176e
data/README.md CHANGED
@@ -1,3 +1,24 @@
1
1
  # ScrivitoTeaserWidget
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ A Scrivito widget representing a linkable teaser with an adjustable image and text.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'scrivito_teaser_widget'
10
+
11
+ ## Localization
12
+
13
+ The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
14
+
15
+ ```yaml
16
+ en:
17
+ scrivito_teaser_widget:
18
+ thumbnail:
19
+ title: Teaser
20
+ description: Insert a teaser with text and image
21
+ details:
22
+ call_to_action: Destination
23
+ call_to_action_text: Text on button
24
+ ```
data/Rakefile CHANGED
@@ -16,9 +16,5 @@ end
16
16
 
17
17
 
18
18
 
19
- load 'rails/tasks/statistics.rake'
20
-
21
-
22
-
23
19
  Bundler::GemHelper.install_tasks
24
20
 
@@ -1,10 +1,7 @@
1
- <%= scrivito_details_for 'Destination for call to action' do %>
1
+ <%= scrivito_details_for t('scrivito_teaser_widget.details.call_to_action', default: 'Destination') do %>
2
2
  <%= scrivito_tag :div, widget, :call_to_action %>
3
3
  <% end %>
4
4
 
5
- <%= scrivito_details_for 'Text on call to action button' do %>
6
- <div class="alert alert-info">
7
- If empty, title of referenced obj is used.
8
- </div>
5
+ <%= scrivito_details_for t('scrivito_teaser_widget.details.call_to_action_text', default: 'Text on button') do %>
9
6
  <%= scrivito_tag :div, widget, :call_to_action_text %>
10
7
  <% end %>
@@ -1,3 +1,3 @@
1
- <%= scrivito_thumbnail 'Teaser', image_tag("teaser.png") do %>
2
- Insert a teaser with text and image.
1
+ <%= scrivito_thumbnail t('scrivito_teaser_widget.thumbnail.title', default: 'Teaser'), image_tag("teaser.png") do %>
2
+ <%= t('scrivito_teaser_widget.thumbnail.description', default: 'Insert a teaser with text and image') %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTeaserWidget
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_teaser_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-22 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: scrivito
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +24,6 @@ dependencies:
38
24
  - - ">="
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
27
  description: Scrivito Widget for a teaser with text, image and call to action.
56
28
  email:
57
29
  - support@scrivito.com