google_spreadsheet_fetcher 2.0.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_spreadsheet_fetcher/authorizer/oauth2/rack_application.rb +1 -1
- data/lib/google_spreadsheet_fetcher/version.rb +1 -1
- metadata +39 -11
- data/LICENSE +0 -21
- data/README.md +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd9afdd993fb0d99e457b459cc16038ecc2cec378d1facca5a2e0b6e51fd5904
|
4
|
+
data.tar.gz: f3a1eb29c6524ccf863ea5e5acb8af2b23b0c8662684e89245229bd8a9a288bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c2106ff392f22a452b5b947e3385ae744d063c92c7480665d0fe4812dda9c377575ce484a7d2e4a052f7adada0205216a62b2fcbe0382ffc721ddb47db20bb
|
7
|
+
data.tar.gz: 10287f157820a887f5665fd6d5214d7ddaa5f0049d9c491a72ca60138c02f15c7eb80e479ee260ee57ae40d6fbee5084402d51f98f7302bd264127933bccd546
|
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.0
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takahiro Ooishi
|
@@ -9,22 +9,50 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
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
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
19
47
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
48
|
+
version: '0'
|
21
49
|
type: :runtime
|
22
50
|
prerelease: false
|
23
51
|
version_requirements: !ruby/object:Gem::Requirement
|
24
52
|
requirements:
|
25
|
-
- - "
|
53
|
+
- - ">="
|
26
54
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
55
|
+
version: '0'
|
28
56
|
- !ruby/object:Gem::Dependency
|
29
57
|
name: google-api-client
|
30
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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:
|
@@ -144,14 +172,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
172
|
requirements:
|
145
173
|
- - ">="
|
146
174
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
175
|
+
version: 3.1.0
|
148
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
177
|
requirements:
|
150
178
|
- - ">="
|
151
179
|
- !ruby/object:Gem::Version
|
152
180
|
version: '0'
|
153
181
|
requirements: []
|
154
|
-
rubygems_version: 3.4.
|
182
|
+
rubygems_version: 3.4.19
|
155
183
|
signing_key:
|
156
184
|
specification_version: 4
|
157
185
|
summary: Google Spreadsheet fetcher
|
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,66 +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
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
60
|
-
|
61
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
62
|
-
|
63
|
-
## Contributing
|
64
|
-
|
65
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/taka0125/google_spreadsheet_fetcher.
|
66
|
-
|