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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e59705f22a9b567e07bf80e9d387438f0c0fe71e2391ad458c539e77ff171315
4
- data.tar.gz: 1e2e037a988975496867adc5cabfc92dcf80e34f7bf0edff0b972c2cd53f9cf0
3
+ metadata.gz: 420312cb25f6f5cb3f27499d7afdcadb775d287a28ae58cfcbb97f5156e68064
4
+ data.tar.gz: 7ae7c7e245493062b2f3c41fc2eebde026cc84bfe3714acf9f28704bba0d6eb1
5
5
  SHA512:
6
- metadata.gz: 70b26c9dd3ec6604e6c253efe6be6c9852df907ec2b0d5950a68b3783fa1ae9305ed4d60b0300389835f13eb6fa7df2e26f1eecde3233ca7f374c3269b1eb087
7
- data.tar.gz: 32ad43adeada0906f1a8da8bfcc11266d41407163485cb70b7fe8f1726426d6f6716214b7387d1ba5f4d4c6679e81206ce784fe5765c36dae1d105b5d51ffc18
6
+ metadata.gz: 8f56406ab531b5a04381dffe158a0442d165bf32bb7b5b1b4554a45c704f3ed8bdaedf65500e48268293760a6617e93f5f01df563b37daa0a147d2437a9a5173
7
+ data.tar.gz: 540c6aa22139f78f8f411beceb642e58ef7cbaf1184bff70cbb5a47e7f2766d23e8931fb09789acae6d7ca797c54f08d62e1c7768dcc5b75c6e1aaa8a173a473
@@ -4,7 +4,7 @@ jobs:
4
4
  working_directory: ~/repo
5
5
 
6
6
  docker:
7
- - image: circleci/ruby:2.4
7
+ - image: circleci/ruby:2.7
8
8
 
9
9
  steps:
10
10
  - checkout
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.1.0
4
+
5
+ - compatibility with ruby 2.7.1
6
+
3
7
  ### 1.0.0
4
8
 
5
9
  - adds `Firefighter::RealtimeDatabase#listen` (experimental)
@@ -1,70 +1,72 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firefighter (0.3.0)
5
- http (~> 3.0)
6
- jwt (~> 2.0)
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.6.0)
12
- public_suffix (>= 2.0.2, < 4.0)
13
- byebug (10.0.2)
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.3)
17
- domain_name (0.5.20180417)
16
+ diff-lcs (1.4.4)
17
+ domain_name (0.5.20190701)
18
18
  unf (>= 0.0.5, < 1.0.0)
19
- hashdiff (0.3.8)
20
- http (3.3.0)
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.0)
24
- http_parser.rb (~> 0.6.0)
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.1.1)
28
- http_parser.rb (0.6.0)
29
- jwt (2.1.0)
30
- public_suffix (3.0.3)
31
- rake (10.5.0)
32
- rspec (3.8.0)
33
- rspec-core (~> 3.8.0)
34
- rspec-expectations (~> 3.8.0)
35
- rspec-mocks (~> 3.8.0)
36
- rspec-core (3.8.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-expectations (3.8.2)
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.8.0)
41
- rspec-mocks (3.8.0)
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.8.0)
44
- rspec-support (3.8.0)
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.5)
50
- vcr (4.0.0)
51
- webmock (3.5.1)
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 (~> 1.16)
65
+ bundler
61
66
  byebug
62
67
  firefighter!
63
- rake (~> 10.0)
64
- rspec (~> 3.0)
65
- timecop (~> 0.9)
66
- vcr (~> 4.0)
67
- webmock (~> 3.4)
68
-
69
- BUNDLED WITH
70
- 1.17.2
68
+ rake
69
+ rspec
70
+ timecop
71
+ vcr
72
+ webmock
@@ -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
- [code of conduct](https://github.com/penseo/firefighter/blob/master/CHANGELOG.md)
96
+ [changelog](https://github.com/penseo/firefighter/blob/master/CHANGELOG.md)
@@ -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", "~> 3.0"
32
- spec.add_dependency "jwt", "~> 2.0"
31
+ spec.add_dependency "http", "> 3.0"
32
+ spec.add_dependency "jwt", "> 2.0"
33
33
 
34
- spec.add_development_dependency "bundler", "~> 1.16"
35
- spec.add_development_dependency "rake", "~> 10.0"
36
- spec.add_development_dependency "rspec", "~> 3.0"
37
- spec.add_development_dependency "vcr", "~> 4.0"
38
- spec.add_development_dependency "webmock", "~> 3.4"
39
- spec.add_development_dependency "timecop", "~> 0.9"
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
- config = {
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:)
@@ -3,11 +3,10 @@ module Firefighter
3
3
  include Web
4
4
 
5
5
  def self.from_env
6
- config = {
6
+ new(
7
7
  db_name: ENV['FIREBASE_WEB_DB_NAME'],
8
8
  db_secret: ENV['FIREBASE_WEB_DB_SECRET']
9
- }
10
- new(config)
9
+ )
11
10
  end
12
11
 
13
12
  def initialize(db_name:, db_secret:)
@@ -6,11 +6,10 @@ module Firefighter
6
6
  include Web
7
7
 
8
8
  def self.from_env
9
- config = {
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')
@@ -1,3 +1,3 @@
1
1
  module Firefighter
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
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.0.0
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: 2019-04-16 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
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: '10.0'
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: '10.0'
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: '3.0'
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: '3.0'
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: '4.0'
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: '4.0'
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: '3.4'
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: '3.4'
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.9'
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.9'
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
- rubyforge_project:
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