directory_listing 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sinatra/directory_listing.rb +3 -3
- metadata +42 -46
|
@@ -44,7 +44,7 @@ require 'uri'
|
|
|
44
44
|
#
|
|
45
45
|
# stylesheet # a stylesheet that will be added to the <head> of the generated directory listing
|
|
46
46
|
# readme # an HTML string that will be appended at the footer of the generated directory listing
|
|
47
|
-
# should_list_invisibles # whether the directory listing should include invisibles (dotfiles) -
|
|
47
|
+
# should_list_invisibles # whether the directory listing should include invisibles (dotfiles) - true or false, defaults to false
|
|
48
48
|
# last_modified_format # format for last modified date (http://www.ruby-doc.org/core-2.0/Time.html) - defaults to "%Y-%m-%d %H:%M:%S"
|
|
49
49
|
# filename_truncate_length # (integer) length to truncate file names to - defaults to 40
|
|
50
50
|
#
|
|
@@ -75,7 +75,7 @@ module Sinatra
|
|
|
75
75
|
|
|
76
76
|
def list(o={})
|
|
77
77
|
options = {
|
|
78
|
-
:should_list_invisibles =>
|
|
78
|
+
:should_list_invisibles => false,
|
|
79
79
|
:last_modified_format => "%Y-%m-%d %H:%M:%S",
|
|
80
80
|
:filename_truncate_length => 40,
|
|
81
81
|
:stylesheet => "",
|
|
@@ -151,7 +151,7 @@ module Sinatra
|
|
|
151
151
|
|
|
152
152
|
def wrap(file)
|
|
153
153
|
html = ""
|
|
154
|
-
if $should_list_invisibles ==
|
|
154
|
+
if $should_list_invisibles == true
|
|
155
155
|
html << "\n\t<tr>
|
|
156
156
|
#{self.name(file)}
|
|
157
157
|
#{self.m_time(file)}
|
metadata
CHANGED
|
@@ -1,79 +1,75 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: directory_listing
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.3
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
5
4
|
prerelease:
|
|
5
|
+
version: 0.2.0
|
|
6
6
|
platform: ruby
|
|
7
|
-
authors:
|
|
7
|
+
authors:
|
|
8
8
|
- Richard Myers
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
|
|
13
|
+
date: 2013-07-31 00:00:00 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
15
16
|
name: filesize
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
|
-
requirements:
|
|
19
|
-
- - ! '>='
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.0.2
|
|
22
|
-
type: :runtime
|
|
23
17
|
prerelease: false
|
|
24
|
-
|
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
19
|
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- -
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
20
|
+
requirements:
|
|
21
|
+
- - ">="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
29
23
|
version: 0.0.2
|
|
30
|
-
- !ruby/object:Gem::Dependency
|
|
31
|
-
name: truncate
|
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
|
-
requirements:
|
|
35
|
-
- - ! '>='
|
|
36
|
-
- !ruby/object:Gem::Version
|
|
37
|
-
version: 0.0.4
|
|
38
24
|
type: :runtime
|
|
25
|
+
version_requirements: *id001
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: truncate
|
|
39
28
|
prerelease: false
|
|
40
|
-
|
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
41
30
|
none: false
|
|
42
|
-
requirements:
|
|
43
|
-
- -
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
45
34
|
version: 0.0.4
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
type: :runtime
|
|
36
|
+
version_requirements: *id002
|
|
37
|
+
description: A Sinatra extension for generating easy, CSS-styled, Apache-like directory listings.
|
|
48
38
|
email: rick.myers@me.com
|
|
49
39
|
executables: []
|
|
40
|
+
|
|
50
41
|
extensions: []
|
|
42
|
+
|
|
51
43
|
extra_rdoc_files: []
|
|
52
|
-
|
|
44
|
+
|
|
45
|
+
files:
|
|
53
46
|
- lib/sinatra/directory_listing.rb
|
|
54
47
|
homepage: https://rubygems.org/gems/directory_listing
|
|
55
|
-
licenses:
|
|
48
|
+
licenses:
|
|
56
49
|
- WTFPL
|
|
57
50
|
post_install_message:
|
|
58
51
|
rdoc_options: []
|
|
59
|
-
|
|
52
|
+
|
|
53
|
+
require_paths:
|
|
60
54
|
- lib
|
|
61
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
56
|
none: false
|
|
63
|
-
requirements:
|
|
64
|
-
- -
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
66
|
-
version:
|
|
67
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: "0"
|
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
62
|
none: false
|
|
69
|
-
requirements:
|
|
70
|
-
- -
|
|
71
|
-
- !ruby/object:Gem::Version
|
|
72
|
-
version:
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: "0"
|
|
73
67
|
requirements: []
|
|
68
|
+
|
|
74
69
|
rubyforge_project:
|
|
75
|
-
rubygems_version: 1.8.
|
|
70
|
+
rubygems_version: 1.8.23
|
|
76
71
|
signing_key:
|
|
77
72
|
specification_version: 3
|
|
78
73
|
summary: Easy, CSS-styled, Apache-like directory listings for Sinatra.
|
|
79
74
|
test_files: []
|
|
75
|
+
|