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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/firepry +4 -12
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3fe6fb0d9dbf8f1d06afe126eca5def733bb27f479f731f9c78dd21d1595faf
4
- data.tar.gz: 986f0a983e33cdbfe1b3c47ac75c8a904418895972d0b19b277d3ae98bbd1c17
3
+ metadata.gz: b82f771c939b4513c30d3ca4024b1c5d912ada6b98caa7811b9e48b7fde736b0
4
+ data.tar.gz: cf9d7ba92664224dc9468d1fbb76846bf291f15d1200ff3c96d0348911d30cc3
5
5
  SHA512:
6
- metadata.gz: 8ee875c6d51e26d1b4ce99e1134c6358e9992fbd2023c9d12eaf730be2b7b7422070d2edf2386b369966ab955853e9552011ead15e3a685e2eb8413b7be4d421
7
- data.tar.gz: d0f4ae781fd549aeaed0c864cd65c5788f9af70a853708b567c9b3fb748343bf1dcf088eb2b3168a5bdc169e1b12de6c76c250257320db2d3cd3cfd950468dfc
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') 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
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.0
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-02 00:00:00.000000000 Z
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: