googlesheets 0.8.4 → 0.9.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 +4 -4
- data/lib/googlesheets.rb +12 -2
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6697d719e4f999bcdfcfd6394ef83c84363cfb97f32330aa2d5346d3f09a09ef
|
4
|
+
data.tar.gz: 89c5d98877ccfb36e33a803c06b21c974c1144582bf66d31696c30ba4867133f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee38a2d0b04deefd3c7314fc6f999e7e68e6ed81644b2f1a88b34b8b9f6246d3746d44650b754500cb58f8f690afd2dbd9afaa37ca85d102bcc1b6949f2abfc0
|
7
|
+
data.tar.gz: 1daf58d34b6e81b0ffaf7eeb8e1a339eea43ce3f7f9388f2695f27f41471d70a4fd12eb85b8fc908b88740c07fa14a316c68893ded473a2955b6b62c7e045f70
|
data/lib/googlesheets.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# googlesheets - Ruby gem for Google Sheets
|
3
3
|
#
|
4
4
|
# Author: Steve Shreeve (steve.shreeve@gmail.com)
|
5
|
-
# Date: March
|
5
|
+
# Date: March 11, 2025
|
6
6
|
# ============================================================================
|
7
7
|
|
8
8
|
# See https://googleapis.dev/ruby/google-api-client/latest/Google/Apis/SheetsV4/Request.html
|
@@ -19,7 +19,7 @@ class Object
|
|
19
19
|
end
|
20
20
|
|
21
21
|
class GoogleSheets
|
22
|
-
VERSION = "0.
|
22
|
+
VERSION = "0.9.0"
|
23
23
|
|
24
24
|
attr_accessor :api
|
25
25
|
|
@@ -38,6 +38,16 @@ class GoogleSheets
|
|
38
38
|
@yaml = File.join(base, @yaml)
|
39
39
|
end
|
40
40
|
|
41
|
+
if File.exist?(@yaml)
|
42
|
+
begin
|
43
|
+
yaml = YAML.load_file(@yaml)
|
44
|
+
till = JSON[yaml["default"]]["expiration_time_millis"] / 1000
|
45
|
+
till > Time.now.to_i or raise
|
46
|
+
rescue
|
47
|
+
File.delete(@yaml)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
41
51
|
if opts[:debug] == true
|
42
52
|
$stdout.sync = true
|
43
53
|
Google::Apis.logger = Logger.new(STDERR)
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: googlesheets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Shreeve
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-11 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: censive
|
@@ -83,7 +82,6 @@ homepage: https://github.com/shreeve/googlesheets
|
|
83
82
|
licenses:
|
84
83
|
- MIT
|
85
84
|
metadata: {}
|
86
|
-
post_install_message:
|
87
85
|
rdoc_options: []
|
88
86
|
require_paths:
|
89
87
|
- lib
|
@@ -98,8 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
96
|
- !ruby/object:Gem::Version
|
99
97
|
version: '0'
|
100
98
|
requirements: []
|
101
|
-
rubygems_version: 3.
|
102
|
-
signing_key:
|
99
|
+
rubygems_version: 3.6.3
|
103
100
|
specification_version: 4
|
104
101
|
summary: Ruby library for Google Sheets
|
105
102
|
test_files: []
|