caldecott-client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -147,7 +147,7 @@ module Caldecott
147
147
  break if in_buf.size < 1
148
148
 
149
149
  if in_buf.size > 0
150
- n_sent = conn.sendmsg(in_buf.slice!(0, BUFFER_SIZE))
150
+ n_sent = conn.send(in_buf.slice!(0, BUFFER_SIZE), 0)
151
151
  @logger.debug("l <- t: #{n_sent}, buf: #{in_buf.size}")
152
152
  end
153
153
  end
@@ -1,7 +1,7 @@
1
1
  # Copyright (c) 2009-2011 VMware, Inc.
2
2
 
3
3
  require "uri"
4
- require "net/http"
4
+ require "net/https"
5
5
  require "json"
6
6
 
7
7
  module Caldecott
@@ -104,7 +104,11 @@ module Caldecott
104
104
 
105
105
  begin
106
106
  http = Net::HTTP.new(@tun_url.host, @tun_url.port)
107
- http.use_ssl = @tun_url.scheme == "https"
107
+
108
+ if @tun_url.scheme == "https"
109
+ http.use_ssl = true
110
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
111
+ end
108
112
 
109
113
  resp = http.request(req)
110
114
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Caldecott
4
4
  module Client
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,128 +1,120 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: caldecott-client
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - VMware
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-01-10 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: json
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: multi_json
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 13
29
- segments:
30
- - 1
31
- - 6
32
- - 1
33
- version: 1.6.1
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rake
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
40
33
  none: false
41
- requirements:
34
+ requirements:
42
35
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 63
45
- segments:
46
- - 0
47
- - 9
48
- - 2
36
+ - !ruby/object:Gem::Version
49
37
  version: 0.9.2
50
38
  type: :development
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: rcov
54
39
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
56
41
  none: false
57
- requirements:
42
+ requirements:
58
43
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 47
61
- segments:
62
- - 0
63
- - 9
64
- - 10
44
+ - !ruby/object:Gem::Version
45
+ version: 0.9.2
46
+ - !ruby/object:Gem::Dependency
47
+ name: rcov
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
65
53
  version: 0.9.10
66
54
  type: :development
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rack-test
70
55
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.10
62
+ - !ruby/object:Gem::Dependency
63
+ name: rack-test
64
+ requirement: !ruby/object:Gem::Requirement
72
65
  none: false
73
- requirements:
66
+ requirements:
74
67
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 5
77
- segments:
78
- - 0
79
- - 6
80
- - 1
68
+ - !ruby/object:Gem::Version
81
69
  version: 0.6.1
82
70
  type: :development
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: rspec
86
71
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
88
73
  none: false
89
- requirements:
74
+ requirements:
90
75
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 35
93
- segments:
94
- - 2
95
- - 11
96
- - 0
76
+ - !ruby/object:Gem::Version
77
+ version: 0.6.1
78
+ - !ruby/object:Gem::Dependency
79
+ name: rspec
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
97
85
  version: 2.11.0
98
86
  type: :development
99
- version_requirements: *id005
100
- - !ruby/object:Gem::Dependency
101
- name: webmock
102
87
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.11.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: webmock
96
+ requirement: !ruby/object:Gem::Requirement
104
97
  none: false
105
- requirements:
98
+ requirements:
106
99
  - - ~>
107
- - !ruby/object:Gem::Version
108
- hash: 7
109
- segments:
110
- - 1
111
- - 7
112
- - 6
100
+ - !ruby/object:Gem::Version
113
101
  version: 1.7.6
114
102
  type: :development
115
- version_requirements: *id006
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 1.7.6
116
110
  description: Caldecott Client HTTP/Websocket Tunneling Library
117
111
  email: support@vmware.com
118
112
  executables: []
119
-
120
113
  extensions: []
121
-
122
- extra_rdoc_files:
114
+ extra_rdoc_files:
123
115
  - README.md
124
116
  - LICENSE
125
- files:
117
+ files:
126
118
  - LICENSE
127
119
  - README.md
128
120
  - lib/caldecott-client/client.rb
@@ -132,36 +124,26 @@ files:
132
124
  - lib/caldecott-client.rb
133
125
  homepage: http://vmware.com
134
126
  licenses: []
135
-
136
127
  post_install_message:
137
128
  rdoc_options: []
138
-
139
- require_paths:
129
+ require_paths:
140
130
  - lib
141
- required_ruby_version: !ruby/object:Gem::Requirement
131
+ required_ruby_version: !ruby/object:Gem::Requirement
142
132
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
149
- version: "0"
150
- required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ! '>='
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
138
  none: false
152
- requirements:
153
- - - ">="
154
- - !ruby/object:Gem::Version
155
- hash: 3
156
- segments:
157
- - 0
158
- version: "0"
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
159
143
  requirements: []
160
-
161
144
  rubyforge_project:
162
145
  rubygems_version: 1.8.24
163
146
  signing_key:
164
147
  specification_version: 3
165
148
  summary: Caldecott Client HTTP/Websocket Tunneling Library
166
149
  test_files: []
167
-