gollum 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gollum might be problematic. Click here for more details.
- data/gollum.gemspec +2 -3
- data/lib/gollum.rb +1 -4
- data/lib/gollum/markup.rb +6 -4
- metadata +22 -4
- data/lib/gollum/ruby1.8.rb +0 -3
data/gollum.gemspec
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
|
6
6
|
s.name = 'gollum'
|
7
|
-
s.version = '1.2.
|
8
|
-
s.date = '2011-
|
7
|
+
s.version = '1.2.1'
|
8
|
+
s.date = '2011-04-25'
|
9
9
|
s.rubyforge_project = 'gollum'
|
10
10
|
|
11
11
|
s.summary = "A simple, Git-powered wiki."
|
@@ -712,7 +712,6 @@ Gem::Specification.new do |s|
|
|
712
712
|
lib/gollum/markup.rb
|
713
713
|
lib/gollum/page.rb
|
714
714
|
lib/gollum/pagination.rb
|
715
|
-
lib/gollum/ruby1.8.rb
|
716
715
|
lib/gollum/sanitization.rb
|
717
716
|
lib/gollum/wiki.rb
|
718
717
|
templates/formatting.html
|
data/lib/gollum.rb
CHANGED
@@ -7,9 +7,6 @@ require 'grit'
|
|
7
7
|
require 'github/markup'
|
8
8
|
require 'sanitize'
|
9
9
|
|
10
|
-
# ruby 1.8 compatibility
|
11
|
-
require 'gollum/ruby1.8'
|
12
|
-
|
13
10
|
# internal
|
14
11
|
require 'gollum/git_access'
|
15
12
|
require 'gollum/committer'
|
@@ -23,7 +20,7 @@ require 'gollum/albino'
|
|
23
20
|
require 'gollum/sanitization'
|
24
21
|
|
25
22
|
module Gollum
|
26
|
-
VERSION = '1.2.
|
23
|
+
VERSION = '1.2.1'
|
27
24
|
|
28
25
|
class Error < StandardError; end
|
29
26
|
|
data/lib/gollum/markup.rb
CHANGED
@@ -74,12 +74,14 @@ module Gollum
|
|
74
74
|
# Returns the placeholder'd String data.
|
75
75
|
def extract_tex(data)
|
76
76
|
data.gsub(/\\\[\s*(.*?)\s*\\\]/m) do
|
77
|
-
|
78
|
-
|
77
|
+
tag = CGI.escapeHTML($1)
|
78
|
+
id = Digest::SHA1.hexdigest(tag)
|
79
|
+
@texmap[id] = [:block, tag]
|
79
80
|
id
|
80
81
|
end.gsub(/\\\(\s*(.*?)\s*\\\)/m) do
|
81
|
-
|
82
|
-
|
82
|
+
tag = CGI.escapeHTML($1)
|
83
|
+
id = Digest::SHA1.hexdigest(tag)
|
84
|
+
@texmap[id] = [:inline, tag]
|
83
85
|
id
|
84
86
|
end
|
85
87
|
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 2
|
8
|
-
-
|
9
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Tom Preston-Werner
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2011-
|
19
|
+
date: 2011-04-25 00:00:00 -04:00
|
19
20
|
default_executable: gollum
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
@@ -26,6 +27,7 @@ dependencies:
|
|
26
27
|
requirements:
|
27
28
|
- - ~>
|
28
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 29
|
29
31
|
segments:
|
30
32
|
- 2
|
31
33
|
- 4
|
@@ -41,6 +43,7 @@ dependencies:
|
|
41
43
|
requirements:
|
42
44
|
- - ">="
|
43
45
|
- !ruby/object:Gem::Version
|
46
|
+
hash: 15
|
44
47
|
segments:
|
45
48
|
- 0
|
46
49
|
- 4
|
@@ -48,6 +51,7 @@ dependencies:
|
|
48
51
|
version: 0.4.0
|
49
52
|
- - <
|
50
53
|
- !ruby/object:Gem::Version
|
54
|
+
hash: 23
|
51
55
|
segments:
|
52
56
|
- 1
|
53
57
|
- 0
|
@@ -63,6 +67,7 @@ dependencies:
|
|
63
67
|
requirements:
|
64
68
|
- - ~>
|
65
69
|
- !ruby/object:Gem::Version
|
70
|
+
hash: 31
|
66
71
|
segments:
|
67
72
|
- 1
|
68
73
|
- 3
|
@@ -78,6 +83,7 @@ dependencies:
|
|
78
83
|
requirements:
|
79
84
|
- - ~>
|
80
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 15
|
81
87
|
segments:
|
82
88
|
- 1
|
83
89
|
- 0
|
@@ -92,6 +98,7 @@ dependencies:
|
|
92
98
|
requirements:
|
93
99
|
- - ">="
|
94
100
|
- !ruby/object:Gem::Version
|
101
|
+
hash: 55
|
95
102
|
segments:
|
96
103
|
- 0
|
97
104
|
- 11
|
@@ -99,6 +106,7 @@ dependencies:
|
|
99
106
|
version: 0.11.2
|
100
107
|
- - <
|
101
108
|
- !ruby/object:Gem::Version
|
109
|
+
hash: 23
|
102
110
|
segments:
|
103
111
|
- 1
|
104
112
|
- 0
|
@@ -114,6 +122,7 @@ dependencies:
|
|
114
122
|
requirements:
|
115
123
|
- - ~>
|
116
124
|
- !ruby/object:Gem::Version
|
125
|
+
hash: 15
|
117
126
|
segments:
|
118
127
|
- 2
|
119
128
|
- 0
|
@@ -129,6 +138,7 @@ dependencies:
|
|
129
138
|
requirements:
|
130
139
|
- - ~>
|
131
140
|
- !ruby/object:Gem::Version
|
141
|
+
hash: 7
|
132
142
|
segments:
|
133
143
|
- 1
|
134
144
|
- 4
|
@@ -143,6 +153,7 @@ dependencies:
|
|
143
153
|
requirements:
|
144
154
|
- - ">="
|
145
155
|
- !ruby/object:Gem::Version
|
156
|
+
hash: 3
|
146
157
|
segments:
|
147
158
|
- 0
|
148
159
|
version: "0"
|
@@ -156,6 +167,7 @@ dependencies:
|
|
156
167
|
requirements:
|
157
168
|
- - ">="
|
158
169
|
- !ruby/object:Gem::Version
|
170
|
+
hash: 3
|
159
171
|
segments:
|
160
172
|
- 0
|
161
173
|
version: "0"
|
@@ -169,6 +181,7 @@ dependencies:
|
|
169
181
|
requirements:
|
170
182
|
- - ">="
|
171
183
|
- !ruby/object:Gem::Version
|
184
|
+
hash: 3
|
172
185
|
segments:
|
173
186
|
- 0
|
174
187
|
version: "0"
|
@@ -182,6 +195,7 @@ dependencies:
|
|
182
195
|
requirements:
|
183
196
|
- - ">="
|
184
197
|
- !ruby/object:Gem::Version
|
198
|
+
hash: 3
|
185
199
|
segments:
|
186
200
|
- 0
|
187
201
|
version: "0"
|
@@ -195,6 +209,7 @@ dependencies:
|
|
195
209
|
requirements:
|
196
210
|
- - ">="
|
197
211
|
- !ruby/object:Gem::Version
|
212
|
+
hash: 3
|
198
213
|
segments:
|
199
214
|
- 0
|
200
215
|
version: "0"
|
@@ -208,6 +223,7 @@ dependencies:
|
|
208
223
|
requirements:
|
209
224
|
- - ">="
|
210
225
|
- !ruby/object:Gem::Version
|
226
|
+
hash: 3
|
211
227
|
segments:
|
212
228
|
- 0
|
213
229
|
version: "0"
|
@@ -221,6 +237,7 @@ dependencies:
|
|
221
237
|
requirements:
|
222
238
|
- - ">="
|
223
239
|
- !ruby/object:Gem::Version
|
240
|
+
hash: 3
|
224
241
|
segments:
|
225
242
|
- 0
|
226
243
|
version: "0"
|
@@ -907,7 +924,6 @@ files:
|
|
907
924
|
- lib/gollum/markup.rb
|
908
925
|
- lib/gollum/page.rb
|
909
926
|
- lib/gollum/pagination.rb
|
910
|
-
- lib/gollum/ruby1.8.rb
|
911
927
|
- lib/gollum/sanitization.rb
|
912
928
|
- lib/gollum/wiki.rb
|
913
929
|
- templates/formatting.html
|
@@ -1013,6 +1029,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1013
1029
|
requirements:
|
1014
1030
|
- - ">="
|
1015
1031
|
- !ruby/object:Gem::Version
|
1032
|
+
hash: 3
|
1016
1033
|
segments:
|
1017
1034
|
- 0
|
1018
1035
|
version: "0"
|
@@ -1021,6 +1038,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1021
1038
|
requirements:
|
1022
1039
|
- - ">="
|
1023
1040
|
- !ruby/object:Gem::Version
|
1041
|
+
hash: 3
|
1024
1042
|
segments:
|
1025
1043
|
- 0
|
1026
1044
|
version: "0"
|
data/lib/gollum/ruby1.8.rb
DELETED