gollum-lib 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gollum-lib might be problematic. Click here for more details.

@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aff116f5c69c8fedeab7e72a0f7b8ff44a7484d2
4
+ data.tar.gz: ea440b481f5546eb88076f3064e8f79d07dfb4de
5
+ SHA512:
6
+ metadata.gz: f5d6542ce0ffa92f03b428ba0cd63fab44599444c48c8c3dca237c3a86583e99b92cfc12ba9854c85e4a3d45c0081eddda60c22cb7dafa55378fcfaa100e3c82
7
+ data.tar.gz: 01887c48f26662fa6a5a35b045f68ab61e7f4afb3891404ed36c24e1f01e498c126095c26b7cfdfde7f1e66706a1848fd0ee1f9b81faf05592f5905947b22cf0
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
5
5
  s.required_ruby_version = ">= 1.9"
6
6
 
7
7
  s.name = 'gollum-lib'
8
- s.version = '1.0.4'
9
- s.date = '2013-07-20'
8
+ s.version = '1.0.5'
9
+ s.date = '2013-08-08'
10
10
  s.rubyforge_project = 'gollum-lib'
11
11
  s.license = 'MIT'
12
12
 
@@ -30,12 +30,20 @@ $KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
30
30
 
31
31
  module Gollum
32
32
  module Lib
33
- VERSION = '1.0.4'
33
+ VERSION = '1.0.5'
34
34
  end
35
35
 
36
36
  def self.assets_path
37
37
  ::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
38
38
  end
39
+
40
+ def self.set_git_timeout(time)
41
+ Grit::Git.git_timeout = time
42
+ end
43
+
44
+ def self.set_git_max_filesize(size)
45
+ Grit::Git.git_max_size = size
46
+ end
39
47
 
40
48
  class Error < StandardError; end
41
49
 
@@ -51,5 +59,9 @@ module Gollum
51
59
  super(message || "Cannot write #{@dir}/#{@attempted_path}, found #{@dir}/#{@existing_path}.")
52
60
  end
53
61
  end
62
+
63
+ class InvalidGitRepositoryError < StandardError ; end
64
+ class NoSuchPathError < StandardError ; end
65
+
54
66
  end
55
67
 
@@ -13,7 +13,13 @@ module Gollum
13
13
  def initialize(path, page_file_dir = nil, bare = false)
14
14
  @page_file_dir = page_file_dir
15
15
  @path = path
16
- @repo = Grit::Repo.new(path, { :is_bare => bare })
16
+ begin
17
+ @repo = Grit::Repo.new(path, { :is_bare => bare })
18
+ rescue Grit::InvalidGitRepositoryError
19
+ raise Gollum::InvalidGitRepositoryError
20
+ rescue Grit::NoSuchPathError
21
+ raise Gollum::NoSuchPatherror
22
+ end
17
23
  clear
18
24
  end
19
25
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
5
- prerelease:
4
+ version: 1.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tom Preston-Werner
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-07-20 00:00:00.000000000 Z
12
+ date: 2013-08-08 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: grit
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -31,9 +28,8 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: github-markup
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: 0.7.5
39
35
  - - <
@@ -42,9 +38,8 @@ dependencies:
42
38
  type: :runtime
43
39
  prerelease: false
44
40
  version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
41
  requirements:
47
- - - ! '>='
42
+ - - '>='
48
43
  - !ruby/object:Gem::Version
49
44
  version: 0.7.5
50
45
  - - <
@@ -53,7 +48,6 @@ dependencies:
53
48
  - !ruby/object:Gem::Dependency
54
49
  name: github-markdown
55
50
  requirement: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
52
  - - ~>
59
53
  - !ruby/object:Gem::Version
@@ -61,7 +55,6 @@ dependencies:
61
55
  type: :runtime
62
56
  prerelease: false
63
57
  version_requirements: !ruby/object:Gem::Requirement
64
- none: false
65
58
  requirements:
66
59
  - - ~>
67
60
  - !ruby/object:Gem::Version
@@ -69,7 +62,6 @@ dependencies:
69
62
  - !ruby/object:Gem::Dependency
70
63
  name: pygments.rb
71
64
  requirement: !ruby/object:Gem::Requirement
72
- none: false
73
65
  requirements:
74
66
  - - ~>
75
67
  - !ruby/object:Gem::Version
@@ -77,7 +69,6 @@ dependencies:
77
69
  type: :runtime
78
70
  prerelease: false
79
71
  version_requirements: !ruby/object:Gem::Requirement
80
- none: false
81
72
  requirements:
82
73
  - - ~>
83
74
  - !ruby/object:Gem::Version
@@ -85,7 +76,6 @@ dependencies:
85
76
  - !ruby/object:Gem::Dependency
86
77
  name: sanitize
87
78
  requirement: !ruby/object:Gem::Requirement
88
- none: false
89
79
  requirements:
90
80
  - - ~>
91
81
  - !ruby/object:Gem::Version
@@ -93,7 +83,6 @@ dependencies:
93
83
  type: :runtime
94
84
  prerelease: false
95
85
  version_requirements: !ruby/object:Gem::Requirement
96
- none: false
97
86
  requirements:
98
87
  - - ~>
99
88
  - !ruby/object:Gem::Version
@@ -101,7 +90,6 @@ dependencies:
101
90
  - !ruby/object:Gem::Dependency
102
91
  name: nokogiri
103
92
  requirement: !ruby/object:Gem::Requirement
104
- none: false
105
93
  requirements:
106
94
  - - ~>
107
95
  - !ruby/object:Gem::Version
@@ -109,7 +97,6 @@ dependencies:
109
97
  type: :runtime
110
98
  prerelease: false
111
99
  version_requirements: !ruby/object:Gem::Requirement
112
- none: false
113
100
  requirements:
114
101
  - - ~>
115
102
  - !ruby/object:Gem::Version
@@ -117,7 +104,6 @@ dependencies:
117
104
  - !ruby/object:Gem::Dependency
118
105
  name: stringex
119
106
  requirement: !ruby/object:Gem::Requirement
120
- none: false
121
107
  requirements:
122
108
  - - ~>
123
109
  - !ruby/object:Gem::Version
@@ -125,7 +111,6 @@ dependencies:
125
111
  type: :runtime
126
112
  prerelease: false
127
113
  version_requirements: !ruby/object:Gem::Requirement
128
- none: false
129
114
  requirements:
130
115
  - - ~>
131
116
  - !ruby/object:Gem::Version
@@ -133,7 +118,6 @@ dependencies:
133
118
  - !ruby/object:Gem::Dependency
134
119
  name: RedCloth
135
120
  requirement: !ruby/object:Gem::Requirement
136
- none: false
137
121
  requirements:
138
122
  - - ~>
139
123
  - !ruby/object:Gem::Version
@@ -141,7 +125,6 @@ dependencies:
141
125
  type: :development
142
126
  prerelease: false
143
127
  version_requirements: !ruby/object:Gem::Requirement
144
- none: false
145
128
  requirements:
146
129
  - - ~>
147
130
  - !ruby/object:Gem::Version
@@ -149,7 +132,6 @@ dependencies:
149
132
  - !ruby/object:Gem::Dependency
150
133
  name: mocha
151
134
  requirement: !ruby/object:Gem::Requirement
152
- none: false
153
135
  requirements:
154
136
  - - ~>
155
137
  - !ruby/object:Gem::Version
@@ -157,7 +139,6 @@ dependencies:
157
139
  type: :development
158
140
  prerelease: false
159
141
  version_requirements: !ruby/object:Gem::Requirement
160
- none: false
161
142
  requirements:
162
143
  - - ~>
163
144
  - !ruby/object:Gem::Version
@@ -165,7 +146,6 @@ dependencies:
165
146
  - !ruby/object:Gem::Dependency
166
147
  name: org-ruby
167
148
  requirement: !ruby/object:Gem::Requirement
168
- none: false
169
149
  requirements:
170
150
  - - ~>
171
151
  - !ruby/object:Gem::Version
@@ -173,7 +153,6 @@ dependencies:
173
153
  type: :development
174
154
  prerelease: false
175
155
  version_requirements: !ruby/object:Gem::Requirement
176
- none: false
177
156
  requirements:
178
157
  - - ~>
179
158
  - !ruby/object:Gem::Version
@@ -181,7 +160,6 @@ dependencies:
181
160
  - !ruby/object:Gem::Dependency
182
161
  name: shoulda
183
162
  requirement: !ruby/object:Gem::Requirement
184
- none: false
185
163
  requirements:
186
164
  - - ~>
187
165
  - !ruby/object:Gem::Version
@@ -189,7 +167,6 @@ dependencies:
189
167
  type: :development
190
168
  prerelease: false
191
169
  version_requirements: !ruby/object:Gem::Requirement
192
- none: false
193
170
  requirements:
194
171
  - - ~>
195
172
  - !ruby/object:Gem::Version
@@ -197,7 +174,6 @@ dependencies:
197
174
  - !ruby/object:Gem::Dependency
198
175
  name: wikicloth
199
176
  requirement: !ruby/object:Gem::Requirement
200
- none: false
201
177
  requirements:
202
178
  - - ~>
203
179
  - !ruby/object:Gem::Version
@@ -205,7 +181,6 @@ dependencies:
205
181
  type: :development
206
182
  prerelease: false
207
183
  version_requirements: !ruby/object:Gem::Requirement
208
- none: false
209
184
  requirements:
210
185
  - - ~>
211
186
  - !ruby/object:Gem::Version
@@ -213,7 +188,6 @@ dependencies:
213
188
  - !ruby/object:Gem::Dependency
214
189
  name: rake
215
190
  requirement: !ruby/object:Gem::Requirement
216
- none: false
217
191
  requirements:
218
192
  - - ~>
219
193
  - !ruby/object:Gem::Version
@@ -221,7 +195,6 @@ dependencies:
221
195
  type: :development
222
196
  prerelease: false
223
197
  version_requirements: !ruby/object:Gem::Requirement
224
- none: false
225
198
  requirements:
226
199
  - - ~>
227
200
  - !ruby/object:Gem::Version
@@ -229,7 +202,6 @@ dependencies:
229
202
  - !ruby/object:Gem::Dependency
230
203
  name: pry
231
204
  requirement: !ruby/object:Gem::Requirement
232
- none: false
233
205
  requirements:
234
206
  - - ~>
235
207
  - !ruby/object:Gem::Version
@@ -237,7 +209,6 @@ dependencies:
237
209
  type: :development
238
210
  prerelease: false
239
211
  version_requirements: !ruby/object:Gem::Requirement
240
- none: false
241
212
  requirements:
242
213
  - - ~>
243
214
  - !ruby/object:Gem::Version
@@ -245,7 +216,6 @@ dependencies:
245
216
  - !ruby/object:Gem::Dependency
246
217
  name: rb-readline
247
218
  requirement: !ruby/object:Gem::Requirement
248
- none: false
249
219
  requirements:
250
220
  - - ~>
251
221
  - !ruby/object:Gem::Version
@@ -253,7 +223,6 @@ dependencies:
253
223
  type: :development
254
224
  prerelease: false
255
225
  version_requirements: !ruby/object:Gem::Requirement
256
- none: false
257
226
  requirements:
258
227
  - - ~>
259
228
  - !ruby/object:Gem::Version
@@ -261,7 +230,6 @@ dependencies:
261
230
  - !ruby/object:Gem::Dependency
262
231
  name: minitest-reporters
263
232
  requirement: !ruby/object:Gem::Requirement
264
- none: false
265
233
  requirements:
266
234
  - - ~>
267
235
  - !ruby/object:Gem::Version
@@ -269,7 +237,6 @@ dependencies:
269
237
  type: :development
270
238
  prerelease: false
271
239
  version_requirements: !ruby/object:Gem::Requirement
272
- none: false
273
240
  requirements:
274
241
  - - ~>
275
242
  - !ruby/object:Gem::Version
@@ -277,7 +244,6 @@ dependencies:
277
244
  - !ruby/object:Gem::Dependency
278
245
  name: nokogiri-diff
279
246
  requirement: !ruby/object:Gem::Requirement
280
- none: false
281
247
  requirements:
282
248
  - - ~>
283
249
  - !ruby/object:Gem::Version
@@ -285,7 +251,6 @@ dependencies:
285
251
  type: :development
286
252
  prerelease: false
287
253
  version_requirements: !ruby/object:Gem::Requirement
288
- none: false
289
254
  requirements:
290
255
  - - ~>
291
256
  - !ruby/object:Gem::Version
@@ -293,7 +258,6 @@ dependencies:
293
258
  - !ruby/object:Gem::Dependency
294
259
  name: guard
295
260
  requirement: !ruby/object:Gem::Requirement
296
- none: false
297
261
  requirements:
298
262
  - - ~>
299
263
  - !ruby/object:Gem::Version
@@ -301,7 +265,6 @@ dependencies:
301
265
  type: :development
302
266
  prerelease: false
303
267
  version_requirements: !ruby/object:Gem::Requirement
304
- none: false
305
268
  requirements:
306
269
  - - ~>
307
270
  - !ruby/object:Gem::Version
@@ -309,7 +272,6 @@ dependencies:
309
272
  - !ruby/object:Gem::Dependency
310
273
  name: guard-minitest
311
274
  requirement: !ruby/object:Gem::Requirement
312
- none: false
313
275
  requirements:
314
276
  - - ~>
315
277
  - !ruby/object:Gem::Version
@@ -317,7 +279,6 @@ dependencies:
317
279
  type: :development
318
280
  prerelease: false
319
281
  version_requirements: !ruby/object:Gem::Requirement
320
- none: false
321
282
  requirements:
322
283
  - - ~>
323
284
  - !ruby/object:Gem::Version
@@ -325,7 +286,6 @@ dependencies:
325
286
  - !ruby/object:Gem::Dependency
326
287
  name: rb-inotify
327
288
  requirement: !ruby/object:Gem::Requirement
328
- none: false
329
289
  requirements:
330
290
  - - ~>
331
291
  - !ruby/object:Gem::Version
@@ -333,7 +293,6 @@ dependencies:
333
293
  type: :development
334
294
  prerelease: false
335
295
  version_requirements: !ruby/object:Gem::Requirement
336
- none: false
337
296
  requirements:
338
297
  - - ~>
339
298
  - !ruby/object:Gem::Version
@@ -341,7 +300,6 @@ dependencies:
341
300
  - !ruby/object:Gem::Dependency
342
301
  name: rb-fsevent
343
302
  requirement: !ruby/object:Gem::Requirement
344
- none: false
345
303
  requirements:
346
304
  - - ~>
347
305
  - !ruby/object:Gem::Version
@@ -349,7 +307,6 @@ dependencies:
349
307
  type: :development
350
308
  prerelease: false
351
309
  version_requirements: !ruby/object:Gem::Requirement
352
- none: false
353
310
  requirements:
354
311
  - - ~>
355
312
  - !ruby/object:Gem::Version
@@ -357,7 +314,6 @@ dependencies:
357
314
  - !ruby/object:Gem::Dependency
358
315
  name: rb-fchange
359
316
  requirement: !ruby/object:Gem::Requirement
360
- none: false
361
317
  requirements:
362
318
  - - ~>
363
319
  - !ruby/object:Gem::Version
@@ -365,7 +321,6 @@ dependencies:
365
321
  type: :development
366
322
  prerelease: false
367
323
  version_requirements: !ruby/object:Gem::Requirement
368
- none: false
369
324
  requirements:
370
325
  - - ~>
371
326
  - !ruby/object:Gem::Version
@@ -406,27 +361,27 @@ files:
406
361
  homepage: http://github.com/gollum/gollum-lib
407
362
  licenses:
408
363
  - MIT
364
+ metadata: {}
409
365
  post_install_message:
410
366
  rdoc_options:
411
367
  - --charset=UTF-8
412
368
  require_paths:
413
369
  - lib
414
370
  required_ruby_version: !ruby/object:Gem::Requirement
415
- none: false
416
371
  requirements:
417
- - - ! '>='
372
+ - - '>='
418
373
  - !ruby/object:Gem::Version
419
374
  version: '1.9'
420
375
  required_rubygems_version: !ruby/object:Gem::Requirement
421
- none: false
422
376
  requirements:
423
- - - ! '>='
377
+ - - '>='
424
378
  - !ruby/object:Gem::Version
425
379
  version: '0'
426
380
  requirements: []
427
381
  rubyforge_project: gollum-lib
428
- rubygems_version: 1.8.25
382
+ rubygems_version: 2.0.6
429
383
  signing_key:
430
384
  specification_version: 2
431
385
  summary: A simple, Git-powered wiki.
432
386
  test_files: []
387
+ has_rdoc: