sheet_reader 0.0.1 → 1.0.0

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
  SHA1:
3
- metadata.gz: 3c8485cd317633e37535f619c7f26943447ad640
4
- data.tar.gz: eadd6eb7803051c7c479e2fec7eaa734bf05b9cd
3
+ metadata.gz: a6f77613bbf2c969a879225110bbf7def59f44e0
4
+ data.tar.gz: 37f153c21601dd935583740cfa34139388b026fc
5
5
  SHA512:
6
- metadata.gz: 968c9d5291da32aa9b8c2580bb1d2f86a7dd553f4d0328494c6836a6673fba53a7673ad21bfad8857d065407ddccfecaaba62690d79130a8c603b67cef1a992b
7
- data.tar.gz: f27398ceab40ffb4b72952a9fa50c1c6375cf5a9fd1b6f9fc52f173b57f93c583f309a64bf5a4945550d397fb440c08a95cd8548b154cdfb560406689d12dc88
6
+ metadata.gz: 82e5a62039aaa242fff4f7220f4981cffcf58ab5b72858fb8aa26fdbaa6d645d35919196388e58118cb1ce638fc32084b90f7b32cf4aa9abf5a94d711154ff79
7
+ data.tar.gz: 0a095f97c9a587206a8b477a4fad256253e0144f634edcca1d7818d29308e6c57ab5ea8b00ba4029cd98d619ef5f541bcc88fc079779a3abcabb372f5a6c6b02
@@ -29,6 +29,7 @@ module SheetReader
29
29
  raw_values = sheets.get_spreadsheet_values(sheet_id, "#{sheet_name}!A:ZZ").values
30
30
  rescue Google::Apis::ClientError => e
31
31
  raise BadSheetId if e.message =~ /notFound/
32
+ raise Unauthorized if e.message =~ /forbidden/
32
33
  rescue
33
34
  raise Error
34
35
  end
@@ -12,6 +12,7 @@ module SheetReader
12
12
  end
13
13
 
14
14
  class BadSheetId < Error; end
15
+ class Unauthorized < Error; end
15
16
 
16
17
  class MissingEnvVars < Error
17
18
  def message
@@ -1,3 +1,3 @@
1
1
  module SheetReader
2
- VERSION='0.0.1'
2
+ VERSION='1.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sheet_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clearbit
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 2.2.5
70
+ rubygems_version: 2.6.8
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: Read google spreadsheets