firebase 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,7 +18,7 @@ gem install firebase
18
18
 
19
19
 
20
20
  ```ruby
21
- Firebase.base_uri = 'http://gamma.firebase.com/youruser'
21
+ Firebase.base_uri = 'https://<your-firebase>.firebaseio.com/'
22
22
 
23
23
  response = Firebase.push("todos", { :name => 'Pick the milk', :priority => 1 })
24
24
  response.success? # => true
@@ -29,7 +29,7 @@ response.raw_body # => '{"name":"-INOQPH-aV_psbk3ZXEX"}'
29
29
 
30
30
  If you have a read-only namespace, set your secret key as follows:
31
31
  ```ruby
32
- Firebase.base_uri = 'http://gamma.firebase.com/youruser'
32
+ Firebase.base_uri = 'https://<your-firebase>.firebaseio.com/'
33
33
  Firebase.auth = 'yoursecretkey'
34
34
 
35
35
  response = Firebase.push("todos", { :name => 'Pick the milk', :priority => 1 })
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "firebase"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
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 = "2013-02-21"
12
+ s.date = "2013-03-24"
13
13
  s.description = "Firebase wrapper for Ruby"
14
14
  s.email = "info@oscardelben.com"
15
15
  s.extra_rdoc_files = [
@@ -42,12 +42,12 @@ module Firebase
42
42
  def process(method, path, options={})
43
43
  raise "Please set Firebase.base_uri before making requests" unless Firebase.base_uri
44
44
 
45
+ @@hydra ||= Typhoeus::Hydra.new
45
46
  request = Typhoeus::Request.new(build_url(path),
46
47
  :body => options[:body],
47
48
  :method => method)
48
- hydra = Typhoeus::Hydra.new
49
- hydra.queue(request)
50
- hydra.run
49
+ @@hydra.queue(request)
50
+ @@hydra.run
51
51
 
52
52
  new request.response
53
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 585717671023222954
115
+ hash: -2098595268824288091
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements: