google_spreadsheet_fetcher 2.1.0 → 2.2.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
  SHA256:
3
- metadata.gz: 26708c88eee3d0d0beb8ba3cd42d6ff81c79c100b8349903235d509126f58a09
4
- data.tar.gz: 89fd968032d52d3ee41d85663bbff704b1b703f1d8abe53fee0d7ded29fe94e1
3
+ metadata.gz: cd9afdd993fb0d99e457b459cc16038ecc2cec378d1facca5a2e0b6e51fd5904
4
+ data.tar.gz: f3a1eb29c6524ccf863ea5e5acb8af2b23b0c8662684e89245229bd8a9a288bf
5
5
  SHA512:
6
- metadata.gz: 90dae21a0735b1c83df92ce64020df8b9393e6c121ae6d005aabefcbae8680f6eca9fddfd1f0ce874184dfab6cdd2ae34174500bc4ef9e93384de997ced74234
7
- data.tar.gz: 1510aace4af2f159eab8ced5dfff9730c297aa71aa01b3059316b96f37706c30ca5a16d94c8233e3cd5978a56937a97d1fc8710016286d5bc942fe0fff227bbc
6
+ metadata.gz: 07c2106ff392f22a452b5b947e3385ae744d063c92c7480665d0fe4812dda9c377575ce484a7d2e4a052f7adada0205216a62b2fcbe0382ffc721ddb47db20bb
7
+ data.tar.gz: 10287f157820a887f5665fd6d5214d7ddaa5f0049d9c491a72ca60138c02f15c7eb80e479ee260ee57ae40d6fbee5084402d51f98f7302bd264127933bccd546
@@ -29,7 +29,7 @@ module GoogleSpreadsheetFetcher
29
29
  domain: 'localhost',
30
30
  path: '/',
31
31
  expire_after: 3600*24,
32
- secret: secret || SecureRandom.uuid
32
+ secret: secret || SecureRandom.hex(64)
33
33
  }
34
34
  end
35
35
 
@@ -1,3 +1,3 @@
1
1
  module GoogleSpreadsheetFetcher
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_spreadsheet_fetcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
@@ -9,10 +9,38 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-08-12 00:00:00.000000000 Z
12
+ date: 2024-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '3'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '3'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rackup
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rack-session
16
44
  requirement: !ruby/object:Gem::Requirement
17
45
  requirements:
18
46
  - - ">="
@@ -117,8 +145,6 @@ executables: []
117
145
  extensions: []
118
146
  extra_rdoc_files: []
119
147
  files:
120
- - LICENSE
121
- - README.md
122
148
  - lib/google_spreadsheet_fetcher.rb
123
149
  - lib/google_spreadsheet_fetcher/authorizer/interface.rb
124
150
  - lib/google_spreadsheet_fetcher/authorizer/oauth2/authorizer.rb
@@ -135,7 +161,9 @@ files:
135
161
  homepage: https://github.com/taka0125/google_spreadsheet_fetcher
136
162
  licenses:
137
163
  - MIT
138
- metadata: {}
164
+ metadata:
165
+ homepage_uri: https://github.com/taka0125/google_spreadsheet_fetcher
166
+ source_code_uri: https://github.com/taka0125/google_spreadsheet_fetcher
139
167
  post_install_message:
140
168
  rdoc_options: []
141
169
  require_paths:
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Takahiro Ooishi
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
data/README.md DELETED
@@ -1,67 +0,0 @@
1
- # GoogleSpreadsheetFetcher
2
-
3
- Provides access to Google spreadsheets
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'google_spreadsheet_fetcher'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install google_spreadsheet_fetcher
20
-
21
- ## Usage
22
-
23
- ```ruby
24
- sheet_key = 'example_sheet_id'
25
-
26
- GoogleSpreadsheetFetcher.configure do |config|
27
- ...
28
- end
29
-
30
- user_id = 'sample'
31
-
32
- fetcher = GoogleSpreadsheetFetcher::Fetcher.new(sheet_key, user_id)
33
-
34
- fetcher.fetch_all_rows_by!(index: 0)
35
- fetcher.fetch_all_rows_by!(title: 'sheet_title')
36
- fetcher.fetch_all_rows_by!(sheet_id: 1234567890)
37
-
38
-
39
- # or, you can do a bulk fetching. In this case, you only need to access the API once,
40
- # but it will take a little longer on first fetch.
41
- fetcher = GoogleSpreadsheetFetcher::BulkFetcher.new(sheet_key, user_id)
42
- fetcher.fetch
43
-
44
- fetcher.all_rows_by!(index: 0)
45
- fetcher.all_rows_by!(title: 'sheet_title')
46
- fetcher.all_rows_by!(sheet_id: 1234567890)
47
- ```
48
-
49
- ### Use Service Account
50
-
51
- https://github.com/taka0125/google_spreadsheet_fetcher/wiki/Use-Service-Account
52
-
53
- ### Use OAuth2
54
-
55
- https://github.com/taka0125/google_spreadsheet_fetcher/wiki/Use-OAuth2
56
-
57
- ## Development
58
-
59
- ```bash
60
- $ make setup
61
- $ make ruby/rspec
62
- ```
63
-
64
- ## Contributing
65
-
66
- Bug reports and pull requests are welcome on GitHub at https://github.com/taka0125/google_spreadsheet_fetcher.
67
-