firepry 0.1.0 → 0.1.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/bin/firepry +4 -12
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b82f771c939b4513c30d3ca4024b1c5d912ada6b98caa7811b9e48b7fde736b0
|
4
|
+
data.tar.gz: cf9d7ba92664224dc9468d1fbb76846bf291f15d1200ff3c96d0348911d30cc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da334f1285bd493d71d227693f6b0e585a56edd84e5979d9bfe8c2793b4c075260ae7d92698920ec4e299208d3a8f40e9e1a316ba77898144ae0ef562014a4d3
|
7
|
+
data.tar.gz: 1ed1c8f178f740eec4bc34a286e9a0c3869ee9573d9626395b00334bde98c548d12f62e2590f6e1d04295c5dc64ae0a2e2fe8635958352d469f353902a37a8ce
|
data/bin/firepry
CHANGED
@@ -1,25 +1,17 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
require 'dotenv/load'
|
2
3
|
require 'optparse'
|
3
4
|
require 'pry'
|
4
5
|
require 'google/cloud/firestore'
|
5
6
|
|
6
7
|
firestore_options = {}
|
7
8
|
OptionParser.new do |opts|
|
8
|
-
opts.on('-p', '--project-id PROJECT-ID', 'GCP project ID')
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
opts.on('-k', '--keyfile KEYFILE', 'GCP keyfile') do |opt|
|
13
|
-
firestore_options[:keyfile] = opt
|
14
|
-
end
|
15
|
-
|
16
|
-
opts.on('-e', '--endpoint ENDPOINT', 'Firestore endpoint URL') do |opt|
|
17
|
-
firestore_options[:endpoint] = opt
|
18
|
-
end
|
9
|
+
opts.on('-p', '--project-id PROJECT-ID', 'GCP project ID') { |opt| firestore_options[:project_id] = opt }
|
10
|
+
opts.on('-k', '--keyfile KEYFILE', 'GCP keyfile') { |opt| firestore_options[:keyfile] = opt }
|
11
|
+
opts.on('-e', '--endpoint ENDPOINT', 'Firestore endpoint URL') { |opt| firestore_options[:endpoint] = opt }
|
19
12
|
end.parse!
|
20
13
|
|
21
14
|
@firestore = Google::Cloud::Firestore.new(**firestore_options)
|
22
|
-
|
23
15
|
def firestore
|
24
16
|
@firestore
|
25
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firepry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Booth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.5.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dotenv
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.7'
|
41
55
|
description:
|
42
56
|
email: andrew@andrewbooth.xyz
|
43
57
|
executables:
|