jstp 1.0.3 → 1.1.0

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.
@@ -1,12 +1,13 @@
1
1
  module JSTP
2
2
  class Controller
3
- attr_reader :protocol, :method, :referer, :resource, :timestamp, :token, :original, :query, :body, :engine
3
+ attr_reader :protocol, :method, :referer, :resource, :timestamp, :token, :original, :query, :body, :engine, :client
4
4
 
5
- def initialize original, query, engine
5
+ def initialize original, query, engine, client = nil
6
6
  @original = original
7
7
  @engine = engine
8
8
 
9
9
  @query = query
10
+ @client = client unless client.nil?
10
11
 
11
12
  Configuration.instance.logger.info original.to.short
12
13
  end
@@ -15,7 +15,7 @@ module JSTP
15
15
  message.to.send @config.strategy.outbound
16
16
  else
17
17
  if the_class.ancestors.include? JSTP::Controller
18
- resource = the_class.new message, query, self
18
+ resource = the_class.new message, query, self, client
19
19
  resource.send message["method"].downcase.to_sym
20
20
  else
21
21
  if @config.environment == :development
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module JSTP
3
- VERSION = "1.0.3"
3
+ VERSION = "1.1.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jstp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-02-06 00:00:00.000000000 Z
14
+ date: 2013-02-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: em-websocket