galleruby 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/Gemfile +4 -0
- data/README.md +124 -0
- data/Rakefile +2 -0
- data/bin/gallerubify +163 -0
- data/bin/make_titles +71 -0
- data/config.yml.dist +4 -0
- data/galleruby.gemspec +25 -0
- data/lib/galleruby.rb +6 -0
- data/lib/galleruby/album.rb +246 -0
- data/lib/galleruby/template.rb +108 -0
- data/lib/galleruby/utilities.rb +44 -0
- data/lib/galleruby/version.rb +3 -0
- data/static/close.png +0 -0
- data/static/galleruby.css +73 -0
- data/static/galleruby.js +103 -0
- data/static/jquery-1.5.min.js +16 -0
- data/static/next.png +0 -0
- data/static/previous.png +0 -0
- data/templates/album.haml +62 -0
- data/templates/album.per_date.haml +6 -0
- data/templates/album.per_date.per_image.haml +4 -0
- data/templates/footer.haml +10 -0
- data/templates/header.haml +10 -0
- data/templates/index.haml +18 -0
- data/templates/index.per_year.haml +5 -0
- data/templates/index.per_year.per_album.haml +4 -0
- metadata +105 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
%meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=UTF-8'}
|
2
|
+
|
3
|
+
:javascript
|
4
|
+
var thumb_dimensions = #{config[:thumb].inspect};
|
5
|
+
var medium_dimensions = #{config[:medium].inspect};
|
6
|
+
var large_dimensions = #{config[:large].inspect};
|
7
|
+
|
8
|
+
%script{:type => 'text/javascript', :src => base_relative("static/jquery-1.5.min.js")}
|
9
|
+
%script{:type => 'text/javascript', :src => base_relative("static/galleruby.js")}
|
10
|
+
%link{:type => "text/css", :rel => "stylesheet", :href => base_relative("static/galleruby.css")}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
%html
|
2
|
+
%head
|
3
|
+
= include_template 'header'
|
4
|
+
|
5
|
+
%title
|
6
|
+
= config[:title]
|
7
|
+
|
8
|
+
%body.album_index
|
9
|
+
%h1
|
10
|
+
= config[:title]
|
11
|
+
|
12
|
+
#albums
|
13
|
+
= include_for_each 'index.per_year', albums_by_year
|
14
|
+
|
15
|
+
%hr
|
16
|
+
|
17
|
+
#footer
|
18
|
+
= include_template 'footer'
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: galleruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: "0.1"
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- "J\xC3\xB8rgen P. Tjern\xC3\xB8"
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-04-05 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: haml
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rmagick
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
description: |-
|
38
|
+
Galleruby allows you to automatically generate a static HTML gallery from a set of directories containing photos - each directory an album.
|
39
|
+
It is indended to allow you to publish this on static file hosts like Amazon S3.
|
40
|
+
email:
|
41
|
+
- jorgenpt@gmail.com
|
42
|
+
executables:
|
43
|
+
- gallerubify
|
44
|
+
- make_titles
|
45
|
+
extensions: []
|
46
|
+
|
47
|
+
extra_rdoc_files: []
|
48
|
+
|
49
|
+
files:
|
50
|
+
- .gitignore
|
51
|
+
- Gemfile
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- bin/gallerubify
|
55
|
+
- bin/make_titles
|
56
|
+
- config.yml.dist
|
57
|
+
- galleruby.gemspec
|
58
|
+
- lib/galleruby.rb
|
59
|
+
- lib/galleruby/album.rb
|
60
|
+
- lib/galleruby/template.rb
|
61
|
+
- lib/galleruby/utilities.rb
|
62
|
+
- lib/galleruby/version.rb
|
63
|
+
- static/close.png
|
64
|
+
- static/galleruby.css
|
65
|
+
- static/galleruby.js
|
66
|
+
- static/jquery-1.5.min.js
|
67
|
+
- static/next.png
|
68
|
+
- static/previous.png
|
69
|
+
- templates/album.haml
|
70
|
+
- templates/album.per_date.haml
|
71
|
+
- templates/album.per_date.per_image.haml
|
72
|
+
- templates/footer.haml
|
73
|
+
- templates/header.haml
|
74
|
+
- templates/index.haml
|
75
|
+
- templates/index.per_year.haml
|
76
|
+
- templates/index.per_year.per_album.haml
|
77
|
+
homepage: https://github.com/jorgenpt/galleruby
|
78
|
+
licenses: []
|
79
|
+
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: "0"
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: "0"
|
97
|
+
requirements: []
|
98
|
+
|
99
|
+
rubyforge_project: galleruby
|
100
|
+
rubygems_version: 1.7.2
|
101
|
+
signing_key:
|
102
|
+
specification_version: 3
|
103
|
+
summary: A tool to automatically generate a static HTML gallery
|
104
|
+
test_files: []
|
105
|
+
|