directory_listing 0.4.1 → 0.4.2
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.
- checksums.yaml +7 -0
- data/README.md +8 -4
- data/directory_listing.gemspec +2 -2
- data/lib/sinatra/directory_listing/version.rb +1 -1
- metadata +20 -34
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 2e6453c00354bc3ac690fdcd6339f5969e534be1
|
|
4
|
+
data.tar.gz: e108ab0cf748296609245dbe0abe5abebbec2f9d
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: db1c7bc1b1d965aa46039799cf22e57923693a7fbd574903eb3546a1402b08d74e7ae1d45649235cc4d1252c20c848e1ade7955971ffb9b95f2959e9557838ea
|
|
7
|
+
data.tar.gz: 806f6f7e3fa8758c693190521f898d5525d954d6fcc75c2b585d660a0a19474d77adaaa2e07afd3da0ce4f2fbea579565874480bf395037de20abd4ffaeea57d
|
data/README.md
CHANGED
|
@@ -65,17 +65,17 @@ list({
|
|
|
65
65
|
|
|
66
66
|
Available options:
|
|
67
67
|
|
|
68
|
-
- ```stylesheet``` - a stylesheet
|
|
68
|
+
- ```stylesheet``` - a stylesheet to style the generated directory listing with, relative to your ```public_folder```
|
|
69
69
|
- ```readme``` - an HTML string that will be appended at the footer of the generated directory listing
|
|
70
70
|
- ```should_list_invisibles``` - whether the directory listing should include invisibles (dotfiles) - true or false, defaults to false
|
|
71
71
|
- ```last_modified_format``` - [format](http://www.ruby-doc.org/core-2.0/Time.html) for last modified date - defaults to ```%Y-%m-%d %H:%M:%S```
|
|
72
|
-
- ```filename_truncate_length``` -
|
|
72
|
+
- ```filename_truncate_length``` - length to truncate file names to - integer, defaults to 40
|
|
73
73
|
|
|
74
74
|
### Styling
|
|
75
75
|
|
|
76
76
|
It's pretty easy to figure out how to style ```directory_listing``` by looking at the source, but here are some gotchas:
|
|
77
77
|
|
|
78
|
-
- Every
|
|
78
|
+
- Every file is a ```<td>``` element in a table. Directories will have a class of ```dir``` and regular files will have a class of ```file```.
|
|
79
79
|
- You can style the "File" column with this CSS:
|
|
80
80
|
|
|
81
81
|
```css
|
|
@@ -100,7 +100,7 @@ table tr > td:first-child + td + td {
|
|
|
100
100
|
}
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
- The navigation bar is in a div called
|
|
103
|
+
- The navigation bar is in a div called ```nav``` and consists of links embedded in ```h1``` tags:
|
|
104
104
|
|
|
105
105
|
```css
|
|
106
106
|
div.nav h1, div.nav a {
|
|
@@ -115,6 +115,10 @@ The best way to report a bug or feature request is to [open an issue on GitHub](
|
|
|
115
115
|
|
|
116
116
|
Additionally, I'd love to hear your feedback about ```directory_listing``` through [Twitter](http://twitter.com/movesmyers) or [email](mailto:rick.myers@me.com).
|
|
117
117
|
|
|
118
|
+
### Changelog
|
|
119
|
+
|
|
120
|
+
Here are the latest [commits](https://github.com/movesmyers/directory_listing/commits/master).
|
|
121
|
+
|
|
118
122
|
### Contributing
|
|
119
123
|
|
|
120
124
|
1. Fork it
|
data/directory_listing.gemspec
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
require
|
|
1
|
+
$:.push File.expand_path("../lib/sinatra", __FILE__)
|
|
2
|
+
require "directory_listing/version"
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'directory_listing'
|
metadata
CHANGED
|
@@ -1,110 +1,97 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: directory_listing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.4.2
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Richard Myers
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: filesize
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - ">="
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: 0.0.2
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - ">="
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: 0.0.2
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: truncate
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
|
-
- -
|
|
31
|
+
- - ">="
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
37
33
|
version: 0.0.4
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
|
-
- -
|
|
38
|
+
- - ">="
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
45
40
|
version: 0.0.4
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
|
47
42
|
name: rake
|
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
44
|
requirements:
|
|
51
|
-
- -
|
|
45
|
+
- - ">="
|
|
52
46
|
- !ruby/object:Gem::Version
|
|
53
47
|
version: '0'
|
|
54
48
|
type: :development
|
|
55
49
|
prerelease: false
|
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
51
|
requirements:
|
|
59
|
-
- -
|
|
52
|
+
- - ">="
|
|
60
53
|
- !ruby/object:Gem::Version
|
|
61
54
|
version: '0'
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
|
63
56
|
name: bundler
|
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
none: false
|
|
66
58
|
requirements:
|
|
67
|
-
- - ~>
|
|
59
|
+
- - "~>"
|
|
68
60
|
- !ruby/object:Gem::Version
|
|
69
61
|
version: '1.3'
|
|
70
62
|
type: :development
|
|
71
63
|
prerelease: false
|
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
65
|
requirements:
|
|
75
|
-
- - ~>
|
|
66
|
+
- - "~>"
|
|
76
67
|
- !ruby/object:Gem::Version
|
|
77
68
|
version: '1.3'
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
|
79
70
|
name: rack-test
|
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
|
81
|
-
none: false
|
|
82
72
|
requirements:
|
|
83
|
-
- - ~>
|
|
73
|
+
- - "~>"
|
|
84
74
|
- !ruby/object:Gem::Version
|
|
85
75
|
version: 0.6.2
|
|
86
76
|
type: :development
|
|
87
77
|
prerelease: false
|
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
89
|
-
none: false
|
|
90
79
|
requirements:
|
|
91
|
-
- - ~>
|
|
80
|
+
- - "~>"
|
|
92
81
|
- !ruby/object:Gem::Version
|
|
93
82
|
version: 0.6.2
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
|
95
84
|
name: yard
|
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
|
97
|
-
none: false
|
|
98
86
|
requirements:
|
|
99
|
-
- - ~>
|
|
87
|
+
- - "~>"
|
|
100
88
|
- !ruby/object:Gem::Version
|
|
101
89
|
version: 0.8.7
|
|
102
90
|
type: :development
|
|
103
91
|
prerelease: false
|
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
-
none: false
|
|
106
93
|
requirements:
|
|
107
|
-
- - ~>
|
|
94
|
+
- - "~>"
|
|
108
95
|
- !ruby/object:Gem::Version
|
|
109
96
|
version: 0.8.7
|
|
110
97
|
description: A Sinatra extension for generating easy, CSS-styled, Apache-like directory
|
|
@@ -114,7 +101,7 @@ executables: []
|
|
|
114
101
|
extensions: []
|
|
115
102
|
extra_rdoc_files: []
|
|
116
103
|
files:
|
|
117
|
-
- .gitignore
|
|
104
|
+
- ".gitignore"
|
|
118
105
|
- Gemfile
|
|
119
106
|
- Gemfile.lock
|
|
120
107
|
- LICENSE
|
|
@@ -142,27 +129,26 @@ files:
|
|
|
142
129
|
homepage: https://rubygems.org/gems/directory_listing
|
|
143
130
|
licenses:
|
|
144
131
|
- WTFPL
|
|
132
|
+
metadata: {}
|
|
145
133
|
post_install_message:
|
|
146
134
|
rdoc_options: []
|
|
147
135
|
require_paths:
|
|
148
136
|
- lib
|
|
149
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
|
-
none: false
|
|
151
138
|
requirements:
|
|
152
|
-
- -
|
|
139
|
+
- - ">="
|
|
153
140
|
- !ruby/object:Gem::Version
|
|
154
141
|
version: '0'
|
|
155
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
|
-
none: false
|
|
157
143
|
requirements:
|
|
158
|
-
- -
|
|
144
|
+
- - ">="
|
|
159
145
|
- !ruby/object:Gem::Version
|
|
160
146
|
version: '0'
|
|
161
147
|
requirements: []
|
|
162
148
|
rubyforge_project:
|
|
163
|
-
rubygems_version:
|
|
149
|
+
rubygems_version: 2.2.0
|
|
164
150
|
signing_key:
|
|
165
|
-
specification_version:
|
|
151
|
+
specification_version: 4
|
|
166
152
|
summary: Easy, CSS-styled, Apache-like directory listings for Sinatra.
|
|
167
153
|
test_files:
|
|
168
154
|
- test/public/1234.txt
|