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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: feb94d8e754637b7efb9471f6cf38e01d8a2b7b7
4
- data.tar.gz: 33150db7f660e2f751e99ea868f037a74c236daf
3
+ metadata.gz: 0c74407930a4c8db2afb39d6b2029f1000741c0f
4
+ data.tar.gz: 0eea119f04d3365fca7e375513e529fdf2419528
5
5
  SHA512:
6
- metadata.gz: bb79928749155fdf34e6cc15747266b37919cfa1e0648cc0afb9a21c5824917b16530204bea2894e1c396d97589f970ff53efd1721fa4a8cc2c051c046160833
7
- data.tar.gz: 754058300c556abcf8cc828cc572f706b7a9f636f1150ff5f7ffd848e8fa3b817f5d2ec6726ff7bfb8d7e0612f661544eb7ec1f72d7bd267307aefc4ce0c1257
6
+ metadata.gz: 146b3b5f042b380db693b2c4a96a87218a79e72ef1704c64d0e009417e73302b4b9706e9399537a67cdd6e51af93ac69021469bfe38c28aacf2c05050cfb8609
7
+ data.tar.gz: a9413d6774e23714205f2f022fd7b200423c0b043890b7a708b604792646f2dadb4ebf894752fd950914205bacc0896e52fc2691886604cad87b9cd941ce29f8
@@ -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 = 0
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.0
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-06-12 00:00:00.000000000 Z
11
+ date: 2013-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec