jschat 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/jschat/server.rb +4 -1
  2. metadata +55 -46
data/lib/jschat/server.rb CHANGED
@@ -143,6 +143,10 @@ module JsChat
143
143
  room
144
144
  end
145
145
 
146
+ def self.rooms
147
+ @@rooms
148
+ end
149
+
146
150
  def lastlog(since = nil)
147
151
  { 'display' => 'messages', 'messages' => messages_since(since) }
148
152
  end
@@ -432,7 +436,6 @@ module JsChat
432
436
  @@users ||= []
433
437
  @@stateless_cookies ||= []
434
438
  @user = User.new(self)
435
- @@users << @user
436
439
  end
437
440
 
438
441
  def log(level, message)
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jschat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 8
9
+ version: 0.2.8
5
10
  platform: ruby
6
11
  authors:
7
12
  - Alex R. Young
@@ -14,54 +19,74 @@ default_executable: bin/jschat-server
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: sinatra
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 9
30
+ - 4
23
31
  version: 0.9.4
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: json
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 1
44
+ - 9
33
45
  version: 1.1.9
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: sprockets
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 0
58
+ - 2
43
59
  version: 1.0.2
44
- version:
60
+ type: :runtime
61
+ version_requirements: *id003
45
62
  - !ruby/object:Gem::Dependency
46
63
  name: eventmachine
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - ">="
52
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ - 12
72
+ - 8
53
73
  version: 0.12.8
54
- version:
74
+ type: :runtime
75
+ version_requirements: *id004
55
76
  - !ruby/object:Gem::Dependency
56
77
  name: ncurses
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
60
80
  requirements:
61
81
  - - ">="
62
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ - 9
86
+ - 1
63
87
  version: 0.9.1
64
- version:
88
+ type: :runtime
89
+ version_requirements: *id005
65
90
  description: JsChat is a JSON-based web and console chat app.
66
91
  email: alex@alexyoung.org
67
92
  executables:
@@ -76,21 +101,14 @@ files:
76
101
  - bin/jschat-client
77
102
  - bin/jschat-server
78
103
  - bin/jschat-web
79
- - lib/jschat
80
104
  - lib/jschat/client.rb
81
105
  - lib/jschat/errors.rb
82
106
  - lib/jschat/flood_protection.rb
83
- - lib/jschat/http
84
- - lib/jschat/http/config
85
107
  - lib/jschat/http/config/sprockets.yml
86
108
  - lib/jschat/http/config.ru
87
- - lib/jschat/http/helpers
88
109
  - lib/jschat/http/helpers/url_for.rb
89
110
  - lib/jschat/http/jschat.rb
90
- - lib/jschat/http/public
91
111
  - lib/jschat/http/public/favicon.ico
92
- - lib/jschat/http/public/images
93
- - lib/jschat/http/public/images/emoticons
94
112
  - lib/jschat/http/public/images/emoticons/angry.gif
95
113
  - lib/jschat/http/public/images/emoticons/arr.gif
96
114
  - lib/jschat/http/public/images/emoticons/blink.gif
@@ -143,37 +161,25 @@ files:
143
161
  - lib/jschat/http/public/images/emoticons/yucky.gif
144
162
  - lib/jschat/http/public/images/jschat.gif
145
163
  - lib/jschat/http/public/images/shadow.png
146
- - lib/jschat/http/public/javascripts
147
- - lib/jschat/http/public/javascripts/app
148
- - lib/jschat/http/public/javascripts/app/controllers
149
164
  - lib/jschat/http/public/javascripts/app/controllers/chat_controller.js
150
165
  - lib/jschat/http/public/javascripts/app/controllers/signon_controller.js
151
- - lib/jschat/http/public/javascripts/app/helpers
152
166
  - lib/jschat/http/public/javascripts/app/helpers/emote_helper.js
153
167
  - lib/jschat/http/public/javascripts/app/helpers/form_helpers.js
154
168
  - lib/jschat/http/public/javascripts/app/helpers/link_helper.js
155
169
  - lib/jschat/http/public/javascripts/app/helpers/page_helper.js
156
170
  - lib/jschat/http/public/javascripts/app/helpers/text_helper.js
157
- - lib/jschat/http/public/javascripts/app/lib
158
171
  - lib/jschat/http/public/javascripts/app/lib/split.js
159
- - lib/jschat/http/public/javascripts/app/models
160
172
  - lib/jschat/http/public/javascripts/app/models/cookie.js
161
- - lib/jschat/http/public/javascripts/app/protocol
162
173
  - lib/jschat/http/public/javascripts/app/protocol/change.js
163
174
  - lib/jschat/http/public/javascripts/app/protocol/chat_request.js
164
175
  - lib/jschat/http/public/javascripts/app/protocol/display.js
165
- - lib/jschat/http/public/javascripts/app/ui
166
176
  - lib/jschat/http/public/javascripts/app/ui/commands.js
167
177
  - lib/jschat/http/public/javascripts/app/ui/tab_completion.js
168
178
  - lib/jschat/http/public/javascripts/init.js
169
- - lib/jschat/http/public/stylesheets
170
179
  - lib/jschat/http/public/stylesheets/iphone.css
171
180
  - lib/jschat/http/public/stylesheets/screen.css
172
- - lib/jschat/http/script
173
181
  - lib/jschat/http/script/sprockets.rb
174
- - lib/jschat/http/tmp
175
182
  - lib/jschat/http/tmp/restart.txt
176
- - lib/jschat/http/views
177
183
  - lib/jschat/http/views/form.erb
178
184
  - lib/jschat/http/views/index.erb
179
185
  - lib/jschat/http/views/iphone.erb
@@ -183,7 +189,6 @@ files:
183
189
  - lib/jschat/init.rb
184
190
  - lib/jschat/server.rb
185
191
  - lib/jschat/server_options.rb
186
- - lib/jschat/storage
187
192
  - lib/jschat/storage/init.rb
188
193
  - lib/jschat/storage/mongo.rb
189
194
  - lib/jschat/storage/null.rb
@@ -192,8 +197,10 @@ files:
192
197
  - test/test_helper.rb
193
198
  - README.textile
194
199
  - MIT-LICENSE
195
- has_rdoc: false
200
+ has_rdoc: true
196
201
  homepage: http://github.com/alexyoung/jschat
202
+ licenses: []
203
+
197
204
  post_install_message:
198
205
  rdoc_options: []
199
206
 
@@ -203,20 +210,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
210
  requirements:
204
211
  - - ">="
205
212
  - !ruby/object:Gem::Version
213
+ segments:
214
+ - 0
206
215
  version: "0"
207
- version:
208
216
  required_rubygems_version: !ruby/object:Gem::Requirement
209
217
  requirements:
210
218
  - - ">="
211
219
  - !ruby/object:Gem::Version
220
+ segments:
221
+ - 0
212
222
  version: "0"
213
- version:
214
223
  requirements: []
215
224
 
216
225
  rubyforge_project:
217
- rubygems_version: 1.3.1
226
+ rubygems_version: 1.3.6
218
227
  signing_key:
219
- specification_version: 2
228
+ specification_version: 3
220
229
  summary: JsChat features a chat server, client and web app.
221
230
  test_files: []
222
231