ramaze 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ module Ramaze
60
60
 
61
61
  def start options = {}
62
62
  starter = caller[0].split(':').first
63
- return unless $0 == starter or options.delete(:force)
63
+ return unless ($0 == starter or options.delete(:force))
64
64
 
65
65
  init_global options
66
66
 
@@ -0,0 +1,39 @@
1
+ # Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
2
+ # All files in this distribution are subject to the terms of the Ruby license.
3
+
4
+ # This is a little hack to enable RDoc to see through gems.
5
+ #
6
+ # Very evil, but until we get a better RDoc this will have to do.
7
+
8
+ require 'rdoc/ri/ri_paths'
9
+ require 'rdoc/usage'
10
+
11
+ def RDoc.usage_no_exit(*args)
12
+ p caller
13
+ main_program_file = caller[1].sub(/:\d+$/, '')
14
+ p main_program_file
15
+ comment = File.open(main_program_file) do |file|
16
+ find_comment(file)
17
+ end
18
+
19
+ comment = comment.gsub(/^\s*#/, '')
20
+
21
+ markup = SM::SimpleMarkup.new
22
+ flow_convertor = SM::ToFlow.new
23
+
24
+ flow = markup.convert(comment, flow_convertor)
25
+
26
+ format = "plain"
27
+
28
+ unless args.empty?
29
+ flow = extract_sections(flow, args)
30
+ end
31
+
32
+ options = RI::Options.instance
33
+ if args = ENV["RI"]
34
+ options.parse(args.split)
35
+ end
36
+ formatter = options.formatter.new(options, "")
37
+ formatter.display_flow(flow)
38
+ end
39
+
@@ -5,7 +5,7 @@ module Ramaze #:nodoc:
5
5
  module Version #:nodoc:
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- TINY = 6
8
+ TINY = 7
9
9
 
10
10
  STRING = [MAJOR, MINOR, TINY].join('.')
11
11
  end
@@ -0,0 +1,17 @@
1
+ # Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
2
+ # All files in this distribution are subject to the terms of the Ruby license.
3
+
4
+ require 'spec/spec_helper'
5
+
6
+ include Ramaze
7
+
8
+ class TCfirstController < Template::Ramaze
9
+ trait :template_root => 'custom/one'
10
+ end
11
+
12
+ class TCsecondController < Template::Ramaze
13
+ trait :template_root => 'custom/two'
14
+ end
15
+
16
+ p TCsecondController.ancestral_trait
17
+ p TCfirstController.ancestral_trait
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: ramaze
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.6
6
+ version: 0.0.7
7
7
  date: 2007-02-08 00:00:00 +09:00
8
8
  summary: Ramaze tries to be a very simple Webframework without the voodoo
9
9
  require_paths:
@@ -35,7 +35,7 @@ post_install_message: |-
35
35
  ramaze --create yourproject
36
36
 
37
37
  * Browse and try the Examples in
38
- /usr/lib/ruby/gems/1.8/gems/ramaze-0.0.6/examples
38
+ /usr/lib/ruby/gems/1.8/gems/ramaze-0.0.7/examples
39
39
 
40
40
  ============================================================
41
41
  authors:
@@ -85,6 +85,8 @@ files:
85
85
  - bin/ramaze
86
86
  - doc/COPYING.ja
87
87
  - doc/allison
88
+ - doc/changes.txt
89
+ - doc/changes.xml
88
90
  - doc/allison/LICENSE
89
91
  - doc/allison/cache
90
92
  - doc/allison/README
@@ -136,6 +138,7 @@ files:
136
138
  - spec/tc_template_amrita2.rb
137
139
  - spec/tc_template_ramaze.rb
138
140
  - spec/tc_helper_redirect.rb
141
+ - spec/tc_test.rb
139
142
  - spec/tc_tidy.rb
140
143
  - spec/tc_template_liquid.rb
141
144
  - spec/template/haml
@@ -242,6 +245,7 @@ files:
242
245
  - lib/ramaze/adapter/webrick.rb
243
246
  - lib/ramaze/snippets/hash
244
247
  - lib/ramaze/snippets/openstruct
248
+ - lib/ramaze/snippets/rdoc
245
249
  - lib/ramaze/snippets/kernel
246
250
  - lib/ramaze/snippets/object
247
251
  - lib/ramaze/snippets/thread
@@ -249,6 +253,7 @@ files:
249
253
  - lib/ramaze/snippets/symbol
250
254
  - lib/ramaze/snippets/hash/keys_to_sym.rb
251
255
  - lib/ramaze/snippets/openstruct/temp.rb
256
+ - lib/ramaze/snippets/rdoc/usage_no_exit.rb
252
257
  - lib/ramaze/snippets/kernel/constant.rb
253
258
  - lib/ramaze/snippets/kernel/autoreload.rb
254
259
  - lib/ramaze/snippets/kernel/caller_lines.rb