google_drive_maintained 3.0.8 → 3.0.9
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 +4 -4
- data/README.md +15 -5
- data/lib/google_drive/worksheet_formatting.rb +52 -52
- metadata +2 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1c15539fcc6168ea5c7dbec734c94b270e2d22ed189848caa74f2125bd4d8ad
|
4
|
+
data.tar.gz: c9a287fb0fb0c1c905eb2e5c266baab65e4ce2e79e6380bbbd4699b4d185bcae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b9ff53cb67224d4a944c026ddab2f08d9dff247446eba5c9dac17a5b8a53aebc03d7cd5fac2296b7f940b782bd741670897b17d88a55fc490b50099145734e1
|
7
|
+
data.tar.gz: 7401a746cfc823c070e4fbdaa3e3ee9eef322289d6cabd9b25dd3a70589d27b1586542a3665c2e75aaf424cc7aa6a3c73ff5bcb4001546e45476fd07ba628c20
|
data/README.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
|
-
# google-drive-ruby [](https://github.com/y-bonfire/google-drive-ruby-maintained/actions/workflows/test.yml)
|
2
2
|
|
3
3
|
This is a Ruby library to read/write files/spreadsheets in Google Drive/Docs.
|
4
4
|
|
5
5
|
NOTE: This is NOT a library to create Google Drive App.
|
6
|
-
|
6
|
+
|
7
|
+
NOTE: ⚠️This is an unofficial maintained fork of google-drive-ruby, originally created by Hiroshi Ichikawa.
|
8
|
+
We focus on preserving compatibility and fixing bugs, with minimal disruptive changes.
|
9
|
+
New features may be added carefully when justified, but the core behavior will remain stable.
|
10
|
+
|
11
|
+
✅ GitHub Actions Integration
|
12
|
+
We've started testing this library with GitHub Actions:
|
13
|
+
👉 [CI Workflow Link](https://github.com/y-bonfire/google-drive-ruby-maintained/actions)
|
14
|
+
|
15
|
+
This enables automated testing on every push and pull request, helping ensure long-term reliability.
|
16
|
+
We welcome feedback and contributions to improve the CI process or test coverage. 🤗
|
7
17
|
|
8
18
|
* [Migration from ver. 2.x.x or before](#migration)
|
9
19
|
* [How to install](#install)
|
@@ -27,7 +37,7 @@ There are some incompatible API changes. See
|
|
27
37
|
Add this line to your application's Gemfile:
|
28
38
|
|
29
39
|
```ruby
|
30
|
-
gem '
|
40
|
+
gem 'google_drive_maintained'
|
31
41
|
```
|
32
42
|
|
33
43
|
And then execute:
|
@@ -39,13 +49,13 @@ $ bundle
|
|
39
49
|
Or install it yourself as:
|
40
50
|
|
41
51
|
```
|
42
|
-
$ gem install
|
52
|
+
$ gem install google_drive_maintained
|
43
53
|
```
|
44
54
|
|
45
55
|
If you need system wide installation, execute below:
|
46
56
|
|
47
57
|
```
|
48
|
-
$ sudo gem install
|
58
|
+
$ sudo gem install google_drive_maintained
|
49
59
|
```
|
50
60
|
|
51
61
|
## <a name="use">How to use</a>
|
@@ -1,53 +1,53 @@
|
|
1
|
-
require 'forwardable'
|
2
|
-
|
3
|
-
module GoogleDrive
|
4
|
-
|
5
|
-
class Cell
|
6
|
-
attr_reader :row, :col, :value
|
7
|
-
|
8
|
-
def initialize(worksheet, row, col, value)
|
9
|
-
@worksheet = worksheet
|
10
|
-
@row = row
|
11
|
-
@col = col
|
12
|
-
@value = value
|
13
|
-
end
|
14
|
-
|
15
|
-
#
|
16
|
-
# === 等価性
|
17
|
-
#
|
18
|
-
def ==(other)
|
19
|
-
case other
|
20
|
-
when GoogleDrive::Cell
|
21
|
-
@value == other.value
|
22
|
-
else
|
23
|
-
@value == other
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def to_s
|
28
|
-
value.to_s
|
29
|
-
end
|
30
|
-
|
31
|
-
def encoding
|
32
|
-
value.respond_to?(:encoding) ? value.encoding : nil
|
33
|
-
end
|
34
|
-
|
35
|
-
def background_color=(color)
|
36
|
-
@worksheet.set_background_color(@row, @col, 1, 1, color)
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
module WorksheetFormatting
|
42
|
-
|
43
|
-
def set_background_color_at(row, col, color)
|
44
|
-
set_background_color(row, col, 1, 1, color)
|
45
|
-
end
|
46
|
-
|
47
|
-
def set_bold(row, col, enable = true)
|
48
|
-
# 太字設定
|
49
|
-
end
|
50
|
-
|
51
|
-
# ... 他にも text_color, font_size など拡張しやすい
|
52
|
-
end
|
1
|
+
require 'forwardable'
|
2
|
+
|
3
|
+
module GoogleDrive
|
4
|
+
|
5
|
+
class Cell
|
6
|
+
attr_reader :row, :col, :value
|
7
|
+
|
8
|
+
def initialize(worksheet, row, col, value)
|
9
|
+
@worksheet = worksheet
|
10
|
+
@row = row
|
11
|
+
@col = col
|
12
|
+
@value = value
|
13
|
+
end
|
14
|
+
|
15
|
+
#
|
16
|
+
# === 等価性
|
17
|
+
#
|
18
|
+
def ==(other)
|
19
|
+
case other
|
20
|
+
when GoogleDrive::Cell
|
21
|
+
@value == other.value
|
22
|
+
else
|
23
|
+
@value == other
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def to_s
|
28
|
+
@value.to_s
|
29
|
+
end
|
30
|
+
|
31
|
+
def encoding
|
32
|
+
@value.respond_to?(:encoding) ? value.encoding : nil
|
33
|
+
end
|
34
|
+
|
35
|
+
def background_color=(color)
|
36
|
+
@worksheet.set_background_color(@row, @col, 1, 1, color)
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
module WorksheetFormatting
|
42
|
+
|
43
|
+
def set_background_color_at(row, col, color)
|
44
|
+
set_background_color(row, col, 1, 1, color)
|
45
|
+
end
|
46
|
+
|
47
|
+
def set_bold(row, col, enable = true)
|
48
|
+
# 太字設定
|
49
|
+
end
|
50
|
+
|
51
|
+
# ... 他にも text_color, font_size など拡張しやすい
|
52
|
+
end
|
53
53
|
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.
|
4
|
+
version: 3.0.9
|
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-
|
11
|
+
date: 2025-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -34,9 +34,6 @@ dependencies:
|
|
34
34
|
name: google-apis-drive_v3
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.5'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 0.5.0
|
@@ -44,9 +41,6 @@ dependencies:
|
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0.5'
|
50
44
|
- - ">="
|
51
45
|
- !ruby/object:Gem::Version
|
52
46
|
version: 0.5.0
|
@@ -54,9 +48,6 @@ dependencies:
|
|
54
48
|
name: google-apis-sheets_v4
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '0.4'
|
60
51
|
- - ">="
|
61
52
|
- !ruby/object:Gem::Version
|
62
53
|
version: 0.4.0
|
@@ -64,9 +55,6 @@ dependencies:
|
|
64
55
|
prerelease: false
|
65
56
|
version_requirements: !ruby/object:Gem::Requirement
|
66
57
|
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0.4'
|
70
58
|
- - ">="
|
71
59
|
- !ruby/object:Gem::Version
|
72
60
|
version: 0.4.0
|
@@ -74,9 +62,6 @@ dependencies:
|
|
74
62
|
name: googleauth
|
75
63
|
requirement: !ruby/object:Gem::Requirement
|
76
64
|
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '0.5'
|
80
65
|
- - ">="
|
81
66
|
- !ruby/object:Gem::Version
|
82
67
|
version: 0.5.0
|
@@ -84,9 +69,6 @@ dependencies:
|
|
84
69
|
prerelease: false
|
85
70
|
version_requirements: !ruby/object:Gem::Requirement
|
86
71
|
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.5'
|
90
72
|
- - ">="
|
91
73
|
- !ruby/object:Gem::Version
|
92
74
|
version: 0.5.0
|
@@ -114,9 +96,6 @@ dependencies:
|
|
114
96
|
name: rake
|
115
97
|
requirement: !ruby/object:Gem::Requirement
|
116
98
|
requirements:
|
117
|
-
- - "~>"
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '0.8'
|
120
99
|
- - ">="
|
121
100
|
- !ruby/object:Gem::Version
|
122
101
|
version: 0.8.0
|
@@ -124,9 +103,6 @@ dependencies:
|
|
124
103
|
prerelease: false
|
125
104
|
version_requirements: !ruby/object:Gem::Requirement
|
126
105
|
requirements:
|
127
|
-
- - "~>"
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '0.8'
|
130
106
|
- - ">="
|
131
107
|
- !ruby/object:Gem::Version
|
132
108
|
version: 0.8.0
|