ad_localize 4.0.2 → 4.0.3

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: 62c6349d3a9f83d2c431e93485ee9f34760162b74ed83ed3cc19393f15fd333b
4
- data.tar.gz: 8c270d4d06df0f8d8bbc4699702d6c27a23730578d9c3d196de607369a358539
3
+ metadata.gz: b482ce9a7080380dfef2db59f93af1752fa1b570764393bfc163a10bec1fa81c
4
+ data.tar.gz: d1a1a841fba380486a618627541d9a50ce1c322a9695ce3ac904faf259458950
5
5
  SHA512:
6
- metadata.gz: 4f4db75c29aec05862c0e51b6a080c5a6e11dd487819942da9c8dad1ce066844e0b9a9311cb463d276fdbdb643649e4f94fe68b4fd3556c22dcf167ccba67b67
7
- data.tar.gz: 7b9fb85b7b3b076715b55d01cf65e6dd37d5b62103d1a46320f972a4e852797448d10dce9eaf18a38e5bad8288f5fa4e5192c44e9797493d7da73b665d08cde3
6
+ metadata.gz: 717d03d8cacc640e384cd1cf7c961a8e52ca8e9bc4545ee2ba6d92e4f9f698112b491640bf53b99dbe159b659c037e4a6154caf632e4fe7f908394a0115ff238
7
+ data.tar.gz: 0703ee04049d0a12c6b111ea623759dc1da8d9a820aec1f0ed992fffdb967a014337a4b5cda92d74b2b600bd0d8200e7c1f4264ab3a1f90e0946d1f154e5be5e
@@ -4,6 +4,11 @@ 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.3] - 2020-10-27
8
+ ### Fixed
9
+ - Fix CSV detection and remove dependency to MimeType gem
10
+ - Fix drive key detection in options
11
+
7
12
  ## [4.0.2] - 2020-10-26
8
13
  ### Fixed
9
14
  - Use percent HTML char for escaping '%' on android. [#49](https://github.com/applidium/ad_localize/pull/49) by [flolom](https://github.com/flolom)
@@ -1,12 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ad_localize (4.0.2)
4
+ ad_localize (4.0.3)
5
5
  activesupport (>= 5.2, < 7.0)
6
6
  colorize (~> 0.8)
7
7
  google-api-client (~> 0.34)
8
8
  googleauth (~> 0.12)
9
- mime-types (~> 3.3)
10
9
  nokogiri (~> 1.10)
11
10
 
12
11
  GEM
@@ -52,9 +51,6 @@ GEM
52
51
  concurrent-ruby (~> 1.0)
53
52
  jwt (2.2.2)
54
53
  memoist (0.16.2)
55
- mime-types (3.3.1)
56
- mime-types-data (~> 3.2015)
57
- mime-types-data (3.2020.0512)
58
54
  mini_mime (1.0.2)
59
55
  mini_portile2 (2.4.0)
60
56
  minitest (5.14.0)
@@ -51,7 +51,6 @@ Gem::Specification.new do |spec|
51
51
  spec.add_dependency 'colorize', '~> 0.8'
52
52
  spec.add_dependency 'google-api-client', '~> 0.34'
53
53
  spec.add_dependency 'googleauth', '~> 0.12'
54
- spec.add_dependency 'mime-types', '~> 3.3'
55
54
 
56
55
  spec.required_ruby_version = '~> 2.3'
57
56
  end
@@ -9,7 +9,6 @@ require 'logger'
9
9
  require 'colorize'
10
10
  require 'optparse'
11
11
  require 'nokogiri'
12
- require 'mime/types'
13
12
  require 'erb'
14
13
  require 'googleauth'
15
14
  require 'google/apis/sheets_v4'
@@ -15,7 +15,7 @@ module AdLocalize
15
15
  private
16
16
 
17
17
  def map_g_spreadsheet_options(options:)
18
- return unless options[:drive_key]
18
+ return unless options[:'drive-key']
19
19
  Requests::GSpreadsheetOptions.new(
20
20
  spreadsheet_id: options[:'drive-key'],
21
21
  sheet_ids: options[:'sheets'],
@@ -61,7 +61,7 @@ module AdLocalize
61
61
  end
62
62
 
63
63
  def is_csv?(path:)
64
- (MIME::Types.of(path).map(&:content_type) & CSV_CONTENT_TYPES).present?
64
+ CSV_CONTENT_TYPES.include?(`file --brief --mime-type #{path}`.strip)
65
65
  end
66
66
 
67
67
  def valid_g_spreadsheet_options?
@@ -1,3 +1,3 @@
1
1
  module AdLocalize
2
- VERSION = "4.0.2"
2
+ VERSION = "4.0.3"
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.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Siegel
@@ -188,20 +188,6 @@ dependencies:
188
188
  - - "~>"
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0.12'
191
- - !ruby/object:Gem::Dependency
192
- name: mime-types
193
- requirement: !ruby/object:Gem::Requirement
194
- requirements:
195
- - - "~>"
196
- - !ruby/object:Gem::Version
197
- version: '3.3'
198
- type: :runtime
199
- prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
- requirements:
202
- - - "~>"
203
- - !ruby/object:Gem::Version
204
- version: '3.3'
205
191
  description: |-
206
192
  AdLocalize produces localization files from platform agnostic wording.
207
193
  Supported wording format : CSV. Supported export format: iOS, Android, JSON and YAML