plezi 0.11.1 → 0.11.2

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: e9a6b0a7a56451936b9d79a8875db0281700d874
4
- data.tar.gz: b99ac94d8c52014cefcdfbbcbc97a853f0f8437f
3
+ metadata.gz: debb56bb8606bda13bf432ea12c79154a2240bf2
4
+ data.tar.gz: b7b030e87997f82457735b63f856a77b0d715c05
5
5
  SHA512:
6
- metadata.gz: 8a9e1f987b95e1818883061e63a986f8e105c6b17b83ed33962f3a6f4bb9ee7faf9d1d5506d37fda945dc24b68560fce5946fadcff8f9617204aa3725c575cac
7
- data.tar.gz: edd2e1681d903e6c8fc79b11543725494c29a8e30939320081a2666f2c25050d1565492e3f42ead90aba58f3894b44d27aaf0a3e69106de481bd28ab4c5b3775
6
+ metadata.gz: a405525ff846eff0566a3c4e00d4949a3c93625a8cb5fd5801023c453c4f7b39d4764c70d5e2614b17e7849091d7a28b672c04f6c8dac4bb9a6337f06b7f7373
7
+ data.tar.gz: 6a5510d3cbbfa8f99b007a3c197c201ca9751e286df4818727bf2d00ba5da74db2d86d84206c67e1a49b53db8ccca9b3e5bce5febf35bff82673e8828b3bca16
@@ -2,6 +2,12 @@
2
2
 
3
3
  ***
4
4
 
5
+ Change log v.0.11.2
6
+
7
+ **Fix**: Fixed an issue where the Session object wouldn't be available for websocket connections after the handshake was complete.
8
+
9
+ ***
10
+
5
11
  Change log v.0.11.1
6
12
 
7
13
  **Feature**: (undocumented) Rendering and Asset extentions! Now, Rendering and Asset pipeline can be extended to allow for more rendering and asset engines. This is yet undocumented and somewhat experimental, but the API in this regard will be stable for all `~>= 0.11.1` versions.
@@ -29,6 +29,7 @@ module Plezi
29
29
  GRHttp::Base::WSHandler.broadcast data
30
30
  end
31
31
  rescue => e
32
+ GReactor.error "The following could be a security breach attempt:"
32
33
  GReactor.error e
33
34
  end
34
35
  end
@@ -46,7 +46,7 @@ module Plezi
46
46
  #
47
47
  # Sessions are not automatically created, because they require more resources. The one exception is the Websocket connection that will force a session object into existence, as it's very common to use session data in Websocket connections and the extra connection time is less relevant for a long term connection.
48
48
  def session
49
- response.session
49
+ @session ||= response.session
50
50
  end
51
51
 
52
52
  # the HTTPResponse **OR** the WSResponse object that formats the response and sends it. use `response << data`. This object can be used to send partial data (such as headers, or partial html content) in blocking mode as well as sending data in the default non-blocking mode.
@@ -1,3 +1,3 @@
1
1
  module Plezi
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "grhttp", "~> 0.1.0"
21
+ spec.add_dependency "grhttp", "~> 0.1.1"
22
22
  spec.add_development_dependency "bundler", "~> 1.7"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plezi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grhttp
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: 0.1.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0
26
+ version: 0.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement