sinatra-websocketio 0.3.3 → 0.3.4

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: 87e81dd7d956546a63765eec5635752e153a12e7
4
- data.tar.gz: bf0944f47fdded83d158073cc9580ef3d9358189
3
+ metadata.gz: 5f7cd6090525d64134ea7cc0916eca32c2ee1b09
4
+ data.tar.gz: 4b1353875bd2bd6b846310dc59a402797f3f635f
5
5
  SHA512:
6
- metadata.gz: a3789b565ceb149682cf6055374c4b1eed253c5fc8c14cad4dee7299beb14819c59ee7599634ee4cfbf7754fd4acc6d3d047a5185946ac30e9e5e33bf502f205
7
- data.tar.gz: 3b2559f5ba4ca05a03945797159d4aa8bac01d2680c1a42db34794faec4d48e29dd6d57037b8707721a0381d7631fb9de085a97a1fcb307e398a9e56c8f3c2c6
6
+ metadata.gz: 45d427f25443db8f91ab022c2f04f9207d4e727b514dd679cc0fd05b3a2484318fa51738d3463593caf7c58fe4a81336cd5d29a1b85bf7a9a433bb1b666fe5eb
7
+ data.tar.gz: 55eaca6ca914f747b6b0b4ed5db672ea7f6c675f166d601cbe8442542103a9c2d3b8ac40fb99606905270d714c871b24a779fa3d7d86d99983e1eb6d8592fa22
data/.gitignore CHANGED
@@ -10,6 +10,7 @@ config.yml
10
10
  *.rbc
11
11
  .config
12
12
  .yardoc
13
+ .ruby-version
13
14
  InstalledFiles
14
15
  _yardoc
15
16
  coverage
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.3.4 2013-08-02
2
+
3
+ * delete unnecessary code
4
+ * use jquery 1.10.2 in sample app
5
+
1
6
  === 0.3.3 2013-06-05
2
7
 
3
8
  * fix JS lib
data/README.md CHANGED
@@ -47,7 +47,7 @@ io.push :light, {:value => 150}, {:to => session_id} # to specific client
47
47
  Client Side
48
48
 
49
49
  ```html
50
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
50
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
51
51
  <script src="<%= websocketio_js %>"></script>
52
52
  ```
53
53
  ```javascript
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module WebSocketIO
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -46,7 +46,6 @@ module Sinatra
46
46
  end
47
47
 
48
48
  def self.push(type, data, opt={})
49
- session_ids = opt[:to].to_s.empty? ? self.sessions.keys : [opt[:to]]
50
49
  if opt.include? :to
51
50
  return unless self.sessions.include? opt[:to]
52
51
  s = self.sessions[opt[:to]]
@@ -4,7 +4,7 @@
4
4
  %meta{'http-equiv' => 'Content-Type', :content => 'text/html', :charset => 'UTF-8'}
5
5
  %title websocket chat
6
6
  %link{:rel => 'stylesheet', :href => "/main.css", :type => 'text/css'}
7
- %script{:type => 'text/javascript', :src => "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"}
7
+ %script{:type => 'text/javascript', :src => "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"}
8
8
  %script{:type => 'text/javascript', :src => websocketio_js}
9
9
  %script{:type => 'text/javascript', :src => "/js/index.js"}
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-06-04 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  requirements: []
237
237
  rubyforge_project:
238
- rubygems_version: 2.0.3
238
+ rubygems_version: 2.0.5
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: WebSocket component for Sinatra RocketIO
@@ -245,4 +245,3 @@ test_files:
245
245
  - test/app/main.rb
246
246
  - test/test_helper.rb
247
247
  - test/test_websocketio.rb
248
- has_rdoc: