rest-firebase 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGES.md +4 -0
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/lib/rest-firebase.rb +3 -3
- data/rest-firebase.gemspec +3 -3
- 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: 35606ca070bf79c8f6b7203397e7a78efc11e8c7
|
|
4
|
+
data.tar.gz: 4bf304b0fa0a4667c56bc57cf503dbcc4bb2867a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 037c6c8ea7ce7c149ff062c660a9e950900cd25c55cfcbf2d712a59948beb8b14789de314f04eab61ec5c2267f4a59c672b69983993911c7a54ceb300075bd10
|
|
7
|
+
data.tar.gz: 7c01110ae46dbab16234fa7b6de54775158f62bffb87a3e7d4ebc050aa6218554db964f760125f9af1db73152e8b99648defeb88195fe859bca3995ccc2597db
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
data/README.md
CHANGED
|
@@ -216,7 +216,7 @@ If you're using unicorn, you probably want to put that in the config.
|
|
|
216
216
|
|
|
217
217
|
Apache License 2.0
|
|
218
218
|
|
|
219
|
-
Copyright (c) 2014, Codementor
|
|
219
|
+
Copyright (c) 2014-2015, Codementor
|
|
220
220
|
|
|
221
221
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
222
222
|
you may not use this file except in compliance with the License.
|
data/Rakefile
CHANGED
|
@@ -10,7 +10,7 @@ $LOAD_PATH.unshift(File.expand_path("#{dir}/rest-core/lib"))
|
|
|
10
10
|
|
|
11
11
|
Gemgem.init(dir) do |s|
|
|
12
12
|
s.name = 'rest-firebase'
|
|
13
|
-
s.version = '1.0.
|
|
13
|
+
s.version = '1.0.1'
|
|
14
14
|
s.homepage = 'https://github.com/CodementorIO/rest-firebase'
|
|
15
15
|
|
|
16
16
|
s.authors = ['Codementor', 'Lin Jen-Shin (godfat)']
|
data/lib/rest-firebase.rb
CHANGED
|
@@ -75,14 +75,14 @@ module RestFirebase::Client
|
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
def request env,
|
|
78
|
+
def request env, a=app
|
|
79
79
|
check_auth
|
|
80
80
|
query = env[REQUEST_QUERY].inject({}) do |q, (k, v)|
|
|
81
81
|
q[k] = Json.encode(v)
|
|
82
82
|
q
|
|
83
83
|
end
|
|
84
84
|
super(env.merge(REQUEST_PATH => "#{env[REQUEST_PATH]}.json",
|
|
85
|
-
REQUEST_QUERY => query),
|
|
85
|
+
REQUEST_QUERY => query), a)
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
def generate_auth opts={}
|
|
@@ -103,7 +103,7 @@ module RestFirebase::Client
|
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
private
|
|
106
|
-
def base64url str; [str].pack('m0').tr(
|
|
106
|
+
def base64url str; [str].pack('m0').tr('+/', '-_'); end
|
|
107
107
|
def default_auth ; generate_auth ; end
|
|
108
108
|
def default_auth_ttl; 82800 ; end
|
|
109
109
|
def default_iat ; Time.now.to_i ; end
|
data/rest-firebase.gemspec
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: rest-firebase 1.0.
|
|
2
|
+
# stub: rest-firebase 1.0.1 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "rest-firebase"
|
|
6
|
-
s.version = "1.0.
|
|
6
|
+
s.version = "1.0.1"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib"]
|
|
10
10
|
s.authors = [
|
|
11
11
|
"Codementor",
|
|
12
12
|
"Lin Jen-Shin (godfat)"]
|
|
13
|
-
s.date = "
|
|
13
|
+
s.date = "2015-01-04"
|
|
14
14
|
s.description = "Ruby Firebase REST API client built on top of [rest-core][].\n\n[rest-core]: https://github.com/godfat/rest-core"
|
|
15
15
|
s.email = ["help@codementor.io"]
|
|
16
16
|
s.files = [
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rest-firebase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Codementor
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2015-01-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-core
|