y-translate 0.2.1 → 0.2.2

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: cb97c100fc3434661c7e8bb346018e330e1bb6e9
4
- data.tar.gz: 269b0f3ef8e71e45a7552ccb42c4d8729e2b4485
3
+ metadata.gz: a29b94ecb2d7047dd80e9f94ffaba43b4f598431
4
+ data.tar.gz: 3e68e7d2db763e0197bd3a4047c4e620fdc50b02
5
5
  SHA512:
6
- metadata.gz: e706530b42f05f6bcb1126c0d7dd9dc3ac4c5225362b379524fed9910e6b8bf16959056fcd147095655e0b74e18e64325d88a9fb093f5ba30f17248d544028fc
7
- data.tar.gz: 7ab345079ff4079666c8202ac88d54ff702f998a1cbbdfd09f3817bb003ab7c8e94a330c1a47e6544406050a77f5b1241b91136d4f15f73a55a00f8020c70a15
6
+ metadata.gz: 9aa558f27d341dea7f9a2252451b18c1092231ce54d3a99f65497f3103960234c2bca636a4b6be705c46eed8085028dd6b23d5d9674828691b14c5be651e769b
7
+ data.tar.gz: 8ea04832972b9ad8db04bb3ef42e3899b98abd5b8f46c19a2c5ecf5e8d299c95df85cbdd3a1e2e6fa81efc28b446c88dcec6bc2a8f9524e2c082a507da0125ce
@@ -1,5 +1,5 @@
1
1
  module Y
2
2
  module Translate
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
data/lib/y/translate.rb CHANGED
@@ -28,14 +28,14 @@ module Y
28
28
  def self.get_langs
29
29
  request(
30
30
  API::METHOD_GET_LANGS,
31
- ui: Configuration::DEFAULT_LANG_TO
31
+ ui: configuration.lang_to
32
32
  )['dirs']
33
33
  end
34
34
 
35
35
  def self.get_langs_names
36
36
  request(
37
37
  API::METHOD_GET_LANGS,
38
- ui: Configuration::DEFAULT_LANG_TO
38
+ ui: configuration.lang_to
39
39
  )['langs']
40
40
  end
41
41
 
@@ -45,7 +45,7 @@ module Y
45
45
 
46
46
  def self.translate(text, params = {})
47
47
  params[:text] = text
48
- params[:lang] = Configuration::DEFAULT_LANG_TO unless params.key?(:lang)
48
+ params[:lang] = configuration.lang_to unless params.key?(:lang)
49
49
  response = request(API::METHOD_TRANSLATE, params)['text']
50
50
  response = response[0] if response.count == 1
51
51
  response
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.1
4
+ version: 0.2.2
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-18 00:00:00.000000000 Z
11
+ date: 2017-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http