deepstream 0.3.0 → 0.3.1

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: a3fccebb9da528b399f87c5532134034da5dd558
4
- data.tar.gz: b78e378b57ab7a0bbe4edc0c37acc2b8a210991b
3
+ metadata.gz: 6a195b77c67902febe4748081ede0bf486630065
4
+ data.tar.gz: 8663b916c19058e8f74b14d329bf391f5b33bfc1
5
5
  SHA512:
6
- metadata.gz: 015f87f64895a43101147c84aec5af84cd0d82ffc72a28ce8702bbe51abe4f4a60fef485f2d577ab80ffc0e6858be6c5427044a5586d43cf1e84b897cb1cb9d0
7
- data.tar.gz: 105cdd84c2f0cb8aa948232baadca4afd777d2e0e9e5c87a3f63dd64e112f887e959f5eaece620d2dd81cf8380979af949050e2af499c43ee058726cf04a8898
6
+ metadata.gz: 6a7a86d7cdca2170457a2ce25e73f71d2380106728a69ab0840521dc8900b30820afe2032e6341291f38342953f26c7a3ef9b6076d123fed68c0e95e9711faab
7
+ data.tar.gz: 8c30325353d28fac3dbf8f7ab4d4cc361d454f6628f0758efd5796f7bb20b5a0ad693b084c4f5c9168c1221263652fb496e2b5879115f31d71fb520ac491a2c2
data/.gitignore CHANGED
@@ -33,3 +33,4 @@ build/
33
33
 
34
34
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
35
  .rvmrc
36
+ Gemfile.lock
data/README.md CHANGED
@@ -82,3 +82,10 @@ foo.keys
82
82
  # get records from the list
83
83
  foo.all
84
84
  ```
85
+
86
+
87
+ ### Development
88
+
89
+ ```bash
90
+ git submodule update --init --recursive
91
+ ```
@@ -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.3.0"
7
+ spec.version = "0.3.1"
8
8
  spec.authors = ["Currency-One S.A."]
9
9
  spec.email = ["piotr.szczudlak@currency-one.com"]
10
10
 
@@ -21,7 +21,7 @@ module Deepstream
21
21
  data = JSON.parse(data)
22
22
  if data.is_a?(Array)
23
23
  @data.concat(data).uniq!
24
- set(@data) if @data.size > data.size
24
+ set if @data.size > data.size
25
25
  end
26
26
  end
27
27
 
@@ -62,7 +62,7 @@ module Deepstream
62
62
 
63
63
  def method_missing(name, *args)
64
64
  name = name.to_s
65
- return @data.fetch(name, nil) if args.empty?
65
+ return @data.fetch(@data.is_a?(Array) ? name.to_i : name, nil) if args.empty?
66
66
  return set(name[0..-2], *args) if name.end_with?('=') && !args.empty?
67
67
  raise(NoMethodError, name)
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deepstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Currency-One S.A.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-03 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid-websocket-client