datasift 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92d16d17339dcc890c88002c7f23576e2a6adf3d
4
- data.tar.gz: 3759590fac485d84ec8e7cddc4a6fec799972afa
3
+ metadata.gz: 5c2bb78e62ace97454498af2197fd5596ed1179d
4
+ data.tar.gz: 043551cbb82f3be760278c7a73717f62b09e3fd5
5
5
  SHA512:
6
- metadata.gz: c4afb552f393f501c954f0f148a5bb95ff070a52656838d1bf49a3b5188f679a0b38c8a51dde3d413c6d2ab3fc8c54a251c20fd7ec9855446ffb294326965577
7
- data.tar.gz: ed4fb2feef7cabfc0534a35e2b5fb475c74be79b319bb7f6d6a6e1c443c8405654ccc06e1c6c596e0a73250518da7c45023a2657ebe65d8e449cd748d2c1c23a
6
+ metadata.gz: 2b5e6674b3b30aa02297709ba394622d4d5973cac56eb0f4227ebed2146b669e785950cd90d387ab54e5014346247894defbfcb9e60050cdaadf0a43c79f3fd9
7
+ data.tar.gz: 87576ec2b9220c393ed443836c0fbaaf788ac25ecd92dc27214e95c5c313a421b4e4155cd0247f70f78a961dd1d3500dffc169f4eab6ddfccce526d83d2d388b
@@ -1,6 +1,11 @@
1
1
  CHANGELOG
2
2
  ================================
3
3
 
4
+ v.3.0.1 (2014-07-17)
5
+ --------------------
6
+
7
+ Ensure we use TLSv1 when using SSL
8
+
4
9
  v.3.0.0 (2014-07-04)
5
10
  --------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.0.1
@@ -2,10 +2,6 @@ class DataSiftExample
2
2
  require 'datasift'
3
3
 
4
4
  def initialize
5
- #only SSLv3 and TLSv1 currently supported, TLSv1 preferred
6
- # this is fixed in REST client and is scheduled for the 1.7.0 release
7
- # see https://github.com/rest-client/rest-client/pull/123
8
- OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ssl_version] = 'TLSv1'
9
5
  @username = 'DATASIFT_USERNAME'
10
6
  @api_key = 'DATASIFT_API_KEY'
11
7
  @config = {:username => @username, :api_key => @api_key, :enable_ssl => true}
@@ -41,8 +41,13 @@ module DataSift
41
41
  class Client < ApiResource
42
42
 
43
43
  #+config+:: A hash containing configuration options for the client for e.g.
44
- # {username => 'some_user', api_key => 'ds_api_key', open_timeout => 30, timeout => 30}
44
+ # {username => 'some_user', api_key => 'ds_api_key', 'enable_ssl' => true, open_timeout => 30, timeout => 30}
45
45
  def initialize (config)
46
+ #only SSLv3 and TLSv1 currently supported, TLSv1 preferred
47
+ # this is fixed in REST client and is scheduled for the 1.7.0 release
48
+ # see https://github.com/rest-client/rest-client/pull/123
49
+ OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ssl_version] = 'TLSv1'
50
+
46
51
  if config == nil
47
52
  raise InvalidConfigError.new ('Config cannot be nil')
48
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datasift
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DataSift
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-04 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client