optimis_client 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/optimis_client/base.rb +0 -3
- data/lib/optimis_client/version.rb +1 -1
- data/spec/lib/base_spec.rb +0 -7
- metadata +3 -2
data/Gemfile.lock
CHANGED
data/lib/optimis_client/base.rb
CHANGED
@@ -30,9 +30,6 @@ module OptimisClient
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def secure=(value, disable_ssl_peer_verification = true)
|
33
|
-
if value && !(Typhoeus::Easy.new.curl_version =~ /OpenSSL/)
|
34
|
-
raise "Your libcurl SSL support not enabled."
|
35
|
-
end
|
36
33
|
@secure = value
|
37
34
|
@disable_ssl_peer_verification = disable_ssl_peer_verification
|
38
35
|
end
|
data/spec/lib/base_spec.rb
CHANGED
@@ -11,15 +11,8 @@ describe OptimisClient::Base do
|
|
11
11
|
subject { OptimisClient::Base }
|
12
12
|
|
13
13
|
describe "Setup HTTP protocol" do
|
14
|
-
|
15
14
|
it "supports https" do
|
16
15
|
lambda { OptimisClient::Base.secure = true }.should_not raise_error
|
17
16
|
end
|
18
|
-
|
19
|
-
it "should raise error if your libcurl SSL support not enabled." do
|
20
|
-
Typhoeus::Easy.stub!(:new).and_return(mock("", :curl_version => "libcurl/7.19.7 OpenXXX/0.9.8l zlib/1.2.3"))
|
21
|
-
lambda { OptimisClient::Base.secure = true }.should raise_error(RuntimeError)
|
22
|
-
end
|
23
17
|
end
|
24
|
-
|
25
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optimis_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|
@@ -104,3 +104,4 @@ summary: Optimis Client library
|
|
104
104
|
test_files:
|
105
105
|
- spec/lib/base_spec.rb
|
106
106
|
- spec/spec_helper.rb
|
107
|
+
has_rdoc:
|