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 +4 -4
- data/lib/firebase/firebase.rb +7 -5
- data/lib/firebase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa08203e7e3a6205c1b29b68c1b5ab89607c2dc4
|
4
|
+
data.tar.gz: 91183398da4e9f58f902f08f54b5b41ddc6cc28e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15c24514bf29671c631a2e39aae0b51fc3acad0fbc8f46a2d5ea56f32cf6374796637bab66b249e2cd19976a605a57becbcdd608356792e5ed8f70101d7da905
|
7
|
+
data.tar.gz: 03982007f2ad1877664cabae71332909aed38b5d32c6fd2ce2354e876dc93ecaebdbe11fc09f9136754b555f5aa6bc8f87e6658237134466aafbf01de4c2e763
|
data/lib/firebase/firebase.rb
CHANGED
@@ -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.
|
91
|
+
Firebase.goOffline
|
92
92
|
end
|
93
|
+
|
93
94
|
def offline!
|
94
|
-
|
95
|
+
Firebase.goOffline
|
95
96
|
end
|
96
97
|
|
97
98
|
def self.online!
|
98
|
-
Firebase.
|
99
|
+
Firebase.goOnline
|
99
100
|
end
|
101
|
+
|
100
102
|
def online!
|
101
|
-
|
103
|
+
Firebase.goOnline
|
102
104
|
end
|
103
105
|
|
104
106
|
def transaction(options={}, &transaction)
|
data/lib/firebase/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|