firefighter 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +43 -41
- data/LICENSE.txt +21 -0
- data/README.md +2 -2
- data/firefighter.gemspec +8 -8
- data/lib/firefighter/identitytoolkit.rb +2 -3
- data/lib/firefighter/realtime_database.rb +2 -3
- data/lib/firefighter/token_generator.rb +2 -3
- data/lib/firefighter/version.rb +1 -1
- metadata +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 420312cb25f6f5cb3f27499d7afdcadb775d287a28ae58cfcbb97f5156e68064
|
4
|
+
data.tar.gz: 7ae7c7e245493062b2f3c41fc2eebde026cc84bfe3714acf9f28704bba0d6eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f56406ab531b5a04381dffe158a0442d165bf32bb7b5b1b4554a45c704f3ed8bdaedf65500e48268293760a6617e93f5f01df563b37daa0a147d2437a9a5173
|
7
|
+
data.tar.gz: 540c6aa22139f78f8f411beceb642e58ef7cbaf1184bff70cbb5a47e7f2766d23e8931fb09789acae6d7ca797c54f08d62e1c7768dcc5b75c6e1aaa8a173a473
|
data/.circleci/config.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,70 +1,72 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
firefighter (
|
5
|
-
http (
|
6
|
-
jwt (
|
4
|
+
firefighter (1.1.0)
|
5
|
+
http (> 3.0)
|
6
|
+
jwt (> 2.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
public_suffix (>= 2.0.2, <
|
13
|
-
byebug (
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
|
+
byebug (11.1.3)
|
14
14
|
crack (0.4.3)
|
15
15
|
safe_yaml (~> 1.0.0)
|
16
|
-
diff-lcs (1.
|
17
|
-
domain_name (0.5.
|
16
|
+
diff-lcs (1.4.4)
|
17
|
+
domain_name (0.5.20190701)
|
18
18
|
unf (>= 0.0.5, < 1.0.0)
|
19
|
-
|
20
|
-
|
19
|
+
ffi (1.13.1)
|
20
|
+
ffi-compiler (1.0.1)
|
21
|
+
ffi (>= 1.0.0)
|
22
|
+
rake
|
23
|
+
hashdiff (1.0.1)
|
24
|
+
http (4.4.1)
|
21
25
|
addressable (~> 2.3)
|
22
26
|
http-cookie (~> 1.0)
|
23
|
-
http-form_data (~> 2.
|
24
|
-
|
27
|
+
http-form_data (~> 2.2)
|
28
|
+
http-parser (~> 1.2.0)
|
25
29
|
http-cookie (1.0.3)
|
26
30
|
domain_name (~> 0.5)
|
27
|
-
http-form_data (2.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
rspec-
|
35
|
-
rspec-
|
36
|
-
|
37
|
-
|
38
|
-
|
31
|
+
http-form_data (2.3.0)
|
32
|
+
http-parser (1.2.1)
|
33
|
+
ffi-compiler (>= 1.0, < 2.0)
|
34
|
+
jwt (2.2.1)
|
35
|
+
public_suffix (4.0.5)
|
36
|
+
rake (13.0.1)
|
37
|
+
rspec (3.9.0)
|
38
|
+
rspec-core (~> 3.9.0)
|
39
|
+
rspec-expectations (~> 3.9.0)
|
40
|
+
rspec-mocks (~> 3.9.0)
|
41
|
+
rspec-core (3.9.2)
|
42
|
+
rspec-support (~> 3.9.3)
|
43
|
+
rspec-expectations (3.9.2)
|
39
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
-
rspec-support (~> 3.
|
41
|
-
rspec-mocks (3.
|
45
|
+
rspec-support (~> 3.9.0)
|
46
|
+
rspec-mocks (3.9.1)
|
42
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
-
rspec-support (~> 3.
|
44
|
-
rspec-support (3.
|
48
|
+
rspec-support (~> 3.9.0)
|
49
|
+
rspec-support (3.9.3)
|
45
50
|
safe_yaml (1.0.5)
|
46
51
|
timecop (0.9.1)
|
47
52
|
unf (0.1.4)
|
48
53
|
unf_ext
|
49
|
-
unf_ext (0.0.7.
|
50
|
-
vcr (
|
51
|
-
webmock (3.
|
54
|
+
unf_ext (0.0.7.7)
|
55
|
+
vcr (6.0.0)
|
56
|
+
webmock (3.8.3)
|
52
57
|
addressable (>= 2.3.6)
|
53
58
|
crack (>= 0.3.2)
|
54
|
-
hashdiff
|
59
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
55
60
|
|
56
61
|
PLATFORMS
|
57
62
|
ruby
|
58
63
|
|
59
64
|
DEPENDENCIES
|
60
|
-
bundler
|
65
|
+
bundler
|
61
66
|
byebug
|
62
67
|
firefighter!
|
63
|
-
rake
|
64
|
-
rspec
|
65
|
-
timecop
|
66
|
-
vcr
|
67
|
-
webmock
|
68
|
-
|
69
|
-
BUNDLED WITH
|
70
|
-
1.17.2
|
68
|
+
rake
|
69
|
+
rspec
|
70
|
+
timecop
|
71
|
+
vcr
|
72
|
+
webmock
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 phoet
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Talk to Firebase API from Ruby:
|
4
4
|
|
5
5
|
- identity: signup, account_info, accounts_download
|
6
|
-
- realtime: read, write, add, delete data
|
6
|
+
- realtime: read, listen, write, add, delete data
|
7
7
|
- tokens: generate JWT tokens for token-auth
|
8
8
|
|
9
9
|
## Installation
|
@@ -93,4 +93,4 @@ Everyone interacting in the Firefighter project’s codebases, issue trackers, c
|
|
93
93
|
|
94
94
|
## Changelog
|
95
95
|
|
96
|
-
[
|
96
|
+
[changelog](https://github.com/penseo/firefighter/blob/master/CHANGELOG.md)
|
data/firefighter.gemspec
CHANGED
@@ -28,13 +28,13 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_dependency "http", "
|
32
|
-
spec.add_dependency "jwt", "
|
31
|
+
spec.add_dependency "http", "> 3.0"
|
32
|
+
spec.add_dependency "jwt", "> 2.0"
|
33
33
|
|
34
|
-
spec.add_development_dependency "bundler"
|
35
|
-
spec.add_development_dependency "rake"
|
36
|
-
spec.add_development_dependency "rspec"
|
37
|
-
spec.add_development_dependency "vcr"
|
38
|
-
spec.add_development_dependency "webmock"
|
39
|
-
spec.add_development_dependency "timecop"
|
34
|
+
spec.add_development_dependency "bundler"
|
35
|
+
spec.add_development_dependency "rake"
|
36
|
+
spec.add_development_dependency "rspec"
|
37
|
+
spec.add_development_dependency "vcr"
|
38
|
+
spec.add_development_dependency "webmock"
|
39
|
+
spec.add_development_dependency "timecop"
|
40
40
|
end
|
@@ -3,11 +3,10 @@ module Firefighter
|
|
3
3
|
include Web
|
4
4
|
|
5
5
|
def self.from_env
|
6
|
-
|
6
|
+
new(
|
7
7
|
api_key: ENV['FIREBASE_WEB_API_KEY'],
|
8
8
|
service_account_email: ENV['FIREBASE_SERVICE_ACCOUNT_EMAIL'],
|
9
|
-
|
10
|
-
new(config)
|
9
|
+
)
|
11
10
|
end
|
12
11
|
|
13
12
|
def initialize(api_key:, service_account_email:)
|
@@ -6,11 +6,10 @@ module Firefighter
|
|
6
6
|
include Web
|
7
7
|
|
8
8
|
def self.from_env
|
9
|
-
|
9
|
+
new(
|
10
10
|
service_account_email: ENV['FIREBASE_SERVICE_ACCOUNT_EMAIL'],
|
11
11
|
service_account_private_key: ENV['FIREBASE_SERVICE_ACCOUNT_PRIVATE_KEY'],
|
12
|
-
|
13
|
-
new(config)
|
12
|
+
)
|
14
13
|
end
|
15
14
|
|
16
15
|
def initialize(service_account_email:, service_account_private_key:, algorithm: 'RS256')
|
data/lib/firefighter/version.rb
CHANGED
metadata
CHANGED
@@ -1,127 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firefighter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- phoet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.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: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jwt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.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: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
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
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
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
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: vcr
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: webmock
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: timecop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0
|
124
|
+
version: '0'
|
125
125
|
description: Firebase API Wrapper
|
126
126
|
email:
|
127
127
|
- phoetmail@googlemail.com
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- CODE_OF_CONDUCT.md
|
138
138
|
- Gemfile
|
139
139
|
- Gemfile.lock
|
140
|
+
- LICENSE.txt
|
140
141
|
- README.md
|
141
142
|
- Rakefile
|
142
143
|
- bin/console
|
@@ -167,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
168
|
- !ruby/object:Gem::Version
|
168
169
|
version: '0'
|
169
170
|
requirements: []
|
170
|
-
|
171
|
-
rubygems_version: 2.7.6
|
171
|
+
rubygems_version: 3.1.2
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Firebase API Wrapper
|