babelish 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/babelish/google_doc.rb +7 -6
- data/lib/babelish/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4041b9c55230d8483e31f89c7f8754bd6971913fca6632d951dffcffe6c8b83
|
4
|
+
data.tar.gz: 7efc492d2b6cef31325cf7d3e017cc261b4db5d661322eb3640bf60eca8becb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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/
|
60
|
+
› docker run netbe/babelish babelish csv2json >> some_file.json
|
61
61
|
```
|
62
62
|
|
63
63
|
**For more details, check the documentation:**
|
data/lib/babelish/google_doc.rb
CHANGED
@@ -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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
data/lib/babelish/version.rb
CHANGED
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
|
+
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-
|
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.
|
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.
|
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
|
-
|
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
|