cabin-web 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cabin/web/logs.rb +7 -2
  2. metadata +24 -34
@@ -50,8 +50,13 @@ class Cabin::Web::Logs < Sinatra::Base
50
50
  message = queue.pop
51
51
  begin
52
52
  websocket.publish(message.to_json)
53
- rescue Errno::EPIPE, Errno::ECONNRESET
54
- # finish since the client died or went away
53
+ rescue Errno::EPIPE, Errno::ECONNRESET, SystemCallError
54
+ # JRuby tosses this instead of Errno::EPIPE:
55
+ # #<SystemCallError: Unknown error - Broken pipe>
56
+ # org/jruby/RubyIO.java:1291:in `syswrite'
57
+ #
58
+ # If we get here, there was an error writing to the receiver.
59
+ # This connection's dead and gone, so return.
55
60
  return
56
61
  end
57
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cabin-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,23 +13,18 @@ date: 2012-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cabin
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &8034180 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 0.4.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *8034180
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: json
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &8033680 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: '0'
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
35
+ version_requirements: *8033680
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: sinatra
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &8033100 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ! '>='
@@ -53,28 +43,29 @@ dependencies:
53
43
  version: '0'
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
46
+ version_requirements: *8033100
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: ftw
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &8032500 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ~>
68
53
  - !ruby/object:Gem::Version
69
- version: 0.0.10
54
+ version: 0.0.11
70
55
  type: :runtime
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
57
+ version_requirements: *8032500
58
+ - !ruby/object:Gem::Dependency
59
+ name: haml
60
+ requirement: &8032020 !ruby/object:Gem::Requirement
73
61
  none: false
74
62
  requirements:
75
- - - ~>
63
+ - - ! '>='
76
64
  - !ruby/object:Gem::Version
77
- version: 0.0.10
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *8032020
78
69
  description: Web interface on cabin
79
70
  email:
80
71
  - jls@semicomplete.com
@@ -82,10 +73,10 @@ executables: []
82
73
  extensions: []
83
74
  extra_rdoc_files: []
84
75
  files:
85
- - lib/cabin/web/views/index.haml
86
- - lib/cabin/web/public/js/vendor/coffee-script.js
87
- - lib/cabin/web/public/js/cabinweb.coffee
88
76
  - lib/cabin/web/public/css/style.css
77
+ - lib/cabin/web/public/js/cabinweb.coffee
78
+ - lib/cabin/web/public/js/vendor/coffee-script.js
79
+ - lib/cabin/web/views/index.haml
89
80
  - lib/cabin/web/logs.rb
90
81
  homepage: https://github.com/jordansissel/ruby-cabin-web
91
82
  licenses:
@@ -109,9 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
100
  version: '0'
110
101
  requirements: []
111
102
  rubyforge_project:
112
- rubygems_version: 1.8.18
103
+ rubygems_version: 1.8.15
113
104
  signing_key:
114
105
  specification_version: 3
115
106
  summary: Web interface on cabin
116
107
  test_files: []
117
- has_rdoc: