ceilingfish-toto 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ceilingfish-toto}
8
- s.version = "0.3.7"
8
+ s.version = "0.3.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["cloudhead", "ceilingfish"]
12
- s.date = %q{2010-02-15}
12
+ s.date = %q{2010-02-16}
13
13
  s.description = %q{the tiniest blog-engine in Oz.}
14
14
  s.email = %q{ceilingfish@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "ceilingfish-toto.gemspec",
27
+ "lib/ceilingfish-toto.rb",
27
28
  "lib/ext/ext.rb",
28
29
  "lib/toto.rb",
29
30
  "test/articles/1900-05-17-the-wonderful-wizard-of-oz.txt",
@@ -0,0 +1 @@
1
+ require 'toto'
data/lib/toto.rb CHANGED
@@ -83,6 +83,15 @@ module Toto
83
83
  def articles ext = self[:ext]
84
84
  Dir["#{Paths[:articles]}/*.#{ext}"]
85
85
  end
86
+
87
+ def root
88
+ self[:root]
89
+ end
90
+
91
+ def import(file)
92
+ file = "#{Paths[:templates]}/#{file}" unless file =~ /^#{Paths[:templates]}/
93
+ ERB.new(File.read(file)).result(binding)
94
+ end
86
95
  end
87
96
 
88
97
  class Site
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ceilingfish-toto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-15 00:00:00 +00:00
13
+ date: 2010-02-16 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -70,6 +70,7 @@ files:
70
70
  - Rakefile
71
71
  - VERSION
72
72
  - ceilingfish-toto.gemspec
73
+ - lib/ceilingfish-toto.rb
73
74
  - lib/ext/ext.rb
74
75
  - lib/toto.rb
75
76
  - test/articles/1900-05-17-the-wonderful-wizard-of-oz.txt