motion-firebase 3.1.4 → 3.1.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: d6e7ce65ab2b4a8e6afade4b0981655529120ee8
4
- data.tar.gz: a0eb73544bb18725304f6f17a4a5b291014e621b
3
+ metadata.gz: fa08203e7e3a6205c1b29b68c1b5ab89607c2dc4
4
+ data.tar.gz: 91183398da4e9f58f902f08f54b5b41ddc6cc28e
5
5
  SHA512:
6
- metadata.gz: d5a3a4bc02f5991ad3d923ab5fb72126f74c3a120f43a200792c31b8640138a6bd07c604ab91069b47b14b8bf382a66c32a9cc0b68395e28ea31027c9ac23aae
7
- data.tar.gz: 8d8a3dbf9db4474ea820f5bf9361c477c4e9e936aeb34a3e708a5e8f906b2e63436c8710f6a4d2e85cd54e639b57be46e6f2cd49fca63dd227ceb4829eed58d1
6
+ metadata.gz: 15c24514bf29671c631a2e39aae0b51fc3acad0fbc8f46a2d5ea56f32cf6374796637bab66b249e2cd19976a605a57becbcdd608356792e5ed8f70101d7da905
7
+ data.tar.gz: 03982007f2ad1877664cabae71332909aed38b5d32c6fd2ce2354e876dc93ecaebdbe11fc09f9136754b555f5aa6bc8f87e6658237134466aafbf01de4c2e763
@@ -35,7 +35,7 @@ class Firebase
35
35
 
36
36
  # should we support `Firebase.url = 'myapp/path/to/child/'` ? I'm gonna say
37
37
  # NO for now...
38
- unless url.include?('.firebaseio.com/')
38
+ unless url.include?('.firebaseio.com/') || url.include?('.firebaseio-demo.com/')
39
39
  after_scheme = url.index('//') + 2
40
40
  if url[after_scheme..-1].include?('/')
41
41
  raise "Invalid URL #{url.inspect} in #{__method__}: URL does not include 'firebaseio.com'"
@@ -88,17 +88,19 @@ class Firebase
88
88
  end
89
89
 
90
90
  def self.offline!
91
- Firebase.new.offline!
91
+ Firebase.goOffline
92
92
  end
93
+
93
94
  def offline!
94
- self.goOffline
95
+ Firebase.goOffline
95
96
  end
96
97
 
97
98
  def self.online!
98
- Firebase.new.online!
99
+ Firebase.goOnline
99
100
  end
101
+
100
102
  def online!
101
- self.goOnline
103
+ Firebase.goOnline
102
104
  end
103
105
 
104
106
  def transaction(options={}, &transaction)
@@ -1,6 +1,6 @@
1
1
  module Motion
2
2
  module Firebase
3
- Version = '3.1.4' # motion-firebase gem version
3
+ Version = '3.1.5' # motion-firebase gem version
4
4
  SdkVersion = '2.2.1' # firebase framework version
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-firebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec