sinatra-websocketio 0.3.4 → 0.3.5

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: 5f7cd6090525d64134ea7cc0916eca32c2ee1b09
4
- data.tar.gz: 4b1353875bd2bd6b846310dc59a402797f3f635f
3
+ metadata.gz: 5d7891b6aad93861982e3e0ba15f735e06837e4a
4
+ data.tar.gz: bae64259a47ea48715acc6b64b48856b3d35c982
5
5
  SHA512:
6
- metadata.gz: 45d427f25443db8f91ab022c2f04f9207d4e727b514dd679cc0fd05b3a2484318fa51738d3463593caf7c58fe4a81336cd5d29a1b85bf7a9a433bb1b666fe5eb
7
- data.tar.gz: 55eaca6ca914f747b6b0b4ed5db672ea7f6c675f166d601cbe8442542103a9c2d3b8ac40fb99606905270d714c871b24a779fa3d7d86d99983e1eb6d8592fa22
6
+ metadata.gz: 5e7aa76c655ab3a5910e16b3974098a9df363e730c850eddbc9c341a252bf53c1854c5eb3ddeb55386d1ee25133e40fec724bfc1d37ba4ebde8f4bc5bb9aebcb
7
+ data.tar.gz: c90d1adca5c5250d17c4f29f5d630519ce5f89c018a04f591c0019e99d887d01d571047d461bda40cd1046992d9ef8aa04817bef2c58a3e6a966bac2134b2f7c
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.3.5 2013-08-09
2
+
3
+ * push "__heartbeat" message from server every 300 sec
4
+
1
5
  === 0.3.4 2013-08-02
2
6
 
3
7
  * delete unnecessary code
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module WebSocketIO
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
@@ -42,6 +42,10 @@ module Sinatra
42
42
 
43
43
  end
44
44
  end
45
+
46
+ EM::add_periodic_timer 300 do
47
+ push :__heartbeat, {:time => Time.now}
48
+ end
45
49
  end
46
50
  end
47
51
 
@@ -16,6 +16,8 @@ Gem::Specification.new do |gem|
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ["lib"]
18
18
 
19
+ gem.add_development_dependency 'bundler', '~> 1.3'
20
+ gem.add_development_dependency 'rake'
19
21
  gem.add_development_dependency 'minitest'
20
22
  gem.add_development_dependency 'thin'
21
23
  gem.add_development_dependency 'haml'
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-02 00:00:00.000000000 Z
11
+ date: 2013-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: minitest
15
43
  requirement: !ruby/object:Gem::Requirement