toto 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/toto.rb +5 -1
  3. data/toto.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
data/lib/toto.rb CHANGED
@@ -123,7 +123,7 @@ module Toto
123
123
  include Template
124
124
 
125
125
  def initialize ctx = {}, config = {}, path = "/"
126
- @config, @ctx, @path = config, ctx, path
126
+ @config, @context, @path = config, ctx, path
127
127
  @articles = Site.articles(@config[:ext]).reverse.map do |a|
128
128
  Article.new(File.new(a), @config)
129
129
  end
@@ -146,6 +146,10 @@ module Toto
146
146
  instance_eval File.read("#{Paths[:templates]}/#{page}.builder")
147
147
  end
148
148
  alias :to_atom to_xml
149
+
150
+ def method_missing m, *args, &blk
151
+ @context.respond_to?(m) ? @context.send(m) : super
152
+ end
149
153
  end
150
154
  end
151
155
 
data/toto.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{toto}
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["cloudhead"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead