googlesheets 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf746361c54702e6e6045cc2f50709116f5f03605d7e7031501fc328211a158a
4
- data.tar.gz: 7d619e57b7c3795c45db5f6105f9ba5ffd12840f329e4d53f740da98b3f7f7ff
3
+ metadata.gz: 33fa210a08bf7ee1cd07cc38cb58cc7b9442dc0cc3c9582f84da28bf617c809e
4
+ data.tar.gz: 49ff097a0f7864fb8f1f9a8d79c959ecb9ff2077e5679ff6ab5edb173c0985ed
5
5
  SHA512:
6
- metadata.gz: 439768572b8ee44f0effce13a375c03ece7a65e4df406dbb2ddcff705b1dcf5b9933ef0f1d7bc118bad548b0d3181816ee0d2f87698993099146fb1862bb1b0a
7
- data.tar.gz: 8601bc53985319b1e087dd00ee3f32ca7a8c8022e30813ea6131bbe9dc3d4ffb89ea33ae52b4b995811ad6e7586cd3d7db674f75ffb62e3405c55d590c4ac4aa
6
+ metadata.gz: dabdab76f1f0faaefbcf5b5df795545127c28b5c33862ec32cf4d1d26c6869642facbc258e96de41966147e85ab4bd56b35de288c8e1d923d7710b5b8fb9dc27
7
+ data.tar.gz: d563746217a5d36321e56c807c21d29c804f43f10c22a03a327bbc20bfe1fbd2e31bc9dece174363f20d60aecbc9fc58242962a7d80adf4523c3c372002c7c27
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "googlesheets"
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
  s.author = "Steve Shreeve"
7
7
  s.email = "steve.shreeve@gmail.com"
8
8
  s.summary = "Ruby gem for Google Sheets"
@@ -12,7 +12,7 @@ class GoogleSheets
12
12
  attr_accessor :api
13
13
 
14
14
  def initialize(ssid, **opts)
15
- @ssid = ssid
15
+ @ssid = ssid =~ /^https?:/ ? ssid.split('/')[5] : ssid
16
16
 
17
17
  @json = opts[:credentials] || 'credentials.json'
18
18
  @yaml = opts[:token ] || 'token.yaml'
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem allows easy access to Google Sheets API V4.
14
14
  email: steve.shreeve@gmail.com