firebase 0.2.0 → 0.2.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: 4695f53c5178de66b3d6e41ea5a3a0c5779099cf
4
- data.tar.gz: 2e56f83b67bddea9e40470ba74a01467dbd608ed
3
+ metadata.gz: 2cb86b73248e9ce7c985173b5ce5e31f23d8ab91
4
+ data.tar.gz: 93489dd94c65331536b998ddde7d9a81a673cc3a
5
5
  SHA512:
6
- metadata.gz: ea1883f4e4ba205ac2b81c40a3b576925e9dd2df3d68ee8d3dd25e4f8a043af5ccebb2b158faed2aa2e887935dbfde3b404dd9778a5e90dd28758342e4cc852c
7
- data.tar.gz: c456f212241036b86703388137e0b0e153d7f611a41a0b1157fc3ba3a4226f9e1dd3be5a220661bacd410c3c9ebe57df54b0ea45cfaea342c17f580182d912af
6
+ metadata.gz: 5475ad6b2bde41ac93d6624f4fc582856da62d93aaeaed20d2850a33e7a87651d7e70baa2251f4fe2be6fd3223d5cb3d600df6f6d8d06d6e16e821c0b025fa42
7
+ data.tar.gz: f3461889f646be38ca0e175f0a16472cccf8705ba0e6069c2fdc151bb77d81a477d423dfd6c5a710f17edff46fc969bcb35144e418ad0ed2330171e779318ca3
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ - 0.2.1
2
+
3
+ * Fix auth parse exception
4
+
1
5
  - 0.2.0
2
6
 
3
7
  * You can now pass query options to get/push/set, etc.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "firebase"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oscar Del Ben"]
12
- s.date = "2014-03-16"
12
+ s.date = "2014-03-30"
13
13
  s.description = "Firebase wrapper for Ruby"
14
14
  s.email = "info@oscardelben.com"
15
15
  s.extra_rdoc_files = [
@@ -49,7 +49,11 @@ module Firebase
49
49
  private
50
50
 
51
51
  def query_options(query)
52
- { :auth => auth }.merge(query)
52
+ if auth
53
+ { :auth => auth }.merge(query)
54
+ else
55
+ query
56
+ end
53
57
  end
54
58
  end
55
59
  end
@@ -13,14 +13,14 @@ describe "Firebase" do
13
13
 
14
14
  describe "set" do
15
15
  it "writes and returns the data" do
16
- @req.should_receive(:put).with('users/info', data, {:auth => nil})
16
+ @req.should_receive(:put).with('users/info', data, {})
17
17
  @firebase.set('users/info', data)
18
18
  end
19
19
  end
20
20
 
21
21
  describe "get" do
22
22
  it "returns the data" do
23
- @req.should_receive(:get).with('users/info', {:auth => nil})
23
+ @req.should_receive(:get).with('users/info', {})
24
24
  @firebase.get('users/info')
25
25
  end
26
26
 
@@ -51,21 +51,21 @@ describe "Firebase" do
51
51
 
52
52
  describe "push" do
53
53
  it "writes the data" do
54
- @req.should_receive(:post).with('users', data, {:auth => nil})
54
+ @req.should_receive(:post).with('users', data, {})
55
55
  @firebase.push('users', data)
56
56
  end
57
57
  end
58
58
 
59
59
  describe "delete" do
60
60
  it "returns true" do
61
- @req.should_receive(:delete).with('users/info', {:auth => nil})
61
+ @req.should_receive(:delete).with('users/info', {})
62
62
  @firebase.delete('users/info')
63
63
  end
64
64
  end
65
65
 
66
66
  describe "update" do
67
67
  it "updates and returns the data" do
68
- @req.should_receive(:patch).with('users/info', data, {:auth => nil})
68
+ @req.should_receive(:patch).with('users/info', data, {})
69
69
  @firebase.update('users/info', data)
70
70
  end
71
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Del Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-16 00:00:00.000000000 Z
11
+ date: 2014-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus