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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/examples/auth.rb +0 -4
- data/lib/datasift.rb +6 -1
- 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: 5c2bb78e62ace97454498af2197fd5596ed1179d
|
4
|
+
data.tar.gz: 043551cbb82f3be760278c7a73717f62b09e3fd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b5e6674b3b30aa02297709ba394622d4d5973cac56eb0f4227ebed2146b669e785950cd90d387ab54e5014346247894defbfcb9e60050cdaadf0a43c79f3fd9
|
7
|
+
data.tar.gz: 87576ec2b9220c393ed443836c0fbaaf788ac25ecd92dc27214e95c5c313a421b4e4155cd0247f70f78a961dd1d3500dffc169f4eab6ddfccce526d83d2d388b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1
|
data/examples/auth.rb
CHANGED
@@ -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}
|
data/lib/datasift.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|