ad_localize 4.0.5 → 4.0.6
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/CHANGELOG.md +4 -0
- data/Gemfile.lock +6 -4
- data/README.md +6 -1
- data/lib/ad_localize/repositories/g_sheets_repository.rb +1 -1
- data/lib/ad_localize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5dc831e39e21e628ccb906bb9c1b6c3d413e6c182384b6e679a7586e0826d93a
|
|
4
|
+
data.tar.gz: 0e3a03ab471b2a45e1b23b44a67d196bf609503ff51364b81fe886b03fc895ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 571e52661789dd15c8a24958a2a2cae26a166e4081b7739ee09fb5df6993ec9658c26e3df3aebcdf458d9980ebb4e2a32bb1eefca294daa2c3abe1396d1faf6f
|
|
7
|
+
data.tar.gz: e66e4710b854bf15e161e6149f2f2d20e9ff54cc0ddcc0207d2bc421dd935a35dbd419069b37e9b9fd3f3549222637a0262f24c2f486e83673589eaf9f3fdae1
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [4.0.5] - 2020-01-25
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fix google spreadsheet sheet id comparison with sheet_ids option value
|
|
10
|
+
|
|
7
11
|
## [4.0.5] - 2020-11-12
|
|
8
12
|
### Fixed
|
|
9
13
|
- Fix csv file type check (also add compatibility with macOS Big Sur)
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ad_localize (4.0.
|
|
4
|
+
ad_localize (4.0.6)
|
|
5
5
|
activesupport (>= 5.2, < 7.0)
|
|
6
6
|
colorize (~> 0.8)
|
|
7
7
|
google-api-client (~> 0.34)
|
|
@@ -52,7 +52,7 @@ GEM
|
|
|
52
52
|
jwt (2.2.2)
|
|
53
53
|
memoist (0.16.2)
|
|
54
54
|
mini_mime (1.0.2)
|
|
55
|
-
mini_portile2 (2.
|
|
55
|
+
mini_portile2 (2.5.0)
|
|
56
56
|
minitest (5.14.0)
|
|
57
57
|
minitest-reporters (1.4.2)
|
|
58
58
|
ansi
|
|
@@ -61,10 +61,12 @@ GEM
|
|
|
61
61
|
ruby-progressbar
|
|
62
62
|
multi_json (1.15.0)
|
|
63
63
|
multipart-post (2.1.1)
|
|
64
|
-
nokogiri (1.
|
|
65
|
-
mini_portile2 (~> 2.
|
|
64
|
+
nokogiri (1.11.1)
|
|
65
|
+
mini_portile2 (~> 2.5.0)
|
|
66
|
+
racc (~> 1.4)
|
|
66
67
|
os (1.1.1)
|
|
67
68
|
public_suffix (4.0.6)
|
|
69
|
+
racc (1.5.2)
|
|
68
70
|
rake (12.3.3)
|
|
69
71
|
representable (3.0.4)
|
|
70
72
|
declarative (< 0.1.0)
|
data/README.md
CHANGED
|
@@ -31,7 +31,7 @@ $ gem install ad_localize
|
|
|
31
31
|
$ ad_localize -h
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
* Export wording from a google spreadsheet, default tab. The spreadsheet key and sheet_id are available in the spreadsheet url. For example `https://docs.google.com/spreadsheets/d/<your-spreadsheet-drive-key>/edit#gid=<sheet-id>`.
|
|
34
|
+
* Export wording from a public google spreadsheet, default tab. The spreadsheet key and sheet_id are available in the spreadsheet url. For example `https://docs.google.com/spreadsheets/d/<your-spreadsheet-drive-key>/edit#gid=<sheet-id>`.
|
|
35
35
|
```
|
|
36
36
|
$ ad_localize -k <your-spreadsheet-drive-key>
|
|
37
37
|
```
|
|
@@ -41,6 +41,11 @@ $ ad_localize -k <your-spreadsheet-drive-key>
|
|
|
41
41
|
$ ad_localize -k <your-spreadsheet-drive-key> -s <comma-separated-sheet-id-list>
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
* Export wording from a private google spreadsheet. It requires a [Google Cloud Service Account](#using-a-google-cloud-service-account).
|
|
45
|
+
```
|
|
46
|
+
$ GCLOUD_CLIENT_SECRET=$(cat <path-to-client-secret.json>) ad_localize -k <your-spreadsheet-drive-key>
|
|
47
|
+
```
|
|
48
|
+
|
|
44
49
|
* Export wording from all sheets in a google spreadsheet. It requires a [Google Cloud Service Account](#using-a-google-cloud-service-account).
|
|
45
50
|
```
|
|
46
51
|
$ GCLOUD_CLIENT_SECRET=$(cat <path-to-client-secret.json>) ad_localize -k <your-spreadsheet-drive-key> -e
|
|
@@ -19,7 +19,7 @@ module AdLocalize
|
|
|
19
19
|
spreadsheet.sheets[0..0].map { |sheet| get_sheet_values(spreadsheet_id: g_spreadsheet_options.spreadsheet_id, sheet: sheet) }
|
|
20
20
|
else
|
|
21
21
|
spreadsheet.sheets.select do |sheet|
|
|
22
|
-
g_spreadsheet_options.sheet_ids.include?(sheet.properties.sheet_id)
|
|
22
|
+
g_spreadsheet_options.sheet_ids.include?(sheet.properties.sheet_id.to_s)
|
|
23
23
|
end.map do |sheet|
|
|
24
24
|
get_sheet_values(spreadsheet_id: g_spreadsheet_options.spreadsheet_id, sheet: sheet)
|
|
25
25
|
end
|
data/lib/ad_localize/version.rb
CHANGED