utopia-tags-gallery 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/README.md +32 -6
- data/lib/utopia/tags/gallery/version.rb +1 -1
- data/utopia-tags-gallery.gemspec +3 -3
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NGE0MGU4YTRhZjc3NThkMzU3YTk4Mzg1YTBhYzMzMzUzZjA0NGM1Y2YyODhl
|
10
|
-
MGEzNzNiZGVjYTY4M2IwNjMyYzkzNmQwNDlhYjk4M2QzM2E2NTc4NDk3OWFh
|
11
|
-
NjVkNDgxYjFlYWQ3MDVkMTczMjhiMzczODM4YmNjNzE0MzZjOWM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MDYxN2ZkMzMxNTI4MjhjZGIyMTNmZjgxMjg1NGQ2NzgzMjM4OWYzN2ZlODVm
|
14
|
-
Zjg2MGIwMDkxZjgyMTNkOTA2YmIyN2MxZjA4ZTFhZjAzMDRkMjUxZGYyN2Qx
|
15
|
-
YmJkNTU0NGIzMzc4ZjIzMGM2NzZjNGRlZWIyYmEzNjExZDU0ZDU=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 73bfa9a36889bb27062319942c886cef0019c3b9
|
4
|
+
data.tar.gz: 22e8e153b031ed475010f3e72bb60cc1a0e9925f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fdfdca6e562fc9c2c583752ca3a41e9d74287940c750ca5f1b1f32042b5005dfae86de084341a82cd0239664011dc63e418798c22749803394319098a5ab28eb
|
7
|
+
data.tar.gz: 723904e53710ff9f992d6d0d17752a330f3dd6a8f0e99fe91af62e5e4b680462e016584a06af8811021462cd1cf9d2b29e9635c0cf09fa9c1b2ed136c8fac8a2
|
data/README.md
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
# Utopia::Tags::Gallery
|
2
2
|
|
3
|
-
Utopia is a website generation framework which provides a robust set of tools
|
4
|
-
to build highly complex dynamic websites. It uses the filesystem heavily for
|
5
|
-
content and provides frameworks for interacting with files and directories as
|
6
|
-
structure representing the website.
|
3
|
+
[Utopia](http://www.codeotaku.com/projects/utopia) is a website generation framework which provides a robust set of tools to build highly complex dynamic websites. It uses the filesystem heavily for content and provides frameworks for interacting with files and directories as structure representing the website.
|
7
4
|
|
8
|
-
This package includes a useful gallery
|
9
|
-
displaying thumbnails of images, documents and movies.
|
5
|
+
This package includes a useful `<gallery>` tag which can be used for displaying thumbnails of images, documents and movies.
|
10
6
|
|
11
7
|
## Installation
|
12
8
|
|
@@ -18,6 +14,36 @@ And then execute:
|
|
18
14
|
|
19
15
|
$ bundle
|
20
16
|
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
Require the tag in your `config.ru`:
|
20
|
+
|
21
|
+
require 'utopia/tags/gallery'
|
22
|
+
|
23
|
+
In your `xnode`:
|
24
|
+
|
25
|
+
<gallery path="#{relative_path_to_images}" tag="#{name_of_tag_per_item}" process="#{process_to_apply_per_item}" />
|
26
|
+
|
27
|
+
For example, if you have `_circle.xnode`:
|
28
|
+
|
29
|
+
<div class="circle thumbnail">
|
30
|
+
<a class="thumbnail" href="#{attributes["src"].original}" title="#{attributes["alt"]}">
|
31
|
+
<img src="#{attributes["src"].circle}" alt="#{attributes["alt"]}" />
|
32
|
+
</a>
|
33
|
+
<div class="caption">#{attributes["alt"]}</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
Then you can create a gallery:
|
37
|
+
|
38
|
+
<page>
|
39
|
+
<gallery path="_images" tag="circle" process="circle" />
|
40
|
+
</page>
|
41
|
+
|
42
|
+
If you want to add captions, you can create `_images/gallery.yaml`:
|
43
|
+
|
44
|
+
bear.jpg:
|
45
|
+
caption: "Brown bear is angry!"
|
46
|
+
|
21
47
|
## Contributing
|
22
48
|
|
23
49
|
1. Fork it
|
data/utopia-tags-gallery.gemspec
CHANGED
@@ -14,10 +14,10 @@ Gem::Specification.new do |spec|
|
|
14
14
|
content and provides frameworks for interacting with files and directories as
|
15
15
|
structure representing the website.
|
16
16
|
|
17
|
-
This package includes a useful gallery
|
18
|
-
|
17
|
+
This package includes a useful <gallery> tag which can be used for displaying
|
18
|
+
thumbnails of images, documents and movies.
|
19
19
|
EOF
|
20
|
-
spec.summary = %q{A gallery tag for use with Utopia web framework.}
|
20
|
+
spec.summary = %q{A gallery tag for use with the Utopia web framework.}
|
21
21
|
spec.homepage = ""
|
22
22
|
spec.license = "MIT"
|
23
23
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utopia-tags-gallery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -56,21 +56,21 @@ dependencies:
|
|
56
56
|
name: rmagick
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description: "\t\tUtopia is a website generation framework which provides a robust
|
70
70
|
set of tools\n\t\tto build highly complex dynamic websites. It uses the filesystem
|
71
71
|
heavily for\n\t\tcontent and provides frameworks for interacting with files and
|
72
72
|
directories as\n\t\tstructure representing the website.\n\n\t\tThis package includes
|
73
|
-
a useful gallery
|
73
|
+
a useful <gallery> tag which can be used for displaying\n\t\tthumbnails of images,
|
74
74
|
documents and movies.\n"
|
75
75
|
email:
|
76
76
|
- samuel.williams@oriontransfer.co.nz
|
@@ -97,18 +97,19 @@ require_paths:
|
|
97
97
|
- lib
|
98
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - '>='
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- -
|
105
|
+
- - '>='
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.0.
|
110
|
+
rubygems_version: 2.0.3
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
|
-
summary: A gallery tag for use with Utopia web framework.
|
113
|
+
summary: A gallery tag for use with the Utopia web framework.
|
114
114
|
test_files: []
|
115
|
+
has_rdoc:
|