google_drive_maintained 3.0.9 → 3.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c15539fcc6168ea5c7dbec734c94b270e2d22ed189848caa74f2125bd4d8ad
4
- data.tar.gz: c9a287fb0fb0c1c905eb2e5c266baab65e4ce2e79e6380bbbd4699b4d185bcae
3
+ metadata.gz: 1add8da8c82f5e2d07e01c3acf1d6371cdb9a2b76f682e9e23ba97078f0a427d
4
+ data.tar.gz: 14067a068791b64bb7df18e0f1572868614d21b48c5ad801cd57e67dc0b0c442
5
5
  SHA512:
6
- metadata.gz: 1b9ff53cb67224d4a944c026ddab2f08d9dff247446eba5c9dac17a5b8a53aebc03d7cd5fac2296b7f940b782bd741670897b17d88a55fc490b50099145734e1
7
- data.tar.gz: 7401a746cfc823c070e4fbdaa3e3ee9eef322289d6cabd9b25dd3a70589d27b1586542a3665c2e75aaf424cc7aa6a3c73ff5bcb4001546e45476fd07ba628c20
6
+ metadata.gz: 83cefab91ae4aec94b17fd6134895690cd0b15814e018f92742b2b91ca60d45788696c56f980b9e53495a0fcf259fcbebaedd95f6fac1a6102754ea8aeb9db9c
7
+ data.tar.gz: 6ecdf4804668bcbde411bbd14e68b06bf08843260a71db86350ac8f994b10234097303203efd3db4714f3e3058f720f41a99c1402c02cd7cdacd4cbf82fc9275
data/README.md CHANGED
@@ -1,13 +1,26 @@
1
- # google-drive-ruby [![CI](https://github.com/y-bonfire/google-drive-ruby-maintained/actions/workflows/test.yml/badge.svg)](https://github.com/y-bonfire/google-drive-ruby-maintained/actions/workflows/test.yml)
1
+ # google-drive-ruby
2
+
3
+ [![Gem](https://img.shields.io/gem/v/google_drive_maintained.svg)](https://rubygems.org/gems/google_drive_maintained)
4
+ [![GitHub Actions Workflow Status](https://github.com/y-bonfire/google-drive-ruby-maintained/actions/workflows/test.yml/badge.svg)](https://github.com/y-bonfire/google-drive-ruby-maintained/actions/workflows/test.yml)
2
5
 
3
6
  This is a Ruby library to read/write files/spreadsheets in Google Drive/Docs.
4
7
 
5
8
  NOTE: This is NOT a library to create Google Drive App.
6
9
 
7
- NOTE: ⚠️This is an unofficial maintained fork of google-drive-ruby, originally created by Hiroshi Ichikawa.
10
+ ## Introduction
11
+ ⚠️This is an unofficial maintained fork of [gimite/google-drive-ruby](https://github.com/gimite/google-drive-ruby), originally created by Hiroshi Ichikawa.
12
+
8
13
  We focus on preserving compatibility and fixing bugs, with minimal disruptive changes.
9
14
  New features may be added carefully when justified, but the core behavior will remain stable.
10
15
 
16
+ See [this issue](https://github.com/y-bonfire/google-drive-ruby-maintained/issues/7) for background and intent.
17
+
18
+ ## Contributing
19
+
20
+ We are actively working on improving the library, updating dependencies, and refining the development workflow.
21
+ If you'd like to contribute, please check [CONTRIBUTING.md](./CONTRIBUTING.md) for up-to-date contribution guidelines and technical notes (CI, testing, gem build, etc.).
22
+
23
+
11
24
  ✅ GitHub Actions Integration
12
25
  We've started testing this library with GitHub Actions:
13
26
  👉 [CI Workflow Link](https://github.com/y-bonfire/google-drive-ruby-maintained/actions)
@@ -15,6 +28,8 @@ We've started testing this library with GitHub Actions:
15
28
  This enables automated testing on every push and pull request, helping ensure long-term reliability.
16
29
  We welcome feedback and contributions to improve the CI process or test coverage. 🤗
17
30
 
31
+ ## table of contents
32
+
18
33
  * [Migration from ver. 2.x.x or before](#migration)
19
34
  * [How to install](#install)
20
35
  * [How to use](#use)
@@ -29,7 +44,7 @@ We welcome feedback and contributions to improve the CI process or test coverage
29
44
  ## <a name="migration">Migration from ver. 2.x.x or before</a>
30
45
 
31
46
  There are some incompatible API changes. See
32
- [MIGRATING.md](https://github.com/gimite/google-drive-ruby/blob/master/MIGRATING.md).
47
+ [MIGRATING.md](MIGRATING.md).
33
48
 
34
49
 
35
50
  ## <a name="install">How to install</a>
@@ -62,7 +77,7 @@ $ sudo gem install google_drive_maintained
62
77
 
63
78
  ### Authorization
64
79
 
65
- Follow one of the options in [Authorization](https://github.com/gimite/google-drive-ruby/blob/master/doc/authorization.md) to construct a session object. The example code below assumes "On behalf of you" option.
80
+ Follow one of the options in [Authorization](doc/authorization.md) to construct a session object. The example code below assumes "On behalf of you" option.
66
81
 
67
82
  ### Example to read/write files in Google Drive
68
83
 
@@ -138,7 +153,7 @@ New BSD Licence.
138
153
 
139
154
  ## <a name="environments">Supported environments</a>
140
155
 
141
- Ruby 3.0.0 or later. Checked with Ruby 3.3.0.
156
+ Ruby 3.2.0 or later. Checked with Ruby 3.3.0.
142
157
 
143
158
 
144
159
  ## <a name="author">Author</a>
@@ -96,7 +96,7 @@ module GoogleDrive
96
96
  def download_to_file(path, params = {})
97
97
  @session.drive_service.get_file(
98
98
  id,
99
- { download_dest: path, supports_all_drives: true }.merge(params)
99
+ **{ download_dest: path, supports_all_drives: true }.merge(params)
100
100
  )
101
101
  end
102
102
 
@@ -77,6 +77,7 @@ module GoogleDrive
77
77
  # As with from_config, you can configure Google API client behavior with
78
78
  # +client_options+ and +request_options+. Unlike in from_config, these
79
79
  # are passed as positional arguments.
80
+ # @return [GoogleDrive::Session]
80
81
  def self.from_service_account_key(
81
82
  json_key_path_or_io, scope = DEFAULT_SCOPE, client_options = nil,
82
83
  request_options = nil
@@ -270,6 +271,19 @@ module GoogleDrive
270
271
  # If given an Array, traverses folders by title. e.g.:
271
272
  # session.file_by_title(
272
273
  # ["myfolder", "mysubfolder/even/w/slash", "myfile"])
274
+ # root
275
+ # └── myfolder
276
+ # └── mysubfolder/even/w/slash
277
+ # └── myfile
278
+ # In Google Drive,
279
+ #
280
+ # "mysubfolder/even/w/slash"
281
+ #
282
+ # is a folder with a single name that includes a slash.
283
+ # For example, you can create a folder named mysubfolder/even/w/slash directly
284
+ # This is not a UNIX-style "path."
285
+ #
286
+ # @return [GoogleDrive::File]
273
287
  def file_by_title(title)
274
288
  if title.is_a?(Array)
275
289
  root_collection.file_by_title(title)
@@ -329,6 +343,7 @@ module GoogleDrive
329
343
  # # https://docs.google.com/spreadsheets/d/1L3-kvwJblyW_TvjYD-7pE-AXxw5_bkb6S_MljuIPVL0/edit
330
344
  # session.spreadsheet_by_key(
331
345
  # "1L3-kvwJblyW_TvjYD-7pE-AXxw5_bkb6S_MljuIPVL0")
346
+ # @return [GoogleDrive::Spreadsheet]
332
347
  def spreadsheet_by_key(key)
333
348
  file = file_by_id(key)
334
349
  unless file.is_a?(Spreadsheet)
@@ -48,6 +48,7 @@ module GoogleDrive
48
48
  end
49
49
 
50
50
  # Returns worksheets of the spreadsheet as array of GoogleDrive::Worksheet.
51
+ # @return [Array<GoogleDrive::Worksheet>]
51
52
  def worksheets
52
53
  api_spreadsheet = @session.sheets_service.get_spreadsheet(id, fields: 'sheets.properties')
53
54
  api_spreadsheet.sheets.map{ |s| Worksheet.new(@session, self, s.properties) }
@@ -635,7 +635,7 @@ module GoogleDrive
635
635
  # {bottom: Google::Apis::SheetsV4::Border.new(
636
636
  # style: "DOUBLE", color: GoogleDrive::Worksheet::Colors::BLACK)})
637
637
  def update_borders(top_row, left_col, num_rows, num_cols, borders)
638
- request = Google::Apis::SheetsV4::UpdateBordersRequest.new(borders)
638
+ request = Google::Apis::SheetsV4::UpdateBordersRequest.new(**borders)
639
639
  request.range = v4_range_object(top_row, left_col, num_rows, num_cols)
640
640
  add_request({update_borders: request})
641
641
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_drive_maintained
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Ichikawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-26 00:00:00.000000000 Z
11
+ date: 2025-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.5.3
19
+ version: '1.18'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.0.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.5.3
29
+ version: '1.18'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.0.0
@@ -36,42 +36,42 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.5.0
39
+ version: 0.63.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.5.0
46
+ version: 0.63.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: google-apis-sheets_v4
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.4.0
53
+ version: 0.42.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 0.4.0
60
+ version: 0.42.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: googleauth
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 0.5.0
67
+ version: '1.14'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 0.5.0
74
+ version: '1.14'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: test-unit
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -98,14 +98,14 @@ dependencies:
98
98
  requirements:
99
99
  - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 0.8.0
101
+ version: 13.0.3
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- version: 0.8.0
108
+ version: 13.0.3
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rspec-mocks
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +158,12 @@ files:
158
158
  homepage: https://github.com/y-bonfire/google-drive-ruby-maintained
159
159
  licenses:
160
160
  - BSD-3-Clause
161
- metadata: {}
161
+ metadata:
162
+ homepage_uri: https://github.com/y-bonfire/google-drive-ruby-maintained
163
+ source_code_uri: https://github.com/y-bonfire/google-drive-ruby-maintained
164
+ changelog_uri: https://github.com/y-bonfire/google-drive-ruby-maintained/blob/main/CHANGELOG.md
165
+ bug_tracker_uri: https://github.com/y-bonfire/google-drive-ruby-maintained/issues
166
+ documentation_uri: https://rubydoc.info/gems/google_drive_ruby_maintained
162
167
  post_install_message:
163
168
  rdoc_options: []
164
169
  require_paths:
@@ -167,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
172
  requirements:
168
173
  - - ">="
169
174
  - !ruby/object:Gem::Version
170
- version: 3.0.0
175
+ version: '3.1'
171
176
  required_rubygems_version: !ruby/object:Gem::Requirement
172
177
  requirements:
173
178
  - - ">="