y-translate 0.2.0 → 0.2.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: f84446310cb02365ebe8a3b3345dd87b85fe2291
4
- data.tar.gz: 6f24c386fcd2b6da0d509c027d8563be69526a80
3
+ metadata.gz: cb97c100fc3434661c7e8bb346018e330e1bb6e9
4
+ data.tar.gz: 269b0f3ef8e71e45a7552ccb42c4d8729e2b4485
5
5
  SHA512:
6
- metadata.gz: a3da430286dcbb65cb6583e7ccdfe61fe83c8da940be2f77aa3933ce958a5a1caf30a653f4aab1a91c777bf8edec5f0a1f0bdacd362ab2246a1258179f9eb147
7
- data.tar.gz: 94aa34f71cc3e2d8bda1b97a9cb077acd4b4bb5d296739ef022e85f9e56a48d549217760e399f05a23043c531bce5fc4403ee08430b7b3f0391c6c6eb28d7d4c
6
+ metadata.gz: e706530b42f05f6bcb1126c0d7dd9dc3ac4c5225362b379524fed9910e6b8bf16959056fcd147095655e0b74e18e64325d88a9fb093f5ba30f17248d544028fc
7
+ data.tar.gz: 7ab345079ff4079666c8202ac88d54ff702f998a1cbbdfd09f3817bb003ab7c8e94a330c1a47e6544406050a77f5b1241b91136d4f15f73a55a00f8020c70a15
@@ -1,5 +1,5 @@
1
1
  module Y
2
2
  module Translate
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
data/lib/y/translate.rb CHANGED
@@ -32,6 +32,13 @@ module Y
32
32
  )['dirs']
33
33
  end
34
34
 
35
+ def self.get_langs_names
36
+ request(
37
+ API::METHOD_GET_LANGS,
38
+ ui: Configuration::DEFAULT_LANG_TO
39
+ )['langs']
40
+ end
41
+
35
42
  def self.detect(text)
36
43
  request(API::METHOD_DETECT, text: text)['lang']
37
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Voronov Dmitry
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-12 00:00:00.000000000 Z
11
+ date: 2017-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.4.6
101
+ rubygems_version: 2.6.8
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Yandex translate API.