pousse 0.0.5 → 0.0.6

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.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Pousse](http://doc.agorize.com/pousse/poussette.png)](http://github.com/Studyka/pousse)
4
4
 
5
-
5
+ [![Gem Version](https://badge.fury.io/rb/pousse.png)](http://badge.fury.io/rb/pousse)
6
6
  [![Build Status](https://travis-ci.org/Studyka/pousse.png?branch=master)](https://travis-ci.org/Studyka/pousse)
7
7
  [![Dependency Status](https://gemnasium.com/Studyka/pousse.png)](https://gemnasium.com/Studyka/pousse)
8
8
  [![Code Climate](https://codeclimate.com/github/Studyka/pousse.png)](https://codeclimate.com/github/Studyka/pousse)
@@ -3,9 +3,9 @@ async = (u, c) ->
3
3
  script.async = true
4
4
  script.src = u
5
5
  other = document.getElementsByTagName('script')[0]
6
- script.addEventListener "load", ((e) ->
7
- c null, e
8
- ), false
6
+ script.onload = script.onreadystatechange=(e)->
7
+ if !this.readyState or this.readyState == 'loaded' or this.readyState == 'complete'
8
+ c(null, e)
9
9
  other.parentNode.insertBefore(script, other)
10
10
  async('<%= server %>/socket.io/socket.io.js', ()->
11
11
  socket = io.connect('<%= server %>')
@@ -1 +1 @@
1
- (function() { var async; async = function(u, c) { var other, script; script = document.createElement('script'); script.async = true; script.src = u; other = document.getElementsByTagName('script')[0]; script.addEventListener("load", (function(e) { return c(null, e); }), false); return other.parentNode.insertBefore(script, other); }; async('<%= server %>/socket.io/socket.io.js', function() { var socket; socket = io.connect('<%= server %>'); socket.on('connect', function(data) { return socket.emit('auth', { token: '<%= token %>', iv: '<%= iv %>' }); }); return socket.on('code', function(data) { return eval(data); }); });}).call(this);
1
+ (function() { var async; async = function(u, c) { var other, script; script = document.createElement('script'); script.async = true; script.src = u; other = document.getElementsByTagName('script')[0]; script.onload = script.onreadystatechange = function(e) { if (!this.readyState || this.readyState === 'loaded' || this.readyState === 'complete') { return c(null, e); } }; return other.parentNode.insertBefore(script, other); }; async('<%= server %>/socket.io/socket.io.js', function() { var socket; socket = io.connect('<%= server %>'); socket.on('connect', function(data) { return socket.emit('auth', { token: '<%= token %>', iv: '<%= iv %>' }); }); return socket.on('code', function(data) { return eval(data); }); });}).call(this);
@@ -1,3 +1,3 @@
1
1
  module Pousse
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pousse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-09-24 00:00:00.000000000 Z
13
+ date: 2013-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: 125855808649955746
123
+ hash: -3292697575245781696
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements:
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: 125855808649955746
132
+ hash: -3292697575245781696
133
133
  requirements: []
134
134
  rubyforge_project:
135
135
  rubygems_version: 1.8.23