gallerby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/gallerby.gemspec +3 -3
- data/lib/gallerby.rb +3 -3
- metadata +4 -4
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
gem.summary = %Q{Think about a webserver directory-listing for pictures.}
|
9
9
|
gem.description = %Q{Think about a dead-simple static gallery generator, with nothing except pictures, thumbnails, previews. A kind of server directory listing for pictures. Enter Gallerby!}
|
10
10
|
gem.email = "wk@heldscalla.org"
|
11
|
-
gem.homepage = "http://github.com/
|
11
|
+
gem.homepage = "http://wainekerr.github.com/gallerby"
|
12
12
|
gem.authors = ["Waine Kerr"]
|
13
13
|
gem.executables = %w(gallerby)
|
14
14
|
gem.add_dependency "mini_magick", ">= 2.0.0"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/gallerby.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{gallerby}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Waine Kerr"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-18}
|
13
13
|
s.default_executable = %q{gallerby}
|
14
14
|
s.description = %q{Think about a dead-simple static gallery generator, with nothing except pictures, thumbnails, previews. A kind of server directory listing for pictures. Enter Gallerby!}
|
15
15
|
s.email = %q{wk@heldscalla.org}
|
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
"test/helper.rb",
|
48
48
|
"test/test_gallerby.rb"
|
49
49
|
]
|
50
|
-
s.homepage = %q{http://github.com/
|
50
|
+
s.homepage = %q{http://wainekerr.github.com/gallerby}
|
51
51
|
s.rdoc_options = ["--charset=UTF-8"]
|
52
52
|
s.require_paths = ["lib"]
|
53
53
|
s.rubygems_version = %q{1.3.6}
|
data/lib/gallerby.rb
CHANGED
@@ -43,9 +43,9 @@ class Gallerby
|
|
43
43
|
page_id = 0
|
44
44
|
pict_count = 0
|
45
45
|
page_pictures = []
|
46
|
-
|
46
|
+
|
47
47
|
@pictures.each do |picture|
|
48
|
-
if pict_count == @per_page
|
48
|
+
if pict_count == @per_page || pict_count == @pictures.size-1
|
49
49
|
@pages[page_id] = page_pictures
|
50
50
|
page_pictures = []
|
51
51
|
page_id += 1
|
@@ -54,7 +54,7 @@ class Gallerby
|
|
54
54
|
page_pictures << picture
|
55
55
|
pict_count += 1
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
@pages
|
59
59
|
end
|
60
60
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Waine Kerr
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-09-18 00:00:00 +02:00
|
18
18
|
default_executable: gallerby
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -107,7 +107,7 @@ files:
|
|
107
107
|
- test/helper.rb
|
108
108
|
- test/test_gallerby.rb
|
109
109
|
has_rdoc: true
|
110
|
-
homepage: http://github.com/
|
110
|
+
homepage: http://wainekerr.github.com/gallerby
|
111
111
|
licenses: []
|
112
112
|
|
113
113
|
post_install_message:
|