gollum 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +2 -0
- data/HISTORY.md +20 -0
- data/LATEST_CHANGES.md +4 -16
- data/Rakefile +2 -2
- data/bin/gollum +3 -3
- data/gollum.gemspec +2 -1
- data/lib/gollum/app.rb +7 -5
- data/lib/gollum.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777fc637bf9f32da50347a0bf604706d39ce97c24ed4be4892efc5ef9c557856
|
4
|
+
data.tar.gz: f4d551f8183da4d8ed4335a882976dbf6c07dea068fca79ecc59fc44ec28461d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f2f435022ea90684574562a14ec4e95db45eb1ea0297aa641326c0a6fa767ec4f1985002ced08575b27d18b6a46119bef92ecea32dac22225bb6a542326b7b7
|
7
|
+
data.tar.gz: 2e9ef9046e7f70cda791e76f251cbab4e60a7f5b6539943b1c1418bdc49a89812c64e5e318511c89e37ad69d66a2064f4d7ebbde64f5364ccfe29aa0722a963d
|
data/CONTRIBUTING.md
CHANGED
@@ -181,6 +181,8 @@ git push ../lotr.git/ master
|
|
181
181
|
|
182
182
|
Gollum uses [yarn](https://yarnpkg.com/) and [sprockets](https://github.com/rails/sprockets) to manage assets. By default, Gollum uses the precompiled static assets that are packaged with the gem (under `lib/gollum/public/assets`). If you're making changes to Gollum's JavaScript or (S)CSS assets, you might want to develop by calling `gollum` with the `--development-assets` flag. This will cause the application to use the unpackaged assets that you are editing (under `lib/gollum/public/gollum/` and in your local `node_modules` directory), so you can test and tweak. Once you are satisfied with your changes, it's time to [update the static assets](#updating-static-assets)!
|
183
183
|
|
184
|
+
You can also enable the use of development assets by setting the `APP_ENV` environment variable to `gollum_development`: for example, with `APP_ENV=gollum_development bundle exec gollum ...`.
|
185
|
+
|
184
186
|
For convenience, Gollum also allows developers to set a custom location for `node_modules` (by default expected to be in the root of the project) when using `--development-assets`. Set the `GOLLUM_DEV_ASSETS` environment variable to do this, e.g.: `GOLLUM_DEV_ASSETS=/path/to/my/node_modules gollum --development-assets`
|
185
187
|
|
186
188
|
## Updating static assets
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
# 6.0.0 / 2024-05-03
|
2
|
+
|
3
|
+
# Breaking Changes
|
4
|
+
|
5
|
+
* Docker image: removed deprecated automatic activation of --mathjax. Pass '--math mathjax' to continue using mathjax, or '--math' to use KaTeX (see below).
|
6
|
+
* RACK_ENV is ignored, please use APP_ENV instead (@svoop).
|
7
|
+
|
8
|
+
## New features
|
9
|
+
|
10
|
+
* Add support for Mermaid diagrams (@dometto).
|
11
|
+
* Add support for downloading page sources with ?raw (@tstein).
|
12
|
+
* Add openssh client to docker images for ssh: repo support. (@jagerkin).
|
13
|
+
* Add support for mathematical typesetting using KaTeX (@dometto). Users can now choose between MathJax and KaTeX with the --math flag.
|
14
|
+
* Add support for more languages (Chinese).
|
15
|
+
|
16
|
+
## Fixes & Improvements
|
17
|
+
|
18
|
+
* Fix (Docker image): add git configuration for `/wiki` as safe directory. #2006
|
19
|
+
* Fix: use `base_path` as set in config file.
|
20
|
+
|
1
21
|
# 5.3.0 / 2022-05-25
|
2
22
|
|
3
23
|
* Feature: allow for overriding only specific Mustache templates/partials (@beporter)
|
data/LATEST_CHANGES.md
CHANGED
@@ -1,19 +1,7 @@
|
|
1
|
-
# 6.0.
|
2
|
-
|
3
|
-
# Breaking Changes
|
4
|
-
|
5
|
-
* Docker image: removed deprecated automatic activation of --mathjax. Pass '--math mathjax' to continue using mathjax, or '--math' to use KaTeX (see below).
|
6
|
-
* RACK_ENV is ignored, please use APP_ENV instead (@svoop).
|
7
|
-
|
8
|
-
## New features
|
9
|
-
|
10
|
-
* Add support for Mermaid diagrams (@dometto).
|
11
|
-
* Add support for downloading page sources with ?raw (@tstein).
|
12
|
-
* Add openssh client to docker images for ssh: repo support. (@jagerkin).
|
13
|
-
* Add support for mathematical typesetting using KaTeX (@dometto). Users can now choose between MathJax and KaTeX with the --math flag.
|
14
|
-
* Add support for more languages (Chinese).
|
1
|
+
# 6.0.1
|
15
2
|
|
16
3
|
## Fixes & Improvements
|
17
4
|
|
18
|
-
*
|
19
|
-
*
|
5
|
+
* Use static assets when `APP_ENV` is `development` (@dometto)
|
6
|
+
* Explicitly require Rack 3 or greater (@dometto)
|
7
|
+
* Let the `--base-path` wiki option handle prefixed and suffixed slashes in path values. (i.e. `--base-path /my-wiki`) (@dometto)
|
data/Rakefile
CHANGED
@@ -214,7 +214,7 @@ end
|
|
214
214
|
desc 'Build changelog'
|
215
215
|
task :changelog do
|
216
216
|
[latest_changes_file, history_file].each do |f|
|
217
|
-
unless File.
|
217
|
+
unless File.exist?(f)
|
218
218
|
puts "#{f} does not exist but is required to build a new release."
|
219
219
|
exit!
|
220
220
|
end
|
@@ -271,7 +271,7 @@ task :precompile do
|
|
271
271
|
JS_COMPRESSOR = ::Terser.new
|
272
272
|
end
|
273
273
|
end
|
274
|
-
|
274
|
+
|
275
275
|
require './lib/gollum/app.rb'
|
276
276
|
|
277
277
|
# Next, configure the Sprockets asset pipeline and precompile production-
|
data/bin/gollum
CHANGED
@@ -293,9 +293,9 @@ else
|
|
293
293
|
if base_path.nil?
|
294
294
|
Precious::App.run!(options)
|
295
295
|
else
|
296
|
-
require '
|
296
|
+
require 'rackup'
|
297
297
|
|
298
|
-
#
|
299
|
-
|
298
|
+
# Rackup::Handler does not work with Ctrl + C. Use Rackup::Server instead.
|
299
|
+
Rackup::Server.new(:app => Precious::MapGollum.new(base_path), :Port => options[:port], :Host => options[:bind]).start
|
300
300
|
end
|
301
301
|
end
|
data/gollum.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.required_ruby_version = '>= 2.6'
|
4
4
|
|
5
5
|
s.name = 'gollum'
|
6
|
-
s.version = '6.0.
|
6
|
+
s.version = '6.0.1'
|
7
7
|
s.license = 'MIT'
|
8
8
|
|
9
9
|
s.summary = 'A simple, Git-powered wiki.'
|
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_dependency 'gollum-lib', '~> 6.0'
|
25
25
|
s.add_dependency 'kramdown', '~> 2.3'
|
26
26
|
s.add_dependency 'kramdown-parser-gfm', '~> 1.1.0'
|
27
|
+
s.add_dependency 'rack', '>= 3.0'
|
27
28
|
s.add_dependency 'rackup', '~> 2.1'
|
28
29
|
s.add_dependency 'sinatra', '~> 4.0'
|
29
30
|
s.add_dependency 'sinatra-contrib', '~> 4.0'
|
data/lib/gollum/app.rb
CHANGED
@@ -55,17 +55,19 @@ module Precious
|
|
55
55
|
|
56
56
|
# For use with the --base-path option.
|
57
57
|
class MapGollum
|
58
|
+
include Precious::Helpers
|
58
59
|
def initialize(base_path)
|
60
|
+
base_route = "/#{remove_leading_and_trailing_slashes(base_path)}"
|
59
61
|
@mg = Rack::Builder.new do
|
60
62
|
|
61
|
-
map
|
63
|
+
map base_route do
|
62
64
|
run Precious::App
|
63
65
|
end
|
64
66
|
map '/' do
|
65
|
-
run Proc.new { [302, { 'Location' =>
|
67
|
+
run Proc.new { [302, { 'Location' => base_route }, []] }
|
66
68
|
end
|
67
69
|
map '/*' do
|
68
|
-
run Proc.new { [302, { 'Location' =>
|
70
|
+
run Proc.new { [302, { 'Location' => base_route }, []] }
|
69
71
|
end
|
70
72
|
|
71
73
|
end
|
@@ -101,7 +103,7 @@ module Precious
|
|
101
103
|
}
|
102
104
|
|
103
105
|
# Sinatra error handling
|
104
|
-
configure :development, :staging do
|
106
|
+
configure :development, :staging, :gollum_development do
|
105
107
|
enable :show_exceptions, :dump_errors
|
106
108
|
disable :raise_errors, :clean_trace
|
107
109
|
end
|
@@ -136,7 +138,7 @@ module Precious
|
|
136
138
|
@mermaid = settings.wiki_options.fetch(:mermaid, true)
|
137
139
|
Gollum::Filter::Code.language_handlers.delete(/mermaid/) unless @mermaid
|
138
140
|
|
139
|
-
@use_static_assets = settings.wiki_options.fetch(:static, settings.environment != :
|
141
|
+
@use_static_assets = settings.wiki_options.fetch(:static, settings.environment != :gollum_development)
|
140
142
|
@static_assets_path = settings.wiki_options.fetch(:static_assets_path, ::File.join(File.dirname(__FILE__), 'public/assets'))
|
141
143
|
@mathjax_path = ::File.join(File.dirname(__FILE__), 'public/gollum/javascript/MathJax')
|
142
144
|
|
data/lib/gollum.rb
CHANGED
@@ -13,7 +13,7 @@ require 'rhino' if RUBY_PLATFORM == 'java'
|
|
13
13
|
require ::File.expand_path('../gollum/uri_encode_component', __FILE__)
|
14
14
|
|
15
15
|
module Gollum
|
16
|
-
VERSION = '6.0.
|
16
|
+
VERSION = '6.0.1'
|
17
17
|
KEYBINDINGS = ['default', 'vim', 'emacs']
|
18
18
|
|
19
19
|
::I18n.available_locales = [:en, :cn]
|
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: 6.0.
|
4
|
+
version: 6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
@@ -67,6 +67,20 @@ dependencies:
|
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 1.1.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rack
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '3.0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '3.0'
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
85
|
name: rackup
|
72
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -613,7 +627,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
613
627
|
- !ruby/object:Gem::Version
|
614
628
|
version: '0'
|
615
629
|
requirements: []
|
616
|
-
rubygems_version: 3.3
|
630
|
+
rubygems_version: 3.5.3
|
617
631
|
signing_key:
|
618
632
|
specification_version: 4
|
619
633
|
summary: A simple, Git-powered wiki.
|