ad_localize 4.0.5 → 4.0.6

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: 9b804cc7ea11e917f21e49070d5677aac22f642445906825735cccc7f651d167
4
- data.tar.gz: 6e78a8ac87a098836436bff04fadf77da9e979cb2a665da30fe8e708a7f3acf0
3
+ metadata.gz: 5dc831e39e21e628ccb906bb9c1b6c3d413e6c182384b6e679a7586e0826d93a
4
+ data.tar.gz: 0e3a03ab471b2a45e1b23b44a67d196bf609503ff51364b81fe886b03fc895ba
5
5
  SHA512:
6
- metadata.gz: 7f7d5c2d82c023bce6ea8309fcdcf3cfb3e29878585cec31fecbc35db3c264cccf474c12cf58847297874684304537e35c469ea401b7eb4dd623e1baedff8db5
7
- data.tar.gz: 0ceca200f147a4cf93231a4e8bf846c32ee909e199008c512671f1c12d3653e621e70d4417b12de648758ffcecd3a67dd58d8854292c3b7c50069f649a376e7b
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.5)
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.4.0)
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.10.10)
65
- mini_portile2 (~> 2.4.0)
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
@@ -1,3 +1,3 @@
1
1
  module AdLocalize
2
- VERSION = "4.0.5"
2
+ VERSION = "4.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad_localize
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.5
4
+ version: 4.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Siegel