googlesheets 0.6.4 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/googlesheets.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daf8f693ecd8d71a27765777260113aa6983861deb3821e6b0a2c660a55b2752
|
4
|
+
data.tar.gz: 61b86c3fedfdd39706d6ca0f5bc5c3510ff1acbb81474a94fdc2f67bd46d9008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7dbdc0f9217c727964938abb9941e3793226193c4bbc2e2b8991d06bae7f10c85f9ed30962aa250d4fa98a53bdfae9b06e93c6ed453a8a31a4091ba3eb2b55c
|
7
|
+
data.tar.gz: 961beb15ab4c331098345ae559ef80e88e43d5e336e199b549294c5eeb3d7a7b61311f85f129ea8bd0969f7eae5c927cc59d7dbd0e261e810043920507ee35c1
|
data/README.md
CHANGED
data/lib/googlesheets.rb
CHANGED
@@ -19,7 +19,7 @@ class Object
|
|
19
19
|
end
|
20
20
|
|
21
21
|
class GoogleSheets
|
22
|
-
VERSION = "0.
|
22
|
+
VERSION = "0.7.0"
|
23
23
|
|
24
24
|
attr_accessor :api
|
25
25
|
|
@@ -31,6 +31,13 @@ class GoogleSheets
|
|
31
31
|
@json = opts[:credentials] || "credentials.json"
|
32
32
|
@yaml = opts[:token ] || "token.yaml"
|
33
33
|
|
34
|
+
if !File.exist?(@json)
|
35
|
+
base = File.expand_path(File.join(ENV["HOME"], ".google"))
|
36
|
+
abort "unable to file Google API credentials" unless File.exist?(base)
|
37
|
+
@json = File.join(base, @json)
|
38
|
+
@yaml = File.join(base, @yaml)
|
39
|
+
end
|
40
|
+
|
34
41
|
if opts[:debug] == true
|
35
42
|
$stdout.sync = true
|
36
43
|
Google::Apis.logger = Logger.new(STDERR)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: googlesheets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Shreeve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
|
-
rubygems_version: 3.4.
|
59
|
+
rubygems_version: 3.4.9
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: Ruby library for Google Sheets
|