gitdoc 3.6.2 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/gitdoc.rb +8 -0
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.6.2
1
+ 3.7.0
data/gitdoc.rb CHANGED
@@ -157,6 +157,14 @@ get '*.html' do |name|
157
157
  html File.read(file)
158
158
  end
159
159
 
160
+ get '*._plain' do |name|
161
+ file = settings.dir + '/' + name
162
+ pass unless File.exist? file
163
+ content_type :text
164
+ # html File.read(file)
165
+ File.read(file)
166
+ end
167
+
160
168
  # If the path matches any file in the directory then send that down
161
169
  get '*.*' do |name,ext|
162
170
  file = File.join(settings.dir + '/' + name + '.' + ext)
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
- - 6
9
- - 2
10
- version: 3.6.2
8
+ - 7
9
+ - 0
10
+ version: 3.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Myles Byrne
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-11 00:00:00 +11:00
18
+ date: 2011-02-20 00:00:00 +11:00
19
19
  default_executable: gitdoc
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency