deepstream 0.2.3 → 0.2.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: 1d787ab228a351d8917c1fb5bdce15c3495ce611
4
- data.tar.gz: f96ce97fa8320c3921b36148b4e3d7359d43961a
3
+ metadata.gz: be943700904c49bfe301ba108143b3b1bf483c62
4
+ data.tar.gz: 37c6bcc801a2d78bef07daa359c1ca498df0b57d
5
5
  SHA512:
6
- metadata.gz: 2dcc55af700f118668dfe305db5b106d54afc6a1ce0dea8c86e606795fc32154bd20d1966ece2f97d2dc3863164e16d24690faf13f73346ae34343d91f9653ae
7
- data.tar.gz: 0f8ea83b8520ee221896977f33d936c1798d2ed3b8d99ef72a7719d64e955b10564e333ab570a2ae59e2f1179ea30a07d1f6a5a59e3004a06383c052c4d29895
6
+ metadata.gz: ff5403c28136a4d9b01be6e3201a9665a4102aa72f11c12db9f06fc50fbb5a9892709ca43da3da45839fd3ba9e6d196e9c2c8b28a21016166157b34fdf63d30f
7
+ data.tar.gz: acbe6674e94967e725a659fd9d70cd38055e50445b9fa6c804c4ac83d8169352d53c8acb0f68057492cc498af29ea0407c3dc452972f164248799b5c877882b2
data/deepstream.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "deepstream"
7
- spec.version = "0.2.3"
7
+ spec.version = "0.2.4"
8
8
  spec.authors = ["Currency-One S.A."]
9
9
  spec.email = ["piotr.szczudlak@currency-one.com"]
10
10
 
@@ -20,7 +20,7 @@ module Deepstream
20
20
 
21
21
  def_delegators :@event_handler, :on, :emit, :subscribe, :unsubscribe, :listen, :resubscribe, :unlisten
22
22
  def_delegators :@error_handler, :error, :on_error, :on_exception
23
- def_delegators :@record_handler, :get, :set, :delete, :discard, :get_list
23
+ def_delegators :@record_handler, :get, :get_record, :set, :delete, :discard, :get_list
24
24
 
25
25
  def initialize(url, options = {})
26
26
  @url = Helpers.url(url)
@@ -50,6 +50,11 @@ module Deepstream
50
50
  @data = JSON.parse(data)
51
51
  end
52
52
 
53
+ def method_missing(name, *args)
54
+ return @data.fetch(name.to_s, nil) if args.empty?
55
+ raise(NoMethodError, name)
56
+ end
57
+
53
58
  private
54
59
 
55
60
  def set_path(data, path, value)
@@ -28,6 +28,7 @@ module Deepstream
28
28
  end
29
29
  @records[name] ||= Record.new(@client, name)
30
30
  end
31
+ alias get_record get
31
32
 
32
33
  def get_list(name)
33
34
  @records[name] ||= List.new(@client, name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deepstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Currency-One S.A.