restclient_with_cert 0.0.5 → 0.0.6

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.
@@ -14,4 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
15
15
  s.require_paths = ["lib"]
16
16
  s.add_runtime_dependency "rest-client", ">= 1.6"
17
+ s.add_development_dependency "rake", ">= 0.8"
18
+ s.add_development_dependency "rcov", ">= 0.9"
19
+ s.add_development_dependency "rspec", ">= 2"
17
20
  end
@@ -0,0 +1,23 @@
1
+ require File.join(File.dirname(__FILE__), 'spec_helper')
2
+
3
+ describe RestClient do
4
+ before do
5
+ class RestClient::Request
6
+ def self.execute(options = {})
7
+ if options[:verify_ssl] == OpenSSL::SSL::VERIFY_PEER
8
+ :secure
9
+ else
10
+ :insecure
11
+ end
12
+ end
13
+ end
14
+ end
15
+
16
+ [:get, :post, :put, :delete].each do |method|
17
+ describe method.to_s.upcase do
18
+ it 'should support SSL' do
19
+ RestClient.send(method, 'https://example.com', {}).should == :secure
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,5 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+
4
+ require 'restclient_with_cert'
5
+ require 'rspec'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restclient_with_cert
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-14 00:00:00 +09:00
18
+ date: 2011-04-23 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -33,6 +33,50 @@ dependencies:
33
33
  version: "1.6"
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 27
45
+ segments:
46
+ - 0
47
+ - 8
48
+ version: "0.8"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: rcov
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 25
60
+ segments:
61
+ - 0
62
+ - 9
63
+ version: "0.9"
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: rspec
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 7
75
+ segments:
76
+ - 2
77
+ version: "2"
78
+ type: :development
79
+ version_requirements: *id004
36
80
  description: RestClient with embedded cert
37
81
  email:
38
82
  - nov@matake.jp
@@ -51,6 +95,8 @@ files:
51
95
  - lib/cert
52
96
  - lib/restclient_with_cert.rb
53
97
  - restclient_with_cert.gemspec
98
+ - spec/restclient_with_cert_spec.rb
99
+ - spec/spec_helper.rb
54
100
  has_rdoc: true
55
101
  homepage: http://github.com/nov/restclient_with_cert
56
102
  licenses: []
@@ -85,5 +131,6 @@ rubygems_version: 1.5.3
85
131
  signing_key:
86
132
  specification_version: 3
87
133
  summary: RestClient with embedded cert
88
- test_files: []
89
-
134
+ test_files:
135
+ - spec/restclient_with_cert_spec.rb
136
+ - spec/spec_helper.rb