gollum 2.4.14 → 2.4.15
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/gollum.gemspec +3 -3
- data/lib/gollum.rb +1 -1
- data/lib/gollum/app.rb +7 -3
- metadata +5 -4
data/gollum.gemspec
CHANGED
|
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
|
|
|
5
5
|
s.required_ruby_version = ">= 1.8.7"
|
|
6
6
|
|
|
7
7
|
s.name = 'gollum'
|
|
8
|
-
s.version = '2.4.
|
|
9
|
-
s.date = '2013-06-
|
|
8
|
+
s.version = '2.4.15'
|
|
9
|
+
s.date = '2013-06-18'
|
|
10
10
|
s.rubyforge_project = 'gollum'
|
|
11
11
|
s.license = 'MIT'
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
|
24
24
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
25
25
|
s.extra_rdoc_files = %w[README.md LICENSE]
|
|
26
26
|
|
|
27
|
-
s.add_dependency 'gollum-lib', '~> 1.0.
|
|
27
|
+
s.add_dependency 'gollum-lib', '~> 1.0.3'
|
|
28
28
|
s.add_dependency 'sinatra', '~> 1.4.2'
|
|
29
29
|
s.add_dependency 'mustache', ['>= 0.99.4', '< 1.0.0']
|
|
30
30
|
s.add_dependency 'useragent', '~> 0.6.0'
|
data/lib/gollum.rb
CHANGED
|
@@ -17,7 +17,7 @@ require File.expand_path('../gollum/uri_encode_component', __FILE__)
|
|
|
17
17
|
$KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
|
|
18
18
|
|
|
19
19
|
module Gollum
|
|
20
|
-
VERSION = '2.4.
|
|
20
|
+
VERSION = '2.4.15'
|
|
21
21
|
|
|
22
22
|
def self.assets_path
|
|
23
23
|
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
|
data/lib/gollum/app.rb
CHANGED
|
@@ -403,9 +403,13 @@ module Precious
|
|
|
403
403
|
@bar_side = wiki.bar_side
|
|
404
404
|
|
|
405
405
|
mustache :page
|
|
406
|
-
elsif file = wiki.file(fullpath)
|
|
407
|
-
|
|
408
|
-
|
|
406
|
+
elsif file = wiki.file(fullpath, wiki.ref, true)
|
|
407
|
+
if file.on_disk?
|
|
408
|
+
send_file file.on_disk_path, :disposition => 'inline'
|
|
409
|
+
else
|
|
410
|
+
content_type file.mime_type
|
|
411
|
+
file.raw_data
|
|
412
|
+
end
|
|
409
413
|
else
|
|
410
414
|
page_path = [path, name].compact.join('/')
|
|
411
415
|
redirect to("/create/#{clean_url(encodeURIComponent(page_path))}")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gollum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.15
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-06-
|
|
13
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: gollum-lib
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
requirements:
|
|
20
20
|
- - ~>
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1.0.
|
|
22
|
+
version: 1.0.3
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -27,7 +27,7 @@ dependencies:
|
|
|
27
27
|
requirements:
|
|
28
28
|
- - ~>
|
|
29
29
|
- !ruby/object:Gem::Version
|
|
30
|
-
version: 1.0.
|
|
30
|
+
version: 1.0.3
|
|
31
31
|
- !ruby/object:Gem::Dependency
|
|
32
32
|
name: sinatra
|
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -668,3 +668,4 @@ signing_key:
|
|
|
668
668
|
specification_version: 2
|
|
669
669
|
summary: A simple, Git-powered wiki.
|
|
670
670
|
test_files: []
|
|
671
|
+
has_rdoc:
|