deepl-rb 1.0.0 → 1.0.1
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/.circleci/config.yml +0 -0
- data/.rubocop.yml +0 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +0 -0
- data/LICENSE.md +0 -0
- data/README.md +2 -3
- data/Rakefile +0 -0
- data/VERSION +1 -1
- data/deepl-rb.gemspec +16 -16
- data/lib/deepl.rb +0 -0
- data/lib/deepl/api.rb +0 -0
- data/lib/deepl/configuration.rb +0 -0
- data/lib/deepl/exceptions/authorization_failed.rb +0 -0
- data/lib/deepl/exceptions/bad_request.rb +0 -0
- data/lib/deepl/exceptions/error.rb +0 -0
- data/lib/deepl/exceptions/limit_exceeded.rb +0 -0
- data/lib/deepl/exceptions/request_error.rb +0 -0
- data/lib/deepl/requests/base.rb +0 -0
- data/lib/deepl/requests/translate_text.rb +0 -0
- data/lib/deepl/resources/base.rb +0 -0
- data/lib/deepl/resources/text.rb +0 -0
- data/spec/api/api_spec.rb +0 -0
- data/spec/api/configuration_spec.rb +0 -0
- data/spec/api/deepl_spec.rb +0 -0
- data/spec/fixtures/vcr_cassettes/deepl_translate.yml +0 -0
- data/spec/fixtures/vcr_cassettes/translate_texts.yml +0 -0
- data/spec/requests/translate_text_spec.rb +0 -0
- data/spec/resources/text_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37163389ddd5655c4c9f1d1e60e0d414e3c35420
|
|
4
|
+
data.tar.gz: 881b3877774bc62cf3f42900c72d336c7b32583d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d63335bb2ec23d724e77dba606844c711afbc798afe8c7a64f12a420e14561c33c555f36716f7d3537f8f234bed064d8d72aa659837a99b442952186813718cb
|
|
7
|
+
data.tar.gz: 944992d82a26e096f4389cbc50dd076c80b7d6c58113c84401539e20b8620dcac21ac362730fb3a3b862d97658b70e565911f69fc3c13e2b1f6b26580cb697b7
|
data/.circleci/config.yml
CHANGED
|
File without changes
|
data/.rubocop.yml
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/Gemfile.lock
CHANGED
|
File without changes
|
data/LICENSE.md
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ gem install deepl-rb
|
|
|
16
16
|
Or add it to your Gemfile:
|
|
17
17
|
|
|
18
18
|
```rb
|
|
19
|
-
gem 'deepl-rb'
|
|
19
|
+
gem 'deepl-rb', require: 'deepl'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
@@ -93,11 +93,10 @@ Here's a list of available language codes:
|
|
|
93
93
|
You can also use custom query parameters, like `tag_handling`:
|
|
94
94
|
|
|
95
95
|
```rb
|
|
96
|
-
texts = ['Sample text',¡]
|
|
97
96
|
translation = DeepL.translate '<p>A sample</p>', 'EN', 'ES', tag_handling: true
|
|
98
97
|
|
|
99
98
|
puts translation.text
|
|
100
|
-
# => ""
|
|
99
|
+
# => "<p>Una muestra</p>"
|
|
101
100
|
```
|
|
102
101
|
|
|
103
102
|
### Handle exceptions
|
data/Rakefile
CHANGED
|
File without changes
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.1
|
data/deepl-rb.gemspec
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: deepl-rb 1.0.
|
|
5
|
+
# stub: deepl-rb 1.0.1 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
|
-
s.name = "deepl-rb"
|
|
9
|
-
s.version = "1.0.
|
|
8
|
+
s.name = "deepl-rb".freeze
|
|
9
|
+
s.version = "1.0.1"
|
|
10
10
|
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
|
-
s.require_paths = ["lib"]
|
|
13
|
-
s.authors = ["Daniel Herzog"]
|
|
14
|
-
s.date = "2018-
|
|
15
|
-
s.description = "A simple ruby wrapper for the DeepL translation API (v1). For more information, check this: https://www.deepl.com/docs/api-reference.html"
|
|
16
|
-
s.email = "info@danielherzog.es"
|
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
|
+
s.require_paths = ["lib".freeze]
|
|
13
|
+
s.authors = ["Daniel Herzog".freeze]
|
|
14
|
+
s.date = "2018-03-31"
|
|
15
|
+
s.description = "A simple ruby wrapper for the DeepL translation API (v1). For more information, check this: https://www.deepl.com/docs/api-reference.html".freeze
|
|
16
|
+
s.email = "info@danielherzog.es".freeze
|
|
17
17
|
s.extra_rdoc_files = [
|
|
18
18
|
"LICENSE.md",
|
|
19
19
|
"README.md"
|
|
@@ -49,21 +49,21 @@ Gem::Specification.new do |s|
|
|
|
49
49
|
"spec/resources/text_spec.rb",
|
|
50
50
|
"spec/spec_helper.rb"
|
|
51
51
|
]
|
|
52
|
-
s.homepage = "http://github.com/wikiti/deepl-rb"
|
|
53
|
-
s.licenses = ["MIT"]
|
|
54
|
-
s.rubygems_version = "2.
|
|
55
|
-
s.summary = "A simple ruby wrapper for the DeepL API"
|
|
52
|
+
s.homepage = "http://github.com/wikiti/deepl-rb".freeze
|
|
53
|
+
s.licenses = ["MIT".freeze]
|
|
54
|
+
s.rubygems_version = "2.6.13".freeze
|
|
55
|
+
s.summary = "A simple ruby wrapper for the DeepL API".freeze
|
|
56
56
|
|
|
57
57
|
if s.respond_to? :specification_version then
|
|
58
58
|
s.specification_version = 4
|
|
59
59
|
|
|
60
60
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
61
|
-
s.add_development_dependency(%q<juwelier
|
|
61
|
+
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
|
|
62
62
|
else
|
|
63
|
-
s.add_dependency(%q<juwelier
|
|
63
|
+
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
|
64
64
|
end
|
|
65
65
|
else
|
|
66
|
-
s.add_dependency(%q<juwelier
|
|
66
|
+
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
data/lib/deepl.rb
CHANGED
|
File without changes
|
data/lib/deepl/api.rb
CHANGED
|
File without changes
|
data/lib/deepl/configuration.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/deepl/requests/base.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/lib/deepl/resources/base.rb
CHANGED
|
File without changes
|
data/lib/deepl/resources/text.rb
CHANGED
|
File without changes
|
data/spec/api/api_spec.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/spec/api/deepl_spec.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/resources/text_spec.rb
CHANGED
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deepl-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Herzog
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: juwelier
|
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
82
82
|
version: '0'
|
|
83
83
|
requirements: []
|
|
84
84
|
rubyforge_project:
|
|
85
|
-
rubygems_version: 2.
|
|
85
|
+
rubygems_version: 2.6.13
|
|
86
86
|
signing_key:
|
|
87
87
|
specification_version: 4
|
|
88
88
|
summary: A simple ruby wrapper for the DeepL API
|