gitdocs 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -25,4 +25,8 @@
25
25
  * Fixes major mime type detection issues
26
26
  * Fixes rendering issues
27
27
 
28
- 0.4.7 (Not yet released)
28
+ 0.4.7 (12/15/2012)
29
+
30
+ * Re-throw exceptions from reactor loop
31
+ * Socket testing moved to defer block
32
+
@@ -36,24 +36,28 @@ module Gitdocs
36
36
  # Start the web front-end
37
37
  if self.config.global.start_web_frontend
38
38
  Server.new(self, *@runners).start
39
- i = 0
40
- web_started = false
41
- begin
42
- TCPSocket.open('127.0.0.1', 8888).close
43
- web_started = true
44
- rescue Errno::ECONNREFUSED
45
- self.log "Retrying server loop..."
46
- sleep 0.2
47
- i += 1
48
- retry if i <= 20
49
- end
50
- self.log "Web server running: #{web_started}"
51
- system("open http://localhost:8888/") if self.config.global.load_browser_on_startup && web_started
39
+ EM.defer( proc {
40
+ i = 0
41
+ web_started = false
42
+ begin
43
+ TCPSocket.open('127.0.0.1', 8888).close
44
+ web_started = true
45
+ rescue Errno::ECONNREFUSED
46
+ self.log "Retrying server loop..."
47
+ sleep 0.2
48
+ i += 1
49
+ retry if i <= 20
50
+ end
51
+ system("open http://localhost:8888/") if self.config.global.load_browser_on_startup && web_started
52
+ }, proc {
53
+ self.log "Web server running!"
54
+ })
52
55
  end
53
56
  end
54
57
  rescue Exception => e # Report all errors in log
55
58
  self.log(e.class.inspect + " - " + e.inspect + " - " + e.message.inspect, :error)
56
59
  self.log(e.backtrace.join("\n"), :error)
60
+ raise
57
61
  ensure
58
62
  self.log("Gitdocs is terminating...goodbye\n\n")
59
63
  end
@@ -16,14 +16,7 @@ require 'redcarpet'
16
16
  # and no accessors to change this. 100% pure, standard
17
17
  # Markdown.
18
18
  class RedcarpetCompat
19
- attr_accessor :text
20
-
21
- def initialize(text, *_dummy)
22
- @text = text
23
- @markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
24
- end
25
-
26
19
  def to_html(*_dummy)
27
- @markdown.render(@text.force_encoding('utf-8'))
20
+ @markdown.render(@text.encode('utf-8'))
28
21
  end
29
22
  end
@@ -1,3 +1,3 @@
1
1
  module Gitdocs
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  - @title = "Matches for #{request.params['q'].inspect}"
2
+ %script{ :src => "/js/search.js", :type => "text/javascript", :charset => "utf-8" }
2
3
 
3
4
  .results{ "data-query" => request.params['q'] }
4
5
  -if results.empty?
@@ -12,6 +13,4 @@
12
13
  %a{:href => "/#{repo.index}/#{res.file}"}
13
14
  = "/#{res.file}"
14
15
  %dd
15
- = res.context
16
-
17
- %script{ :src => "/js/search.js", :type => "text/javascript", :charset => "utf-8" }
16
+ = res.context
metadata CHANGED
@@ -1,249 +1,246 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gitdocs
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.7
4
5
  prerelease:
5
- version: 0.4.6
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Josh Hull
9
9
  - Nathan Esquenazi
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-12-15 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2011-12-15 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: joshbuddy-guard
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70196233094940 !ruby/object:Gem::Requirement
20
18
  none: false
21
- requirements:
19
+ requirements:
22
20
  - - ~>
23
- - !ruby/object:Gem::Version
21
+ - !ruby/object:Gem::Version
24
22
  version: 0.10.0
25
23
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: thin
29
24
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70196233094940
26
+ - !ruby/object:Gem::Dependency
27
+ name: thin
28
+ requirement: &70196233094500 !ruby/object:Gem::Requirement
31
29
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
36
34
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: renee
40
35
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70196233094500
37
+ - !ruby/object:Gem::Dependency
38
+ name: renee
39
+ requirement: &70196233093960 !ruby/object:Gem::Requirement
42
40
  none: false
43
- requirements:
41
+ requirements:
44
42
  - - ~>
45
- - !ruby/object:Gem::Version
43
+ - !ruby/object:Gem::Version
46
44
  version: 0.3.7
47
45
  type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: redcarpet
51
46
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *70196233093960
48
+ - !ruby/object:Gem::Dependency
49
+ name: redcarpet
50
+ requirement: &70196233093440 !ruby/object:Gem::Requirement
53
51
  none: false
54
- requirements:
52
+ requirements:
55
53
  - - ~>
56
- - !ruby/object:Gem::Version
54
+ - !ruby/object:Gem::Version
57
55
  version: 2.0.0
58
56
  type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: thor
62
57
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *70196233093440
59
+ - !ruby/object:Gem::Dependency
60
+ name: thor
61
+ requirement: &70196233092900 !ruby/object:Gem::Requirement
64
62
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
69
67
  type: :runtime
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: coderay
73
68
  prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *70196233092900
70
+ - !ruby/object:Gem::Dependency
71
+ name: coderay
72
+ requirement: &70196233092440 !ruby/object:Gem::Requirement
75
73
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
80
78
  type: :runtime
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
83
- name: dante
84
79
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
80
+ version_requirements: *70196233092440
81
+ - !ruby/object:Gem::Dependency
82
+ name: dante
83
+ requirement: &70196233091920 !ruby/object:Gem::Requirement
86
84
  none: false
87
- requirements:
85
+ requirements:
88
86
  - - ~>
89
- - !ruby/object:Gem::Version
87
+ - !ruby/object:Gem::Version
90
88
  version: 0.1.2
91
89
  type: :runtime
92
- version_requirements: *id007
93
- - !ruby/object:Gem::Dependency
94
- name: growl
95
90
  prerelease: false
96
- requirement: &id008 !ruby/object:Gem::Requirement
91
+ version_requirements: *70196233091920
92
+ - !ruby/object:Gem::Dependency
93
+ name: growl
94
+ requirement: &70196233091380 !ruby/object:Gem::Requirement
97
95
  none: false
98
- requirements:
96
+ requirements:
99
97
  - - ~>
100
- - !ruby/object:Gem::Version
98
+ - !ruby/object:Gem::Version
101
99
  version: 1.0.3
102
100
  type: :runtime
103
- version_requirements: *id008
104
- - !ruby/object:Gem::Dependency
105
- name: yajl-ruby
106
101
  prerelease: false
107
- requirement: &id009 !ruby/object:Gem::Requirement
102
+ version_requirements: *70196233091380
103
+ - !ruby/object:Gem::Dependency
104
+ name: yajl-ruby
105
+ requirement: &70196233090980 !ruby/object:Gem::Requirement
108
106
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: "0"
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
113
111
  type: :runtime
114
- version_requirements: *id009
115
- - !ruby/object:Gem::Dependency
116
- name: haml
117
112
  prerelease: false
118
- requirement: &id010 !ruby/object:Gem::Requirement
113
+ version_requirements: *70196233090980
114
+ - !ruby/object:Gem::Dependency
115
+ name: haml
116
+ requirement: &70196233090520 !ruby/object:Gem::Requirement
119
117
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: "0"
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
124
122
  type: :runtime
125
- version_requirements: *id010
126
- - !ruby/object:Gem::Dependency
127
- name: sqlite3
128
123
  prerelease: false
129
- requirement: &id011 !ruby/object:Gem::Requirement
124
+ version_requirements: *70196233090520
125
+ - !ruby/object:Gem::Dependency
126
+ name: sqlite3
127
+ requirement: &70196233090000 !ruby/object:Gem::Requirement
130
128
  none: false
131
- requirements:
129
+ requirements:
132
130
  - - ~>
133
- - !ruby/object:Gem::Version
131
+ - !ruby/object:Gem::Version
134
132
  version: 1.3.4
135
133
  type: :runtime
136
- version_requirements: *id011
137
- - !ruby/object:Gem::Dependency
138
- name: activerecord
139
134
  prerelease: false
140
- requirement: &id012 !ruby/object:Gem::Requirement
135
+ version_requirements: *70196233090000
136
+ - !ruby/object:Gem::Dependency
137
+ name: activerecord
138
+ requirement: &70196233089500 !ruby/object:Gem::Requirement
141
139
  none: false
142
- requirements:
140
+ requirements:
143
141
  - - ~>
144
- - !ruby/object:Gem::Version
142
+ - !ruby/object:Gem::Version
145
143
  version: 3.1.0
146
144
  type: :runtime
147
- version_requirements: *id012
148
- - !ruby/object:Gem::Dependency
149
- name: grit
150
145
  prerelease: false
151
- requirement: &id013 !ruby/object:Gem::Requirement
146
+ version_requirements: *70196233089500
147
+ - !ruby/object:Gem::Dependency
148
+ name: grit
149
+ requirement: &70196233089020 !ruby/object:Gem::Requirement
152
150
  none: false
153
- requirements:
151
+ requirements:
154
152
  - - ~>
155
- - !ruby/object:Gem::Version
153
+ - !ruby/object:Gem::Version
156
154
  version: 2.4.1
157
155
  type: :runtime
158
- version_requirements: *id013
159
- - !ruby/object:Gem::Dependency
160
- name: shell_tools
161
156
  prerelease: false
162
- requirement: &id014 !ruby/object:Gem::Requirement
157
+ version_requirements: *70196233089020
158
+ - !ruby/object:Gem::Dependency
159
+ name: shell_tools
160
+ requirement: &70196233088540 !ruby/object:Gem::Requirement
163
161
  none: false
164
- requirements:
162
+ requirements:
165
163
  - - ~>
166
- - !ruby/object:Gem::Version
164
+ - !ruby/object:Gem::Version
167
165
  version: 0.1.0
168
166
  type: :runtime
169
- version_requirements: *id014
170
- - !ruby/object:Gem::Dependency
171
- name: mimetype-fu
172
167
  prerelease: false
173
- requirement: &id015 !ruby/object:Gem::Requirement
168
+ version_requirements: *70196233088540
169
+ - !ruby/object:Gem::Dependency
170
+ name: mimetype-fu
171
+ requirement: &70196233088080 !ruby/object:Gem::Requirement
174
172
  none: false
175
- requirements:
173
+ requirements:
176
174
  - - ~>
177
- - !ruby/object:Gem::Version
175
+ - !ruby/object:Gem::Version
178
176
  version: 0.1.2
179
177
  type: :runtime
180
- version_requirements: *id015
181
- - !ruby/object:Gem::Dependency
182
- name: eventmachine
183
178
  prerelease: false
184
- requirement: &id016 !ruby/object:Gem::Requirement
179
+ version_requirements: *70196233088080
180
+ - !ruby/object:Gem::Dependency
181
+ name: eventmachine
182
+ requirement: &70196233087600 !ruby/object:Gem::Requirement
185
183
  none: false
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
189
187
  version: 1.0.0.beta.3
190
188
  type: :runtime
191
- version_requirements: *id016
192
- - !ruby/object:Gem::Dependency
193
- name: minitest
194
189
  prerelease: false
195
- requirement: &id017 !ruby/object:Gem::Requirement
190
+ version_requirements: *70196233087600
191
+ - !ruby/object:Gem::Dependency
192
+ name: minitest
193
+ requirement: &70196233087140 !ruby/object:Gem::Requirement
196
194
  none: false
197
- requirements:
195
+ requirements:
198
196
  - - ~>
199
- - !ruby/object:Gem::Version
197
+ - !ruby/object:Gem::Version
200
198
  version: 2.6.1
201
199
  type: :development
202
- version_requirements: *id017
203
- - !ruby/object:Gem::Dependency
204
- name: rake
205
200
  prerelease: false
206
- requirement: &id018 !ruby/object:Gem::Requirement
201
+ version_requirements: *70196233087140
202
+ - !ruby/object:Gem::Dependency
203
+ name: rake
204
+ requirement: &70196233086740 !ruby/object:Gem::Requirement
207
205
  none: false
208
- requirements:
209
- - - ">="
210
- - !ruby/object:Gem::Version
211
- version: "0"
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
212
210
  type: :development
213
- version_requirements: *id018
214
- - !ruby/object:Gem::Dependency
215
- name: mocha
216
211
  prerelease: false
217
- requirement: &id019 !ruby/object:Gem::Requirement
212
+ version_requirements: *70196233086740
213
+ - !ruby/object:Gem::Dependency
214
+ name: mocha
215
+ requirement: &70196233086280 !ruby/object:Gem::Requirement
218
216
  none: false
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: "0"
217
+ requirements:
218
+ - - ! '>='
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
223
221
  type: :development
224
- version_requirements: *id019
225
- - !ruby/object:Gem::Dependency
226
- name: fakeweb
227
222
  prerelease: false
228
- requirement: &id020 !ruby/object:Gem::Requirement
223
+ version_requirements: *70196233086280
224
+ - !ruby/object:Gem::Dependency
225
+ name: fakeweb
226
+ requirement: &70196233085840 !ruby/object:Gem::Requirement
229
227
  none: false
230
- requirements:
231
- - - ">="
232
- - !ruby/object:Gem::Version
233
- version: "0"
228
+ requirements:
229
+ - - ! '>='
230
+ - !ruby/object:Gem::Version
231
+ version: '0'
234
232
  type: :development
235
- version_requirements: *id020
233
+ prerelease: false
234
+ version_requirements: *70196233085840
236
235
  description: Open-source Dropbox using Ruby and Git.
237
- email:
236
+ email:
238
237
  - joshbuddy@gmail.com
239
238
  - nesquena@gmail.com
240
- executables:
239
+ executables:
241
240
  - gitdocs
242
241
  extensions: []
243
-
244
242
  extra_rdoc_files: []
245
-
246
- files:
243
+ files:
247
244
  - .gitignore
248
245
  - CHANGELOG
249
246
  - Gemfile
@@ -327,32 +324,35 @@ files:
327
324
  - test/test_helper.rb
328
325
  homepage: http://engineering.gomiso.com/2011/11/30/collaborate-and-track-tasks-with-ease-using-gitdocs/
329
326
  licenses: []
330
-
331
327
  post_install_message:
332
328
  rdoc_options: []
333
-
334
- require_paths:
329
+ require_paths:
335
330
  - lib
336
- required_ruby_version: !ruby/object:Gem::Requirement
331
+ required_ruby_version: !ruby/object:Gem::Requirement
337
332
  none: false
338
- requirements:
339
- - - ">="
340
- - !ruby/object:Gem::Version
341
- version: "0"
342
- required_rubygems_version: !ruby/object:Gem::Requirement
333
+ requirements:
334
+ - - ! '>='
335
+ - !ruby/object:Gem::Version
336
+ version: '0'
337
+ segments:
338
+ - 0
339
+ hash: -356674648532103914
340
+ required_rubygems_version: !ruby/object:Gem::Requirement
343
341
  none: false
344
- requirements:
345
- - - ">="
346
- - !ruby/object:Gem::Version
347
- version: "0"
342
+ requirements:
343
+ - - ! '>='
344
+ - !ruby/object:Gem::Version
345
+ version: '0'
346
+ segments:
347
+ - 0
348
+ hash: -356674648532103914
348
349
  requirements: []
349
-
350
350
  rubyforge_project: gitdocs
351
- rubygems_version: 1.8.12
351
+ rubygems_version: 1.8.10
352
352
  signing_key:
353
353
  specification_version: 3
354
354
  summary: Open-source Dropbox using Ruby and Git
355
- test_files:
355
+ test_files:
356
356
  - test/configuration_test.rb
357
357
  - test/runner_test.rb
358
358
  - test/test_helper.rb