Changeset 1057
- Timestamp:
- 11/03/07 17:46:44 (6 years ago)
- Location:
- lang/ruby/ekfloras
- Files:
-
- 3 added
- 3 modified
-
ekfloras.rb (modified) (2 diffs)
-
plugins/paging.rb (modified) (1 diff)
-
site-plugins (added)
-
site-plugins/markdown.rb (added)
-
site-plugins/text_hatena.rb (added)
-
template.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ekfloras/ekfloras.rb
r1056 r1057 140 140 141 141 def list_entries 142 Pathname.glob( @data + "**/*#{@opts[:data_ext]}").map {|f|142 Pathname.glob((@data + "**/*#{@opts[:data_ext]}").to_s).map {|f| 143 143 content = f.readlines 144 144 name = f.relative_path_from(@opts[:data_dir]) … … 196 196 197 197 if $stdout.tty? 198 Ekfloras.new(OpenStruct.new({198 o = OpenStruct.new({ 199 199 #:path_info => "/test/index.html" 200 200 #:path_info => "/2007/" 201 201 #:path_info => "/test01" 202 202 #:path_info => "/intro.html" 203 :path_info => "/index" 204 })).run 203 :path_info => "/index", 204 :request_method => "GET", 205 :script_name => "/ekfloras.cgi", 206 :server_name => "example.com", 207 }) 208 def o.[](key) 209 "" 210 end 211 212 stdout = STDOUT.dup 213 files = Ekfloras.new(o).list_entries.length 214 STDERR.reopen("/dev/null") 215 5.times { 216 STDOUT.reopen("/dev/null") 217 t = Time.now 218 Ekfloras.new(o).run 219 a = Time.now - t 220 STDOUT.reopen(stdout) 221 puts "%d files, %s sec" % [ 222 files, 223 a 224 ] 225 } 226 205 227 else 206 228 begin -
lang/ruby/ekfloras/plugins/paging.rb
r1053 r1057 5 5 6 6 @@entry_per_page = 7 7 8 def priority 9 50 10 end 7 11 8 12 def filter(entries) -
lang/ruby/ekfloras/template.html
r1054 r1057 94 94 95 95 pre { 96 overflow: auto; 96 97 font-size: 90%; 97 98 padding: 1em;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)