bing_translator 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/bing_translator.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MmRkZDUyODlmN2Y3ZTgzNDc4NWJiOWM2OTkwZDA3OGQ2ODhlZGJhZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NGJmZDExNTgxOWZlNDZhNDhlZWIzMmYwMjEyYTEyNTk4MmM3ZTE0MA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YTBiOTFjMjY3ZmQ1MTYzYzJmYzAzN2VhMDUyMzFhMThiM2JlMThlYzViOWU3
|
10
|
+
NjA3NWU0YzQ2MjZkZjcwNGE4NzM4ZjU0NGRjYmI1ODczMmRlNzg0NjY5M2Nj
|
11
|
+
YzVjYjViNzg3OWQzMzNkMmU1ODkzYmQ2YzA0NjM1YzViNDdiYTU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTIwMDZlM2U2M2Q3MzdkZGQxMTJhYzE3MTY3MjdjN2MxZTU0YTIxZGM4M2U4
|
14
|
+
N2M3MWRkYmU2NzQ2ZmZhNmViNGVmYThmMzNmOGI5OTg1NzgwMGE5Y2IzNzMy
|
15
|
+
ODEzOGQ1Y2RkY2ZkYzBlOTgxZGQ0MGZmYzhjN2UxYjllNDJlZDU=
|
data/lib/bing_translator.rb
CHANGED
@@ -74,7 +74,7 @@ class BingTranslator
|
|
74
74
|
http.use_ssl = true
|
75
75
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if @skip_ssl_verify
|
76
76
|
end
|
77
|
-
results = http.get(uri, {'Authorization' => "Bearer #{get_access_token['access_token']}"})
|
77
|
+
results = http.get(uri.to_s, {'Authorization' => "Bearer #{get_access_token['access_token']}"})
|
78
78
|
|
79
79
|
if results.response.code.to_i == 200
|
80
80
|
results.body
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bing_translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricky Elrod
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -70,19 +70,18 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - '>='
|
73
|
+
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- - '>='
|
78
|
+
- - ! '>='
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.1.11
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Translate using the Bing HTTP API
|
87
87
|
test_files: []
|
88
|
-
has_rdoc:
|