babelish 0.6.4 → 0.6.5

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: f00b886ddc00cb58798231a92467667ffdac4026528811f0dbb7a2e872952d87
4
- data.tar.gz: fce067810d53cdeca67dd87096e48d64b6e5e0b799adb7621deaeb1da312f2a3
3
+ metadata.gz: c4041b9c55230d8483e31f89c7f8754bd6971913fca6632d951dffcffe6c8b83
4
+ data.tar.gz: 7efc492d2b6cef31325cf7d3e017cc261b4db5d661322eb3640bf60eca8becb1
5
5
  SHA512:
6
- metadata.gz: fd8bd57701f7df9d253d8b5bb0baf42c85b339fa4ba0b95c3e92d2c4d035b3dae4bbb32e678f58f1e529173c5b098ec6811e5f9a48945dfcbd76a437236888b2
7
- data.tar.gz: cd36d416eb664aba0e168bd27b23c608619dbdd248292d358075abbdd4d5822bf3b709ef6828c4c8762dd37c3008f45d6dc41049fedda3596ae2f029fe08ecdd
6
+ metadata.gz: afcaec01e481dcb9ef949c1953122d8b073d375a958575e2de97c182f59d47a8deb3b1563d6f1b4c2c9c984fd640f556560a3669057ecdce22fce9f2ec95773b
7
+ data.tar.gz: 5c5e5100a6628c658a6974aff2a9527409f8d9f23f3e4a0c341536a77bd64d7963fa6214a695a8eaf6011913a3d672053ae14a0b8cdaa1fd48c397743a771dda
data/README.md CHANGED
@@ -22,7 +22,7 @@ Requires Ruby 2.1.0 or above.
22
22
 
23
23
  Or download [Latest Release](https://github.com/netbe/Babelish/releases/latest).
24
24
 
25
- Or via docker: `docker run netbe/Babelish babelish help`
25
+ Or via docker: `docker run netbe/babelish babelish help`
26
26
 
27
27
  # Usage
28
28
 
@@ -57,7 +57,7 @@ See [.babelish.sample](.babelish.sample) file in the doc folder. as the possible
57
57
 
58
58
  **Note for docker:** In order to export the output of a conversion, you will need to pipe the result out of the container. An example would be
59
59
  ```
60
- › docker run netbe/Babelish babelish csv2json >> some_file.json
60
+ › docker run netbe/babelish babelish csv2json >> some_file.json
61
61
  ```
62
62
 
63
63
  **For more details, check the documentation:**
@@ -40,15 +40,16 @@ module Babelish
40
40
  puts "can't open requested file"
41
41
  end
42
42
  end
43
-
43
+
44
44
  def authenticate
45
45
  # will try to get token and store in file below
46
- @session = GoogleDrive.saved_session(".babelish.token",
47
- nil,
48
- Babelish::Keys::GOOGLE_DRIVE_CLIENT_ID,
49
- Babelish::Keys::GOOGLE_DRIVE_CLIENT_SECRET)
46
+ config = GoogleDrive::Config.new(".babelish.token")
47
+ config.client_id = Babelish::Keys::GOOGLE_DRIVE_CLIENT_ID
48
+ config.client_secret = Babelish::Keys::GOOGLE_DRIVE_CLIENT_SECRET
49
+ config.scope = ["https://www.googleapis.com/auth/drive.readonly"]
50
+ @session = GoogleDrive::Session.from_config(config)
50
51
  end
51
-
52
+
52
53
  def file_with_name(name)
53
54
  unless @session
54
55
  authenticate
@@ -1,3 +1,3 @@
1
1
  module Babelish
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babelish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - François Benaiteau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-19 00:00:00.000000000 Z
12
+ date: 2020-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 3.0.4
34
+ version: 3.0.5
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 3.0.4
41
+ version: 3.0.5
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: nokogiri
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -204,8 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubyforge_project:
208
- rubygems_version: 2.7.7
207
+ rubygems_version: 3.0.8
209
208
  signing_key:
210
209
  specification_version: 4
211
210
  summary: CSV converter for localization files