firepry 0.1.0
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 +7 -0
- data/bin/firepry +28 -0
- metadata +72 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f3fe6fb0d9dbf8f1d06afe126eca5def733bb27f479f731f9c78dd21d1595faf
|
4
|
+
data.tar.gz: 986f0a983e33cdbfe1b3c47ac75c8a904418895972d0b19b277d3ae98bbd1c17
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8ee875c6d51e26d1b4ce99e1134c6358e9992fbd2023c9d12eaf730be2b7b7422070d2edf2386b369966ab955853e9552011ead15e3a685e2eb8413b7be4d421
|
7
|
+
data.tar.gz: d0f4ae781fd549aeaed0c864cd65c5788f9af70a853708b567c9b3fb748343bf1dcf088eb2b3168a5bdc169e1b12de6c76c250257320db2d3cd3cfd950468dfc
|
data/bin/firepry
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
require 'optparse'
|
3
|
+
require 'pry'
|
4
|
+
require 'google/cloud/firestore'
|
5
|
+
|
6
|
+
firestore_options = {}
|
7
|
+
OptionParser.new do |opts|
|
8
|
+
opts.on('-p', '--project-id PROJECT-ID', 'GCP project ID') do |opt|
|
9
|
+
firestore_options[:project_id] = opt
|
10
|
+
end
|
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
|
19
|
+
end.parse!
|
20
|
+
|
21
|
+
@firestore = Google::Cloud::Firestore.new(**firestore_options)
|
22
|
+
|
23
|
+
def firestore
|
24
|
+
@firestore
|
25
|
+
end
|
26
|
+
alias db firestore
|
27
|
+
|
28
|
+
Pry.start
|
metadata
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: firepry
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Booth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-05-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: pry
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.14.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.14.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: google-cloud-firestore
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.5.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.5.1
|
41
|
+
description:
|
42
|
+
email: andrew@andrewbooth.xyz
|
43
|
+
executables:
|
44
|
+
- firepry
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- bin/firepry
|
49
|
+
homepage: https://github.com/broothie/firepry
|
50
|
+
licenses:
|
51
|
+
- MIT
|
52
|
+
metadata: {}
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.5.5
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
requirements: []
|
68
|
+
rubygems_version: 3.0.3.1
|
69
|
+
signing_key:
|
70
|
+
specification_version: 4
|
71
|
+
summary: A Firestore Pry console
|
72
|
+
test_files: []
|