omnigollum 0.1.5 → 0.1.6
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 +5 -5
- data/lib/omnigollum.rb +15 -12
- data/public/images/mastodon_logo.png +0 -0
- metadata +14 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 80be22815625ac30cb57d4308716d67ee650cbbdb1497236ff84bd3f5b278e09
|
|
4
|
+
data.tar.gz: 6cebea358c0e0ccdced048aaa674c48006e1e12ed9b803d1e77928d765d32d15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff35e950f6d8be83fe7fc815af0b66f449cb9157187e467b340a1d69add9f9c310b677d1c5230b52eca0c0191bf493f530c0957431d84f2ead106ad356f2e3ac
|
|
7
|
+
data.tar.gz: a8cdc25c546d78e6fc5d32a1bf6fe52357954c7256b4c460a070b5730c48c2829459de81bb6a578e536d4c7ba94b3fbcb13873c986313860d167b6ec662341b0
|
data/lib/omnigollum.rb
CHANGED
|
@@ -122,19 +122,21 @@ module Omnigollum
|
|
|
122
122
|
class << self; attr_accessor :default_options; end
|
|
123
123
|
|
|
124
124
|
@default_options = {
|
|
125
|
+
# Gollum 4 uses /create, /create/*, etc, while Gollum 5 uses
|
|
126
|
+
# /gollum/create, /gollum/create/*, etc. Protect both by
|
|
127
|
+
# default so that omnigollum works with either out of the box.
|
|
125
128
|
:protected_routes => [
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
'/delete'],
|
|
129
|
+
'create',
|
|
130
|
+
'delete',
|
|
131
|
+
'edit',
|
|
132
|
+
'rename',
|
|
133
|
+
'revert',
|
|
134
|
+
'upload',
|
|
135
|
+
].map { |x|
|
|
136
|
+
["/#{x}", "/#{x}/*"].map { |y|
|
|
137
|
+
[y, "/gollum#{y}"]
|
|
138
|
+
}
|
|
139
|
+
}.flatten,
|
|
138
140
|
|
|
139
141
|
:route_prefix => '/__omnigollum__',
|
|
140
142
|
:dummy_auth => true,
|
|
@@ -222,6 +224,7 @@ module Omnigollum
|
|
|
222
224
|
|
|
223
225
|
# Populates instance variables used to display currently logged in user
|
|
224
226
|
app.before '/*' do
|
|
227
|
+
@omnigollum_enabled = true
|
|
225
228
|
@user_authed = user_authed?
|
|
226
229
|
@user = get_user
|
|
227
230
|
end
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omnigollum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arran Cudbard-Bell
|
|
@@ -9,48 +9,48 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: gollum
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- -
|
|
18
|
+
- - ">="
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
20
|
version: '0'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- -
|
|
25
|
+
- - ">="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: '0'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: omniauth
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
|
-
- -
|
|
32
|
+
- - ">="
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
34
|
version: '0'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
|
-
- -
|
|
39
|
+
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: '0'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: mustache
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
|
-
- -
|
|
46
|
+
- - ">="
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
48
|
version: 0.99.5
|
|
49
49
|
type: :runtime
|
|
50
50
|
prerelease: false
|
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
|
-
- -
|
|
53
|
+
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: 0.99.5
|
|
56
56
|
description: |
|
|
@@ -64,14 +64,15 @@ extra_rdoc_files:
|
|
|
64
64
|
- Readme.md
|
|
65
65
|
- LICENSE
|
|
66
66
|
files:
|
|
67
|
-
- Readme.md
|
|
68
67
|
- LICENSE
|
|
68
|
+
- Readme.md
|
|
69
69
|
- lib/omnigollum.rb
|
|
70
70
|
- public/images/bitly_logo.png
|
|
71
71
|
- public/images/blogger_logo.png
|
|
72
72
|
- public/images/facebook_logo.png
|
|
73
73
|
- public/images/github_logo.png
|
|
74
74
|
- public/images/google_logo.png
|
|
75
|
+
- public/images/mastodon_logo.png
|
|
75
76
|
- public/images/omniauth_logo.png
|
|
76
77
|
- public/images/open_id_logo.png
|
|
77
78
|
- public/images/twitter_logo.png
|
|
@@ -86,22 +87,21 @@ licenses:
|
|
|
86
87
|
metadata: {}
|
|
87
88
|
post_install_message:
|
|
88
89
|
rdoc_options:
|
|
89
|
-
- --charset=UTF-8
|
|
90
|
+
- "--charset=UTF-8"
|
|
90
91
|
require_paths:
|
|
91
92
|
- lib
|
|
92
93
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
94
|
requirements:
|
|
94
|
-
- -
|
|
95
|
+
- - ">="
|
|
95
96
|
- !ruby/object:Gem::Version
|
|
96
97
|
version: '0'
|
|
97
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
99
|
requirements:
|
|
99
|
-
- -
|
|
100
|
+
- - ">="
|
|
100
101
|
- !ruby/object:Gem::Version
|
|
101
102
|
version: '0'
|
|
102
103
|
requirements: []
|
|
103
|
-
|
|
104
|
-
rubygems_version: 2.0.14.1
|
|
104
|
+
rubygems_version: 3.0.3
|
|
105
105
|
signing_key:
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: Omnigollum makes it easy to use OmniAuth with Gollum
|