galgen 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/galgen +5 -5
  2. metadata +3 -3
data/bin/galgen CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: utf-8
2
3
 
3
4
  require 'rubygems'
4
5
  require 'fileutils'
@@ -122,10 +123,10 @@ class GalGen
122
123
  EOF
123
124
  end
124
125
  end
125
- @image_tmpl = Tilt::ERBTemplate.new(@rootdir + "/image.erb")
126
- @gallery_tmpl = Tilt::ERBTemplate.new(@rootdir + "/gallery.erb")
127
- @image_p_tmpl = Tilt::ERBTemplate.new(@rootdir + "/image_preview.erb")
128
- @gallery_p_tmpl = Tilt::ERBTemplate.new(@rootdir + "/gallery_preview.erb")
126
+ @image_tmpl = Tilt::ERBTemplate.new {File.read(@rootdir + "/image.erb")}
127
+ @gallery_tmpl = Tilt::ERBTemplate.new {File.read(@rootdir + "/gallery.erb")}
128
+ @image_p_tmpl = Tilt::ERBTemplate.new {File.read(@rootdir + "/image_preview.erb")}
129
+ @gallery_p_tmpl = Tilt::ERBTemplate.new {File.read(@rootdir + "/gallery_preview.erb")}
129
130
  end
130
131
 
131
132
  attr_reader :config
@@ -292,7 +293,6 @@ class GalGen
292
293
  feed.title("Updates to '#{gallery_title}'")
293
294
  feed.link("href" => ([config[:http_base]] + gallery_path).join("/"))
294
295
  child_images.sort(&sorting_func).last(config[:atom_items]).each do |c_img|
295
- p
296
296
  feed.entry do |entry|
297
297
  entry.title(c_img[:image_title])
298
298
  entry.updated(c_img[:modified].strftime("%FT%T%z"))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: galgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-22 00:00:00.000000000 Z
12
+ date: 2013-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 1.8.24
92
+ rubygems_version: 1.8.25
93
93
  signing_key:
94
94
  specification_version: 3
95
95
  summary: Gallery Generator