firebase 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -5,14 +5,22 @@ Ruby wrapper for the Firebase backend API.
5
5
  Changes are sent to all subscribed clients automatically, so you can
6
6
  update your clients **in realtime from the backend**.
7
7
 
8
+ See a [video demo](https://vimeo.com/41494336?utm_source=internal&utm_medium=email&utm_content=cliptranscoded&utm_campaign=adminclip) of what's possible.
9
+
10
+ ### Installation
11
+
12
+
8
13
  ```
9
14
  gem install firebase
10
15
  ```
11
16
 
17
+ ### Usage
18
+
19
+
12
20
  ```ruby
13
21
  Firebase.base_uri = 'http://gamma.firebase.com/youruser'
14
22
 
15
- response = Firebase.push("todos", { :name => 'Pick the milk', :priority => 1)
23
+ response = Firebase.push("todos", { :name => 'Pick the milk', :priority => 1 })
16
24
  response.success? # => true
17
25
  response.code # => 200
18
26
  response.body # => { 'name' => "-INOQPH-aV_psbk3ZXEX" }
@@ -31,7 +39,7 @@ Firebase.delete(path)
31
39
  More features are coming soon.
32
40
 
33
41
  More information about Firebase and the Firebase API is available at the
34
- [official website](http://www.firebase.com/)
42
+ [official website](http://www.firebase.com/).
35
43
 
36
44
  ### Copyright
37
45
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "firebase"
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Oscar Del Ben"]
12
+ s.date = "2012-08-06"
13
+ s.description = "Firebase wrapper for Ruby"
14
+ s.email = "info@oscardelben.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.md",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "firebase.gemspec",
29
+ "lib/firebase.rb",
30
+ "lib/firebase/request.rb",
31
+ "spec/firebase_spec.rb",
32
+ "spec/spec_helper.rb"
33
+ ]
34
+ s.homepage = "http://github.com/oscardelben/firebase-ruby"
35
+ s.licenses = ["MIT"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = "1.8.23"
38
+ s.summary = "Firebase wrapper for Ruby"
39
+
40
+ if s.respond_to? :specification_version then
41
+ s.specification_version = 3
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<typhoeus>, [">= 0"])
45
+ s.add_runtime_dependency(%q<json>, [">= 0"])
46
+ s.add_development_dependency(%q<rspec>, [">= 0"])
47
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
48
+ else
49
+ s.add_dependency(%q<typhoeus>, [">= 0"])
50
+ s.add_dependency(%q<json>, [">= 0"])
51
+ s.add_dependency(%q<rspec>, [">= 0"])
52
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
53
+ end
54
+ else
55
+ s.add_dependency(%q<typhoeus>, [">= 0"])
56
+ s.add_dependency(%q<json>, [">= 0"])
57
+ s.add_dependency(%q<rspec>, [">= 0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
59
+ end
60
+ end
61
+
@@ -28,6 +28,7 @@ module Firebase
28
28
  raise "Please set Firebase.base_uri before making requests" unless Firebase.base_uri
29
29
 
30
30
  url = URI.join(Firebase.base_uri, path)
31
+ url = [url, '.json'].compact.join
31
32
 
32
33
  request = Typhoeus::Request.new(url.to_s,
33
34
  :body => options[:body],
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.0
4
+ version: 0.1.1
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: 2012-05-03 00:00:00.000000000 Z
12
+ date: 2012-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -91,6 +91,7 @@ files:
91
91
  - README.md
92
92
  - Rakefile
93
93
  - VERSION
94
+ - firebase.gemspec
94
95
  - lib/firebase.rb
95
96
  - lib/firebase/request.rb
96
97
  - spec/firebase_spec.rb
@@ -110,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
111
  version: '0'
111
112
  segments:
112
113
  - 0
113
- hash: -3148004848148024895
114
+ hash: -4237307739577820133
114
115
  required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  none: false
116
117
  requirements:
@@ -119,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
120
  version: '0'
120
121
  requirements: []
121
122
  rubyforge_project:
122
- rubygems_version: 1.8.21
123
+ rubygems_version: 1.8.23
123
124
  signing_key:
124
125
  specification_version: 3
125
126
  summary: Firebase wrapper for Ruby