gallerby 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ // script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
2
+
3
+ // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining
6
+ // a copy of this software and associated documentation files (the
7
+ // "Software"), to deal in the Software without restriction, including
8
+ // without limitation the rights to use, copy, modify, merge, publish,
9
+ // distribute, sublicense, and/or sell copies of the Software, and to
10
+ // permit persons to whom the Software is furnished to do so, subject to
11
+ // the following conditions:
12
+ //
13
+ // The above copyright notice and this permission notice shall be
14
+ // included in all copies or substantial portions of the Software.
15
+ //
16
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ //
24
+ // For details, see the script.aculo.us web site: http://script.aculo.us/
25
+
26
+ var Scriptaculous = {
27
+ Version: '1.8.1',
28
+ require: function(libraryName) {
29
+ // inserting via DOM fails in Safari 2.0, so brute force approach
30
+ document.write('<script type="text/javascript" src="'+libraryName+'"><\/script>');
31
+ },
32
+ REQUIRED_PROTOTYPE: '1.6.0',
33
+ load: function() {
34
+ function convertVersionString(versionString){
35
+ var r = versionString.split('.');
36
+ return parseInt(r[0])*100000 + parseInt(r[1])*1000 + parseInt(r[2]);
37
+ }
38
+
39
+ if((typeof Prototype=='undefined') ||
40
+ (typeof Element == 'undefined') ||
41
+ (typeof Element.Methods=='undefined') ||
42
+ (convertVersionString(Prototype.Version) <
43
+ convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))
44
+ throw("script.aculo.us requires the Prototype JavaScript framework >= " +
45
+ Scriptaculous.REQUIRED_PROTOTYPE);
46
+
47
+ $A(document.getElementsByTagName("script")).findAll( function(s) {
48
+ return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/))
49
+ }).each( function(s) {
50
+ var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,'');
51
+ var includes = s.src.match(/\?.*load=([a-z,]*)/);
52
+ (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
53
+ function(include) { Scriptaculous.require(path+include+'.js') });
54
+ });
55
+ }
56
+ }
57
+
58
+ Scriptaculous.load();
@@ -0,0 +1,26 @@
1
+ !!!
2
+ %html
3
+ %body
4
+ %title!= "#{gallery.name ? gallery.name : gallery.directory} (#{pid+1}/#{gallery.pages.size}) &mdash; gallerby"
5
+ %link{:rel=>'stylesheet', :href=>'assets/css/gallerby.css'}
6
+ %link{:rel=>'stylesheet', :href=>'assets/css/lightbox.css'}
7
+ %script{:type=>'text/javascript', :src=>'assets/js/prototype.js'}
8
+ %script{:type=>'text/javascript', :src=>'assets/js/scriptaculous.js?load=effects,builder'}
9
+ %script{:type=>'text/javascript', :src=>'assets/js/lightbox.js'}
10
+ %body
11
+ %header
12
+ %nav!= gallery.navigation_links(pid)
13
+ %h1= gallery.name ? gallery.name : gallery.directory
14
+ - if gallery.description
15
+ %h2= gallery.description
16
+ %article
17
+ - pictures.each do |picture|
18
+ %section
19
+ %a{:href=>"previews/#{picture}", :title => picture, :alt => picture, :rel => "lightbox[gallerby]"}
20
+ %img{:src=>"thumbnails/#{picture}", :title => picture, :alt => picture}
21
+ %nav!= gallery.navigation_links(pid)
22
+ %footer
23
+ .generated
24
+ generated by
25
+ %a{:href=>'http://wainekerr.github.com/gallerby/'} gallerby
26
+ = Time.now.strftime('%d %b %Y %H:%M')
@@ -0,0 +1,59 @@
1
+ body
2
+ :margin 0
3
+ :padding 0
4
+ :font-family "Helvetica Neue", Arial, Helvetica, sans-serif
5
+
6
+ a
7
+ :color #d8c7b3
8
+
9
+ header
10
+ :padding 10px
11
+ :border-bottom 1px solid #d8c7b3
12
+ h1
13
+ :padding 0
14
+ :margin 0
15
+ h2
16
+ :margin 0
17
+ :padding 0
18
+ :padding-top 5px
19
+ :font-family "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif
20
+ :font-style italic
21
+ :font-size 90%
22
+ :font-weight normal
23
+ nav
24
+ :text-align right
25
+ :float right
26
+ :line-height 60px
27
+ :vertical-align middle
28
+
29
+ article
30
+ :padding 10px
31
+ :text-align center
32
+ section
33
+ :display inline
34
+ :padding 3px
35
+ a img
36
+ :border none
37
+
38
+ nav
39
+ :text-align center
40
+ :color #848484
41
+ a
42
+ :color #848484
43
+ :padding-right 2px
44
+ :padding-left 2px
45
+ a.selected
46
+ :font-weight bold
47
+ :color #000
48
+
49
+ footer
50
+ :margin-top 10px
51
+ :border-top 1px solid #d8c7b3
52
+ :padding 10px
53
+ :color #d8c7b3
54
+ :font-weight strong
55
+ .generated
56
+ :float right
57
+ :text-align right
58
+ :font-weight normal
59
+ :font-size 70%
data/test/helper.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'gallerby'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestGallerby < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "but I don't really think i'll write test for gallerby someday. But hey, who knows."
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gallerby
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Waine Kerr
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-08-22 00:00:00 +02:00
18
+ default_executable: gallerby
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: mini_magick
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 0
30
+ - 0
31
+ version: 2.0.0
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: haml
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 3
43
+ - 0
44
+ - 17
45
+ version: 3.0.17
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: thoughtbot-shoulda
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ type: :development
59
+ version_requirements: *id003
60
+ - !ruby/object:Gem::Dependency
61
+ name: yard
62
+ prerelease: false
63
+ requirement: &id004 !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ type: :development
71
+ version_requirements: *id004
72
+ description: Think about a dead-simple static gallery generator, with nothing except pictures, thumbnails, previews. A kind of server directory listing for pictures. Enter Gallerby!
73
+ email: wk@heldscalla.org
74
+ executables:
75
+ - gallerby
76
+ extensions: []
77
+
78
+ extra_rdoc_files:
79
+ - LICENSE
80
+ - README.md
81
+ files:
82
+ - .document
83
+ - .gitignore
84
+ - LICENSE
85
+ - README.md
86
+ - Rakefile
87
+ - VERSION
88
+ - bin/gallerby
89
+ - gallerby.gemspec
90
+ - lib/gallerby.rb
91
+ - lib/shared/assets/css/lightbox.css
92
+ - lib/shared/assets/img/bullet.gif
93
+ - lib/shared/assets/img/close.gif
94
+ - lib/shared/assets/img/closelabel.gif
95
+ - lib/shared/assets/img/donate-button.gif
96
+ - lib/shared/assets/img/download-icon.gif
97
+ - lib/shared/assets/img/loading.gif
98
+ - lib/shared/assets/img/nextlabel.gif
99
+ - lib/shared/assets/img/prevlabel.gif
100
+ - lib/shared/assets/js/builder.js
101
+ - lib/shared/assets/js/effects.js
102
+ - lib/shared/assets/js/lightbox.js
103
+ - lib/shared/assets/js/prototype.js
104
+ - lib/shared/assets/js/scriptaculous.js
105
+ - lib/shared/templates/gallerby.haml
106
+ - lib/shared/templates/gallerby.sass
107
+ - test/helper.rb
108
+ - test/test_gallerby.rb
109
+ has_rdoc: true
110
+ homepage: http://github.com/wainekerr/gallerby
111
+ licenses: []
112
+
113
+ post_install_message:
114
+ rdoc_options:
115
+ - --charset=UTF-8
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ segments:
123
+ - 0
124
+ version: "0"
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ segments:
130
+ - 0
131
+ version: "0"
132
+ requirements: []
133
+
134
+ rubyforge_project:
135
+ rubygems_version: 1.3.6
136
+ signing_key:
137
+ specification_version: 3
138
+ summary: Think about a webserver directory-listing for pictures.
139
+ test_files:
140
+ - test/helper.rb
141
+ - test/test_gallerby.rb