realtime-ruby 0.0.4 → 0.0.5

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: 8ae9159deffd5d67ca76cab727056281482418ef
4
- data.tar.gz: 23bbd89b2492a412d6cb401582a0c2e6b47ca4cc
3
+ metadata.gz: 34c40b7ef36db103d03126dc02b341bd78582f3d
4
+ data.tar.gz: c5429052770c5ff01fa9be865ed7ec8440f2809d
5
5
  SHA512:
6
- metadata.gz: e9d17c07292e16808181630649b5c61e40e3eb9e32e12927489d9ce6c73c16f4653537f1a09f772dc6dded2ca000a00ce6d3892b5dca5f04804345a7cf37dbe6
7
- data.tar.gz: b269e11e85ee348e547bad027dc34489ea0e82c6ed421559282bf2d9587b74abbbcb795efc5dbb9cc182e17d851ca41eef2fda255907e4b7f64003afebb29491
6
+ metadata.gz: 2465455e7d77fce17adb3f92ebc16144415caeb95767833cbd2fa3d8c6904135426a08b556f94f61c5b4e975a497334aebbadf89018f63e51dfea4b95c050af7
7
+ data.tar.gz: 1cd34272b8c98f5eb129db82485e9e20b4b9cbee8383863ef1a86b99f5c0112d2233311254d023bd1686863f792b50ae954c7343137ce56122638980669178fb
data/lib/realtime.rb CHANGED
@@ -24,7 +24,12 @@ module Realtime
24
24
  end
25
25
  end
26
26
 
27
- def self.new(url: _url, server_token: token, email: _email, password: _password)
28
- Realtime::Client.new(url, server_token, email, password)
27
+ def self.new(args = {})
28
+ raise ArgumentError if args[:url].nil?
29
+ raise ArgumentError if args[:server_token].nil?
30
+ raise ArgumentError if args[:email].nil?
31
+ raise ArgumentError if args[:password].nil?
32
+
33
+ Realtime::Client.new(args[:url], args[:server_token], args[:email], args[:password])
29
34
  end
30
35
  end
@@ -1,3 +1,3 @@
1
1
  module Realtime
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realtime-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yu Hoshino