scrivito_space_widget 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d5e5f0a8e86cb098cb823a20e7ce37fb6182cce6
4
+ data.tar.gz: 3f856c64d5fb7be4c74f409fd817bc6fcbcbb95e
5
+ SHA512:
6
+ metadata.gz: 60b03de84232c5b38d55216f87c1c6a1575725911cd0f56ecb9812cb9c57920fc615b03c2ba542e29c06f36931f7d9e7caf750adc89ed4b2a2e93cd4768424a1
7
+ data.tar.gz: d0492ca45633ad46fa173803279069b543a90189400ac96fe74c285046cdcd5aff2f67d8f6fe75e1162501f0345178c15f1d4af10b305200f242bd94b3deec42
data/LICENSE ADDED
@@ -0,0 +1,4 @@
1
+ Copyright (c) 2009 - 2014 Infopark AG (http://www.infopark.com)
2
+
3
+ This software can be used and modified under the LGPL-3.0. Please refer to
4
+ http://www.gnu.org/licenses/lgpl-3.0.html for the license text.
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env rake
2
+
3
+ require 'bundler/gem_tasks'
@@ -0,0 +1,17 @@
1
+ hr.widget {
2
+ border: 0;
3
+ margin: 0;
4
+ clear: both;
5
+ }
6
+
7
+ hr.widget.medium {
8
+ padding: 20px 0;
9
+ }
10
+
11
+ hr.widget.small {
12
+ padding: 10px 0;
13
+ }
14
+
15
+ hr.widget.large {
16
+ padding: 30px 0;
17
+ }
@@ -0,0 +1,7 @@
1
+ class SpaceWidget < Widget
2
+
3
+ def space_size
4
+ self.size || "medium"
5
+ end
6
+
7
+ end
@@ -0,0 +1,2 @@
1
+ <h4>Größe</h4>
2
+ <%= cms_edit_enum(widget, :size) %>
@@ -0,0 +1 @@
1
+ <hr class="widget <%= widget.space_size %>">
@@ -0,0 +1,13 @@
1
+ <div class="editing-dialog-thumbnail">
2
+ <div class="visualization">
3
+ <span class="icon editing-icon-hr"></span>
4
+ </div>
5
+
6
+ <div class="title">
7
+ Space
8
+ </div>
9
+
10
+ <div class="description">
11
+ Creates a space between two widgets.
12
+ </div>
13
+ </div>
@@ -0,0 +1,4 @@
1
+ require "scrivito_space_widget/engine"
2
+
3
+ module ScrivitoSpacing
4
+ end
@@ -0,0 +1,5 @@
1
+ module ScrivitoSpaceWidget
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace ScrivitoSpaceWidget
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module ScrivitoSpaceWidget
2
+ VERSION = "1.1.0"
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :scrivito_space_widget do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,13 @@
1
+ class CreateSpaceWidget < ::Scrivito::Migration
2
+ def up
3
+ Scrivito::ObjClass.create(
4
+ name: 'SpaceWidget',
5
+ type: 'publication',
6
+ is_binary: false,
7
+ title: 'SpaceWidget',
8
+ attributes: [
9
+ {:name=>"size", :type=>"enum", values: ["small","medium","large"]},
10
+ ],
11
+ )
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scrivito_space_widget
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Scrivito
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-07 00:00:00.000000000 Z
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
+ - !ruby/object:Gem::Dependency
28
+ name: scrivito
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: infopark_crm_connector
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Scrivito Widget for a spacing between Widgets.
70
+ email:
71
+ - support@scrivito.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - LICENSE
77
+ - Rakefile
78
+ - app/assets/stylesheets/space_widget/application.css
79
+ - app/models/space_widget.rb
80
+ - app/views/space_widget/details.html.erb
81
+ - app/views/space_widget/show.html.erb
82
+ - app/views/space_widget/thumbnail.html.erb
83
+ - lib/scrivito_space_widget.rb
84
+ - lib/scrivito_space_widget/engine.rb
85
+ - lib/scrivito_space_widget/version.rb
86
+ - lib/tasks/scrivito_space_widget_tasks.rake
87
+ - scrivito/migrate/0_create_space_widget.rb
88
+ homepage: https://www.scrivito.com
89
+ licenses:
90
+ - LGPL-3.0
91
+ metadata: {}
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ requirements: []
107
+ rubyforge_project:
108
+ rubygems_version: 2.3.0
109
+ signing_key:
110
+ specification_version: 4
111
+ summary: Scrivito Widget for a spacing between Widgets.
112
+ test_files: []