evernote-thrift 1.25.0 → 1.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/evernote-thrift.gemspec +1 -1
- data/lib/thrift/transport/http_client_transport.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c74407930a4c8db2afb39d6b2029f1000741c0f
|
4
|
+
data.tar.gz: 0eea119f04d3365fca7e375513e529fdf2419528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 146b3b5f042b380db693b2c4a96a87218a79e72ef1704c64d0e009417e73302b4b9706e9399537a67cdd6e51af93ac69021469bfe38c28aacf2c05050cfb8609
|
7
|
+
data.tar.gz: a9413d6774e23714205f2f022fd7b200423c0b043890b7a708b604792646f2dadb4ebf894752fd950914205bacc0896e52fc2691886604cad87b9cd941ce29f8
|
data/evernote-thrift.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'evernote-thrift'
|
|
6
6
|
|
7
7
|
majorv = Evernote::EDAM::UserStore::EDAM_VERSION_MAJOR
|
8
8
|
minorv = Evernote::EDAM::UserStore::EDAM_VERSION_MINOR
|
9
|
-
rev =
|
9
|
+
rev = 1
|
10
10
|
version = Gem::Version.new("#{majorv}.#{minorv}.#{rev}").version
|
11
11
|
|
12
12
|
Gem::Specification.new do |s|
|
@@ -56,6 +56,9 @@ module Thrift
|
|
56
56
|
apply_ssl_attributes(http) if @url.scheme == "https"
|
57
57
|
|
58
58
|
resp = http.post(@url.request_uri, @outbuf, @headers)
|
59
|
+
if 'application/x-thrift'.downcase != resp.content_type.downcase
|
60
|
+
raise TransportException.new(TransportException::UNKNOWN, "Unexpected response content type: " + resp.content_type)
|
61
|
+
end
|
59
62
|
data = resp.body
|
60
63
|
data = Bytes.force_binary_encoding(data)
|
61
64
|
@inbuf = StringIO.new data
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evernote-thrift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.25.
|
4
|
+
version: 1.25.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evernote
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|