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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ee5d17aa380235b41f8980112908a0851c45387
4
- data.tar.gz: 51328019e1bbc8515384675e58563b8083f0fbc7
3
+ metadata.gz: f544c04c012e4c0525bcbadfb5d190a52d9e07ee
4
+ data.tar.gz: 76beab7394e926599f29ed974c369a346000b372
5
5
  SHA512:
6
- metadata.gz: 390e3b4274a2f2d0d7f2c2f154ab90156b40093b3b422e1dc5866e57cef81b5be81a909ec533fa89e1a5117c1b8bad8f880e9187677f010c2d6ede07c6a6fae4
7
- data.tar.gz: 3babc8cc6598498c0cc170abddf0b3df5c48c20367c99feb516e266e78a8867e36bcd80b4556e8fee9d6ec825cbfa07df993cc7043dd66812e66e26fa75ddf35
6
+ metadata.gz: 2f16aa6a388cdc92b692fa6ddde94dcdd3cb0af5f0be8165655d7e07ea7a7accd81047c63f69f94a5e22a386f72e5e857b8587359a24fccaaffb6d29e845bf76
7
+ data.tar.gz: f071c16319ef2742291d9c17c60654fd1833af7ddcebeb8aa86ce66bc49f6a6c8e2f7e85b17e661f28e3d0c073a99950643bccd3de93659eb9f0f44c464cbe34
data/Gemfile CHANGED
@@ -1,4 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in yandex-translate.gemspec
3
+ group :test do
4
+ gem 'rspec'
5
+ end
6
+
4
7
  gemspec
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Yandex::Translate
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/translate`. To experiment with that code, run `bin/console` for an interactive prompt.
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-translate'
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-translate
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-translate.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yandex.
36
36
 
37
37
 
38
38
  ## License
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'bundler/setup'
4
- require 'yandex/translate'
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 'irb'
13
+ require "irb"
14
14
  IRB.start(__FILE__)
@@ -0,0 +1,5 @@
1
+ require_relative 'yandex/version'
2
+ require_relative 'yandex/translator'
3
+
4
+ module Yandex
5
+ end
@@ -1,14 +1,14 @@
1
- require_relative 'translate/langs'
2
- require_relative 'translate/detect'
3
- require_relative 'translate/translate'
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 Translate
9
- include Yandex::Translate::Langs
10
- include Yandex::Translate::Detect
11
- include Yandex::Translate::Translate
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,5 +1,5 @@
1
1
  module Yandex
2
- class Translate
2
+ class Translator
3
3
  module Detect
4
4
 
5
5
  def detect(args)
@@ -1,5 +1,5 @@
1
1
  module Yandex
2
- class Translate
2
+ class Translator
3
3
  module Langs
4
4
 
5
5
  def langs
@@ -1,5 +1,5 @@
1
1
  module Yandex
2
- class Translate
2
+ class Translator
3
3
  module Translate
4
4
 
5
5
  def translate(args)
@@ -0,0 +1,3 @@
1
+ module Yandex
2
+ VERSION = '0.9.1'
3
+ 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/translate/version'
4
+ require 'yandex/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'yandex-translator-api'
8
- spec.version = Yandex::Translate::VERSION
9
- spec.authors = ["Anton Bogdanov"]
10
- spec.email = ["kortirso@gmail.com"]
8
+ spec.version = Yandex::VERSION
9
+ spec.authors = ['Anton Bogdanov']
10
+ spec.email = ['kortirso@gmail.com']
11
11
 
12
- spec.summary = 'Words translating by Yandex Translator API'
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-translate'
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.0
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-translate.rb
72
- - lib/yandex/translate.rb
73
- - lib/yandex/translate/detect.rb
74
- - lib/yandex/translate/langs.rb
75
- - lib/yandex/translate/translate.rb
76
- - lib/yandex/translate/version.rb
77
- - yandex-translate.gemspec
78
- homepage: https://github.com/kortirso/yandex-translate
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: Words translating by Yandex Translator API
101
+ summary: Text translating by Yandex Translator API
102
102
  test_files: []
@@ -1,5 +0,0 @@
1
- require 'yandex/translate'
2
- require 'yandex/translate/version'
3
-
4
- module Yandex
5
- end
@@ -1,5 +0,0 @@
1
- module Yandex
2
- module Translate
3
- VERSION = '0.9.0'
4
- end
5
- end