firebase 0.2.3 → 0.2.4

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: b144a7fbc2d7183897b257d55dc6d371c4d9c375
4
- data.tar.gz: 551367963ea25efcb0dad36ad8e96deefc061305
3
+ metadata.gz: c0d272b8076db9628a215cc2643851b1c903792f
4
+ data.tar.gz: 02f854d3a3a9de3aa92a26819e8f6769cf9ceb0b
5
5
  SHA512:
6
- metadata.gz: 93e12c2bbbec9255fda4a25388f0088b4d40768fb96489f276051dc05f9b18119f6761977f11c424221e6c625732db05113ec79391ce77c7c1c3cd2f2db89798
7
- data.tar.gz: cd7eba8cf7d2729596585898b7796f51fd14b9b1080380ea2db2fbaf16b510ad26d0d48bdf3bd43f1e2e1bdc6a753167b8aa3ab279c93953ec7bd9298dca26f4
6
+ metadata.gz: 6c98bd290872e0db6015f58f3f70ae8b9e552b666177823d33fe363a3c3b40c9b6d9c7f5a7b6467c46ccc2fc75a68e7ab55b11f861ed822a644c73df43efdda5
7
+ data.tar.gz: 753b7d2324f190d48adda9f8169e9bb4dd0bdf69bcfb0e9769abfff559cb11327903f32a7693794f51cf76e9038f8af167d4136d61994c999972f6dd535fb862
@@ -1,9 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.3 (in development)
3
+ ## 0.2.4
4
+
5
+ * Add support for server timestamp.
6
+
7
+ ## 0.2.3
4
8
 
5
9
  * Switch from problematic `typhoeus` client to `HTTPClient`
6
10
  * File permissions issue fix
11
+ * Follow redirect headers by default
7
12
 
8
13
  ## 0.2.2
9
14
 
data/README.md CHANGED
@@ -39,6 +39,15 @@ You can now pass custom query options to firebase:
39
39
  response = firebase.push("todos", :limit => 1)
40
40
  ```
41
41
 
42
+ To populate a value with a Firebase server timestamp, you can set `Firebase::ServerValue::TIMESTAMP` as a normal value. This is analogous to passing `Firebase.ServerValue.TIMESTAMP` in the [official JavaScript client](https://www.firebase.com/docs/web/api/servervalue/timestamp.html).
43
+
44
+ ```ruby
45
+ response = firebase.push("todos", {
46
+ :name => 'Pick the milk',
47
+ :created => Firebase::ServerValue::TIMESTAMP
48
+ })
49
+ ```
50
+
42
51
  So far, supported methods are:
43
52
 
44
53
  ```ruby
@@ -56,4 +65,3 @@ More information about Firebase and the Firebase API is available at the
56
65
 
57
66
  Copyright (c) 2013 Oscar Del Ben. See LICENSE.txt for
58
67
  further details.
59
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -2,17 +2,20 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: firebase 0.2.4 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "firebase"
8
- s.version = "0.2.3"
9
+ s.version = "0.2.4"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Oscar Del Ben"]
12
- s.date = "2015-01-23"
14
+ s.date = "2015-05-24"
13
15
  s.description = "Firebase wrapper for Ruby"
14
16
  s.email = "info@oscardelben.com"
15
17
  s.extra_rdoc_files = [
18
+ "CHANGELOG.md",
16
19
  "LICENSE.txt",
17
20
  "README.md"
18
21
  ]
@@ -30,13 +33,13 @@ Gem::Specification.new do |s|
30
33
  "lib/firebase.rb",
31
34
  "lib/firebase/request.rb",
32
35
  "lib/firebase/response.rb",
36
+ "lib/firebase/server_value.rb",
33
37
  "spec/firebase_spec.rb",
34
38
  "spec/spec_helper.rb"
35
39
  ]
36
40
  s.homepage = "http://github.com/oscardelben/firebase-ruby"
37
41
  s.licenses = ["MIT"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = "2.0.3"
42
+ s.rubygems_version = "2.4.5"
40
43
  s.summary = "Firebase wrapper for Ruby"
41
44
 
42
45
  if s.respond_to? :specification_version then
@@ -1,6 +1,7 @@
1
1
  require 'uri'
2
2
  require 'firebase/request'
3
3
  require 'firebase/response'
4
+ require 'firebase/server_value'
4
5
 
5
6
  module Firebase
6
7
  class Client
@@ -0,0 +1,5 @@
1
+ module Firebase
2
+ class ServerValue
3
+ TIMESTAMP = { ".sv" => 'timestamp' }
4
+ end
5
+ end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jeweler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Firebase wrapper for Ruby
@@ -71,11 +71,12 @@ email: info@oscardelben.com
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files:
74
+ - CHANGELOG.md
74
75
  - LICENSE.txt
75
76
  - README.md
76
77
  files:
77
- - .document
78
- - .rspec
78
+ - ".document"
79
+ - ".rspec"
79
80
  - CHANGELOG.md
80
81
  - Gemfile
81
82
  - Gemfile.lock
@@ -87,6 +88,7 @@ files:
87
88
  - lib/firebase.rb
88
89
  - lib/firebase/request.rb
89
90
  - lib/firebase/response.rb
91
+ - lib/firebase/server_value.rb
90
92
  - spec/firebase_spec.rb
91
93
  - spec/spec_helper.rb
92
94
  homepage: http://github.com/oscardelben/firebase-ruby
@@ -99,17 +101,17 @@ require_paths:
99
101
  - lib
100
102
  required_ruby_version: !ruby/object:Gem::Requirement
101
103
  requirements:
102
- - - '>='
104
+ - - ">="
103
105
  - !ruby/object:Gem::Version
104
106
  version: '0'
105
107
  required_rubygems_version: !ruby/object:Gem::Requirement
106
108
  requirements:
107
- - - '>='
109
+ - - ">="
108
110
  - !ruby/object:Gem::Version
109
111
  version: '0'
110
112
  requirements: []
111
113
  rubyforge_project:
112
- rubygems_version: 2.0.3
114
+ rubygems_version: 2.4.5
113
115
  signing_key:
114
116
  specification_version: 4
115
117
  summary: Firebase wrapper for Ruby