yandex-translator-api 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -1
- data/README.md +5 -5
- data/bin/console +3 -3
- data/lib/yandex.rb +5 -0
- data/lib/yandex/{translate.rb → translator.rb} +8 -8
- data/lib/yandex/{translate → translator}/detect.rb +1 -1
- data/lib/yandex/{translate → translator}/langs.rb +1 -1
- data/lib/yandex/{translate → translator}/translate.rb +1 -1
- data/lib/yandex/version.rb +3 -0
- data/{yandex-translate.gemspec → yandex.gemspec} +6 -6
- metadata +10 -10
- data/lib/yandex-translate.rb +0 -5
- data/lib/yandex/translate/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f544c04c012e4c0525bcbadfb5d190a52d9e07ee
|
4
|
+
data.tar.gz: 76beab7394e926599f29ed974c369a346000b372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f16aa6a388cdc92b692fa6ddde94dcdd3cb0af5f0be8165655d7e07ea7a7accd81047c63f69f94a5e22a386f72e5e857b8587359a24fccaaffb6d29e845bf76
|
7
|
+
data.tar.gz: f071c16319ef2742291d9c17c60654fd1833af7ddcebeb8aa86ce66bc49f6a6c8e2f7e85b17e661f28e3d0c073a99950643bccd3de93659eb9f0f44c464cbe34
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Yandex
|
1
|
+
# Yandex
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yandex
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yandex`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
5
|
TODO: Delete this and the text above, and describe your gem
|
6
6
|
|
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'yandex
|
12
|
+
gem 'yandex'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install yandex
|
21
|
+
$ gem install yandex
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yandex
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yandex.
|
36
36
|
|
37
37
|
|
38
38
|
## License
|
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "bundler/setup"
|
4
|
+
require "yandex"
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -10,5 +10,5 @@ require 'yandex/translate'
|
|
10
10
|
# require "pry"
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
require
|
13
|
+
require "irb"
|
14
14
|
IRB.start(__FILE__)
|
data/lib/yandex.rb
ADDED
@@ -1,14 +1,14 @@
|
|
1
|
-
require_relative '
|
2
|
-
require_relative '
|
3
|
-
require_relative '
|
1
|
+
require_relative 'translator/langs'
|
2
|
+
require_relative 'translator/detect'
|
3
|
+
require_relative 'translator/translate'
|
4
4
|
require 'net/http'
|
5
5
|
require 'json'
|
6
6
|
|
7
7
|
module Yandex
|
8
|
-
class
|
9
|
-
include Yandex::
|
10
|
-
include Yandex::
|
11
|
-
include Yandex::
|
8
|
+
class Translator
|
9
|
+
include Yandex::Translator::Langs
|
10
|
+
include Yandex::Translator::Detect
|
11
|
+
include Yandex::Translator::Translate
|
12
12
|
|
13
13
|
class YandexFailure < StandardError; end
|
14
14
|
|
@@ -48,4 +48,4 @@ module Yandex
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
51
|
-
end
|
51
|
+
end
|
@@ -1,17 +1,17 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'yandex/
|
4
|
+
require 'yandex/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'yandex-translator-api'
|
8
|
-
spec.version = Yandex::
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
8
|
+
spec.version = Yandex::VERSION
|
9
|
+
spec.authors = ['Anton Bogdanov']
|
10
|
+
spec.email = ['kortirso@gmail.com']
|
11
11
|
|
12
|
-
spec.summary = '
|
12
|
+
spec.summary = 'Text translating by Yandex Translator API'
|
13
13
|
spec.description = 'Gem for sending words for translation to Yandex Translator API'
|
14
|
-
spec.homepage = 'https://github.com/kortirso/yandex-
|
14
|
+
spec.homepage = 'https://github.com/kortirso/yandex-translator-api'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yandex-translator-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Bogdanov
|
@@ -68,14 +68,14 @@ files:
|
|
68
68
|
- Rakefile
|
69
69
|
- bin/console
|
70
70
|
- bin/setup
|
71
|
-
- lib/yandex
|
72
|
-
- lib/yandex/
|
73
|
-
- lib/yandex/
|
74
|
-
- lib/yandex/
|
75
|
-
- lib/yandex/
|
76
|
-
- lib/yandex/
|
77
|
-
- yandex
|
78
|
-
homepage: https://github.com/kortirso/yandex-
|
71
|
+
- lib/yandex.rb
|
72
|
+
- lib/yandex/translator.rb
|
73
|
+
- lib/yandex/translator/detect.rb
|
74
|
+
- lib/yandex/translator/langs.rb
|
75
|
+
- lib/yandex/translator/translate.rb
|
76
|
+
- lib/yandex/version.rb
|
77
|
+
- yandex.gemspec
|
78
|
+
homepage: https://github.com/kortirso/yandex-translator-api
|
79
79
|
licenses:
|
80
80
|
- MIT
|
81
81
|
metadata: {}
|
@@ -98,5 +98,5 @@ rubyforge_project:
|
|
98
98
|
rubygems_version: 2.6.11
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
|
-
summary:
|
101
|
+
summary: Text translating by Yandex Translator API
|
102
102
|
test_files: []
|
data/lib/yandex-translate.rb
DELETED