writefully 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8580c8cc43be8e2a3afe18254dc391b57ccb1479
4
- data.tar.gz: cfbbb50acd8d980ee5cc01877410e57ccfe9f597
3
+ metadata.gz: 9661cb0c43baeaae6e93d73d5436a600cc2f638f
4
+ data.tar.gz: 8f7eab972b8cd354ec2a3104e883a5a41a8f1cbb
5
5
  SHA512:
6
- metadata.gz: f4c56d89bbf8cafd6f05913095b30de39dad10ca675d75c6af98021a45e7d455029e376aa1169f2773f53e74e4346aa81669eb10d1379b349760a5e7489625d2
7
- data.tar.gz: e1370d730615c87584f8a7b96e55fae416481fc0017101d80f8bd9bb217b4d07dd09c6426c6769aeb431f890e478469f914ed39f91c622836a3473d9d0fa2a1e
6
+ metadata.gz: 09f1d87342b80eb48fc61393d92282b0efbf41f14ec1f39c6acb7eebe508014faa0444e105c4376acff144c63d5d5db683ad7a2d8c029d6b12e5af508a690949
7
+ data.tar.gz: f1b26afaea6b69d8772d9981aff37d48377827eb9a365d8041ff7a7534d76793e91076cd8b10502a03eaeb7addc38c4f9e91fdb9b70cb008ac628eafbaa533ae
@@ -13,6 +13,7 @@ module Writefully
13
13
 
14
14
  if options.daemonize?
15
15
  ::Process.daemon(true, true)
16
+ setup_logger(config[:logfile])
16
17
  write(::Process.pid, config[:pidfile])
17
18
  spawn(listen(config))
18
19
  else
@@ -47,6 +48,16 @@ module Writefully
47
48
  Writefully::Process.new(config).listen
48
49
  end
49
50
 
51
+ def setup_logger(logfile)
52
+ [$stdout, $stderr].each do |io|
53
+ File.open(logfile, 'ab') do |f|
54
+ io.reopen(f)
55
+ end
56
+ io.sync = true
57
+ end
58
+ $stdin.reopen('/dev/null')
59
+ end
60
+
50
61
  def write pid, pidfile
51
62
  File.open pidfile, "w" do |f|
52
63
  f.write pid
@@ -1,3 +1,3 @@
1
1
  module Writefully
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
@@ -17,7 +17,7 @@ module Writefully
17
17
  end
18
18
 
19
19
  def actor_died(actor, reason)
20
- Writefully.logger.error "An error occured #{reason.class} #{reason.message}"
20
+ Writefully.logger.error "#{reason.class} #{reason.message} #{reason.backtrace}"
21
21
  on_death(actor, reason) if self.respond_to?(:on_death)
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: writefully
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zack Siri
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coffee-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sass-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.0'
55
55
  - !ruby/object:Gem::Dependency
@@ -70,280 +70,280 @@ dependencies:
70
70
  name: celluloid
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: fog
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: unf
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: listen
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '2.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '2.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: thor
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: pg
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: hashie
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: friendly_id
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: github_api
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: connection_pool
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - '>='
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: redis
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - '>='
213
+ - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - '>='
220
+ - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: redis-namespace
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - '>='
227
+ - - ">="
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - '>='
234
+ - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: activerecord-import
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - '>='
241
+ - - ">="
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - '>='
248
+ - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: jquery-rails
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - '>='
255
+ - - ">="
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0'
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - '>='
262
+ - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: turbolinks
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - '>='
269
+ - - ">="
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  type: :runtime
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - '>='
276
+ - - ">="
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: transponder
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
- - - '>='
283
+ - - ">="
284
284
  - !ruby/object:Gem::Version
285
285
  version: '0'
286
286
  type: :runtime
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - '>='
290
+ - - ">="
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0'
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: bootstrap-sass
295
295
  requirement: !ruby/object:Gem::Requirement
296
296
  requirements:
297
- - - '>='
297
+ - - ">="
298
298
  - !ruby/object:Gem::Version
299
299
  version: '0'
300
300
  type: :runtime
301
301
  prerelease: false
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
- - - '>='
304
+ - - ">="
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0'
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: pry
309
309
  requirement: !ruby/object:Gem::Requirement
310
310
  requirements:
311
- - - '>='
311
+ - - ">="
312
312
  - !ruby/object:Gem::Version
313
313
  version: '0'
314
314
  type: :development
315
315
  prerelease: false
316
316
  version_requirements: !ruby/object:Gem::Requirement
317
317
  requirements:
318
- - - '>='
318
+ - - ">="
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: rspec-rails
323
323
  requirement: !ruby/object:Gem::Requirement
324
324
  requirements:
325
- - - '>='
325
+ - - ">="
326
326
  - !ruby/object:Gem::Version
327
327
  version: '0'
328
328
  type: :development
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
- - - '>='
332
+ - - ">="
333
333
  - !ruby/object:Gem::Version
334
334
  version: '0'
335
335
  - !ruby/object:Gem::Dependency
336
336
  name: capybara
337
337
  requirement: !ruby/object:Gem::Requirement
338
338
  requirements:
339
- - - '>='
339
+ - - ">="
340
340
  - !ruby/object:Gem::Version
341
341
  version: '0'
342
342
  type: :development
343
343
  prerelease: false
344
344
  version_requirements: !ruby/object:Gem::Requirement
345
345
  requirements:
346
- - - '>='
346
+ - - ">="
347
347
  - !ruby/object:Gem::Version
348
348
  version: '0'
349
349
  description: Allows developer to quickly publish to their site using git hooks
@@ -354,11 +354,14 @@ executables:
354
354
  extensions: []
355
355
  extra_rdoc_files: []
356
356
  files:
357
+ - MIT-LICENSE
358
+ - README.md
359
+ - Rakefile
360
+ - app/assets/javascripts/writefully/writefully.coffee
357
361
  - app/assets/javascripts/writefully/writefully/initializers/boot.coffee
358
362
  - app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
359
363
  - app/assets/javascripts/writefully/writefully/initializers/setup.coffee
360
364
  - app/assets/javascripts/writefully/writefully/loader.coffee
361
- - app/assets/javascripts/writefully/writefully.coffee
362
365
  - app/assets/stylesheets/writefully/base.sass
363
366
  - app/assets/stylesheets/writefully/sessions.sass
364
367
  - app/assets/stylesheets/writefully/sites.sass
@@ -404,20 +407,23 @@ files:
404
407
  - app/views/writefully/sites/new.html.erb
405
408
  - app/views/writefully/sites/processing/_no.html.erb
406
409
  - app/views/writefully/sites/processing/_yes.html.erb
410
+ - app/views/writefully/sites/show.html.erb
407
411
  - app/views/writefully/sites/show/_errors.html.erb
408
412
  - app/views/writefully/sites/show/_heading.html.erb
409
413
  - app/views/writefully/sites/show/_processing.html.erb
410
414
  - app/views/writefully/sites/show/_tabs.html.erb
411
- - app/views/writefully/sites/show.html.erb
415
+ - bin/rails
416
+ - bin/writefully
412
417
  - config/routes.rb
413
418
  - db/migrate/20140402091204_create_writefully_posts.rb
414
419
  - db/migrate/20140402091244_create_writefully_tags.rb
415
420
  - db/migrate/20140402091415_create_writefully_taggings.rb
416
421
  - db/migrate/20140402200330_create_writefully_authorships.rb
417
422
  - db/migrate/20140403181629_create_writefully_sites.rb
418
- - lib/sample/meta.yml
419
423
  - lib/sample/README.md
424
+ - lib/sample/meta.yml
420
425
  - lib/sample/writefully.png
426
+ - lib/writefully.rb
421
427
  - lib/writefully/asset.rb
422
428
  - lib/writefully/cli.rb
423
429
  - lib/writefully/content.rb
@@ -430,6 +436,7 @@ files:
430
436
  - lib/writefully/source.rb
431
437
  - lib/writefully/storage.rb
432
438
  - lib/writefully/taxon.rb
439
+ - lib/writefully/tools.rb
433
440
  - lib/writefully/tools/dispatcher.rb
434
441
  - lib/writefully/tools/eraser.rb
435
442
  - lib/writefully/tools/hammer.rb
@@ -438,26 +445,20 @@ files:
438
445
  - lib/writefully/tools/pigeon.rb
439
446
  - lib/writefully/tools/retryer.rb
440
447
  - lib/writefully/tools/synchronizer.rb
441
- - lib/writefully/tools.rb
442
448
  - lib/writefully/version.rb
449
+ - lib/writefully/workers.rb
443
450
  - lib/writefully/workers/base_worker.rb
444
451
  - lib/writefully/workers/handyman.rb
445
- - lib/writefully/workers/helpers/handyman/builder.rb
446
452
  - lib/writefully/workers/helpers.rb
453
+ - lib/writefully/workers/helpers/handyman/builder.rb
447
454
  - lib/writefully/workers/journalist.rb
448
- - lib/writefully/workers.rb
449
455
  - lib/writefully/workers_helpers.rb
450
- - lib/writefully.rb
451
456
  - scripts/initialize.sh
452
457
  - scripts/sync.sh
453
- - bin/rails
454
- - bin/writefully
455
- - MIT-LICENSE
456
- - Rakefile
457
- - README.md
458
458
  - spec/controllers/writefully/hooks_controller_spec.rb
459
459
  - spec/controllers/writefully/posts_controller_spec.rb
460
460
  - spec/controllers/writefully/sites_controller_spec.rb
461
+ - spec/dummy/Rakefile
461
462
  - spec/dummy/app/controllers/application_controller.rb
462
463
  - spec/dummy/app/models/playlist.rb
463
464
  - spec/dummy/app/models/post.rb
@@ -465,6 +466,7 @@ files:
465
466
  - spec/dummy/bin/bundle
466
467
  - spec/dummy/bin/rails
467
468
  - spec/dummy/bin/rake
469
+ - spec/dummy/config.ru
468
470
  - spec/dummy/config/application.rb
469
471
  - spec/dummy/config/boot.rb
470
472
  - spec/dummy/config/database.yml
@@ -482,19 +484,17 @@ files:
482
484
  - spec/dummy/config/locales/en.yml
483
485
  - spec/dummy/config/routes.rb
484
486
  - spec/dummy/config/writefully.yml
485
- - spec/dummy/config.ru
487
+ - spec/dummy/content/codemy-net/posts/1-hash-selector-pattern/README.md
486
488
  - spec/dummy/content/codemy-net/posts/1-hash-selector-pattern/assets/hash-selector-cover.png
487
489
  - spec/dummy/content/codemy-net/posts/1-hash-selector-pattern/assets/hash-selector-icon.png
488
490
  - spec/dummy/content/codemy-net/posts/1-hash-selector-pattern/benchmark/selector.rb
489
491
  - spec/dummy/content/codemy-net/posts/1-hash-selector-pattern/meta.yml
490
- - spec/dummy/content/codemy-net/posts/1-hash-selector-pattern/README.md
492
+ - spec/dummy/content/codemy-net/posts/2-rails-flash-partials/README.md
491
493
  - spec/dummy/content/codemy-net/posts/2-rails-flash-partials/assets/cover.png
492
494
  - spec/dummy/content/codemy-net/posts/2-rails-flash-partials/meta.yml
493
- - spec/dummy/content/codemy-net/posts/2-rails-flash-partials/README.md
494
495
  - spec/dummy/db/schema.rb
495
496
  - spec/dummy/log/development.log
496
497
  - spec/dummy/log/test.log
497
- - spec/dummy/Rakefile
498
498
  - spec/dummy/tmp/cache/assets/development/sass/77bc3b7f842c905df4dddb7e3ac7b7cf15d9035b/application.sassc
499
499
  - spec/dummy/tmp/cache/assets/development/sass/77bc3b7f842c905df4dddb7e3ac7b7cf15d9035b/bootstrap.cssc
500
500
  - spec/dummy/tmp/cache/assets/development/sass/77bc3b7f842c905df4dddb7e3ac7b7cf15d9035b/setups.sassc
@@ -689,17 +689,17 @@ require_paths:
689
689
  - lib
690
690
  required_ruby_version: !ruby/object:Gem::Requirement
691
691
  requirements:
692
- - - '>='
692
+ - - ">="
693
693
  - !ruby/object:Gem::Version
694
694
  version: '0'
695
695
  required_rubygems_version: !ruby/object:Gem::Requirement
696
696
  requirements:
697
- - - '>='
697
+ - - ">="
698
698
  - !ruby/object:Gem::Version
699
699
  version: '0'
700
700
  requirements: []
701
701
  rubyforge_project:
702
- rubygems_version: 2.1.11
702
+ rubygems_version: 2.2.2
703
703
  signing_key:
704
704
  specification_version: 4
705
705
  summary: Makes publishing content easier by using black magic