forward 0.3.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/Gemfile +0 -2
- data/README.md +24 -0
- data/Rakefile +3 -1
- data/bin/forward +1 -1
- data/forward.gemspec +17 -11
- data/lib/forward/api/resource.rb +51 -83
- data/lib/forward/api/tunnel.rb +41 -68
- data/lib/forward/api/user.rb +14 -11
- data/lib/forward/api.rb +7 -26
- data/lib/forward/cli.rb +55 -253
- data/lib/forward/command/account.rb +69 -0
- data/lib/forward/command/base.rb +62 -0
- data/lib/forward/command/config.rb +64 -0
- data/lib/forward/command/tunnel.rb +178 -0
- data/lib/forward/common.rb +44 -0
- data/lib/forward/config.rb +75 -118
- data/lib/forward/request.rb +72 -0
- data/lib/forward/socket.rb +125 -0
- data/lib/forward/static/app.rb +157 -0
- data/lib/forward/static/directory.erb +142 -0
- data/lib/forward/tunnel.rb +102 -40
- data/lib/forward/version.rb +1 -1
- data/lib/forward.rb +80 -63
- data/test/api/resource_test.rb +70 -54
- data/test/api/tunnel_test.rb +50 -51
- data/test/api/user_test.rb +33 -20
- data/test/cli_test.rb +0 -126
- data/test/command/account_test.rb +26 -0
- data/test/command/tunnel_test.rb +133 -0
- data/test/config_test.rb +103 -54
- data/test/forward_test.rb +47 -0
- data/test/test_helper.rb +35 -26
- data/test/tunnel_test.rb +50 -22
- metadata +210 -169
- data/forwardhq.crt +0 -112
- data/lib/forward/api/client_log.rb +0 -20
- data/lib/forward/api/tunnel_key.rb +0 -18
- data/lib/forward/client.rb +0 -110
- data/lib/forward/error.rb +0 -12
- data/test/api/tunnel_key_test.rb +0 -28
- data/test/api_test.rb +0 -0
- data/test/client_test.rb +0 -8
metadata
CHANGED
@@ -1,235 +1,276 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: forward
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 3
|
10
|
-
version: 0.3.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- Travis Dunn
|
8
|
+
- Noah Burney
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: slop
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '3.6'
|
21
|
+
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '3.6'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: json_pure
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.8'
|
35
35
|
type: :runtime
|
36
|
-
|
37
|
-
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.8'
|
42
|
+
- !ruby/object:Gem::Dependency
|
38
43
|
name: highline
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '1.6'
|
49
|
+
type: :runtime
|
39
50
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '1.6'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: eventmachine
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.0.3
|
51
63
|
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: net-ssh
|
55
64
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.0.3
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: thin
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.6'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.6'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: em-http-request
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '1.1'
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '1.1'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: faye-websocket
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0.8'
|
67
105
|
type: :runtime
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
106
|
prerelease: false
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0.8'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: clipboard
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '1.0'
|
119
|
+
type: :runtime
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rake
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '10.3'
|
83
133
|
type: :development
|
84
|
-
version_requirements: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: minitest
|
87
134
|
prerelease: false
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '10.3'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: minitest
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '5.3'
|
99
147
|
type: :development
|
100
|
-
version_requirements: *id005
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
name: mocha
|
103
148
|
prerelease: false
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '5.3'
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: mocha
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '1.0'
|
115
161
|
type: :development
|
116
|
-
version_requirements: *id006
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: fakeweb
|
119
162
|
prerelease: false
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - "~>"
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '1.0'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: webmock
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - "~>"
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '1.20'
|
131
175
|
type: :development
|
132
|
-
version_requirements: *id007
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: fakefs
|
135
176
|
prerelease: false
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - "~>"
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '1.20'
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: fakefs
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - "~>"
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0.5'
|
147
189
|
type: :development
|
148
|
-
|
190
|
+
prerelease: false
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - "~>"
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0.5'
|
149
196
|
description:
|
150
|
-
email:
|
197
|
+
email:
|
151
198
|
- travis@50east.co
|
152
|
-
|
199
|
+
- noah@50east.co
|
200
|
+
executables:
|
153
201
|
- forward
|
154
202
|
extensions: []
|
155
|
-
|
156
203
|
extra_rdoc_files: []
|
157
|
-
|
158
|
-
|
159
|
-
- .gitignore
|
204
|
+
files:
|
205
|
+
- ".gitignore"
|
160
206
|
- Gemfile
|
161
207
|
- LICENSE
|
162
208
|
- README.md
|
163
209
|
- Rakefile
|
164
210
|
- bin/forward
|
165
211
|
- forward.gemspec
|
166
|
-
- forwardhq.crt
|
167
212
|
- lib/forward.rb
|
168
213
|
- lib/forward/api.rb
|
169
|
-
- lib/forward/api/client_log.rb
|
170
214
|
- lib/forward/api/resource.rb
|
171
215
|
- lib/forward/api/tunnel.rb
|
172
|
-
- lib/forward/api/tunnel_key.rb
|
173
216
|
- lib/forward/api/user.rb
|
174
217
|
- lib/forward/cli.rb
|
175
|
-
- lib/forward/
|
218
|
+
- lib/forward/command/account.rb
|
219
|
+
- lib/forward/command/base.rb
|
220
|
+
- lib/forward/command/config.rb
|
221
|
+
- lib/forward/command/tunnel.rb
|
222
|
+
- lib/forward/common.rb
|
176
223
|
- lib/forward/config.rb
|
177
224
|
- lib/forward/core_extensions.rb
|
178
|
-
- lib/forward/
|
225
|
+
- lib/forward/request.rb
|
226
|
+
- lib/forward/socket.rb
|
227
|
+
- lib/forward/static/app.rb
|
228
|
+
- lib/forward/static/directory.erb
|
179
229
|
- lib/forward/tunnel.rb
|
180
230
|
- lib/forward/version.rb
|
181
231
|
- test/api/resource_test.rb
|
182
|
-
- test/api/tunnel_key_test.rb
|
183
232
|
- test/api/tunnel_test.rb
|
184
233
|
- test/api/user_test.rb
|
185
|
-
- test/api_test.rb
|
186
234
|
- test/cli_test.rb
|
187
|
-
- test/
|
235
|
+
- test/command/account_test.rb
|
236
|
+
- test/command/tunnel_test.rb
|
188
237
|
- test/config_test.rb
|
238
|
+
- test/forward_test.rb
|
189
239
|
- test/test_helper.rb
|
190
240
|
- test/tunnel_test.rb
|
191
|
-
has_rdoc: true
|
192
241
|
homepage: https://forwardhq.com
|
193
|
-
licenses:
|
194
|
-
|
242
|
+
licenses:
|
243
|
+
- MIT
|
244
|
+
metadata: {}
|
195
245
|
post_install_message:
|
196
246
|
rdoc_options: []
|
197
|
-
|
198
|
-
require_paths:
|
247
|
+
require_paths:
|
199
248
|
- lib
|
200
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
201
|
-
|
202
|
-
requirements:
|
249
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
203
251
|
- - ">="
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
version: "0"
|
209
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
|
-
none: false
|
211
|
-
requirements:
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
212
256
|
- - ">="
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
|
215
|
-
segments:
|
216
|
-
- 0
|
217
|
-
version: "0"
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
version: '0'
|
218
259
|
requirements: []
|
219
|
-
|
220
260
|
rubyforge_project:
|
221
|
-
rubygems_version:
|
261
|
+
rubygems_version: 2.2.2
|
222
262
|
signing_key:
|
223
|
-
specification_version:
|
224
|
-
summary: Forward
|
225
|
-
|
263
|
+
specification_version: 4
|
264
|
+
summary: Forward lets you get a link to localhost and share it with anyone over the
|
265
|
+
web.
|
266
|
+
test_files:
|
226
267
|
- test/api/resource_test.rb
|
227
|
-
- test/api/tunnel_key_test.rb
|
228
268
|
- test/api/tunnel_test.rb
|
229
269
|
- test/api/user_test.rb
|
230
|
-
- test/api_test.rb
|
231
270
|
- test/cli_test.rb
|
232
|
-
- test/
|
271
|
+
- test/command/account_test.rb
|
272
|
+
- test/command/tunnel_test.rb
|
233
273
|
- test/config_test.rb
|
274
|
+
- test/forward_test.rb
|
234
275
|
- test/test_helper.rb
|
235
276
|
- test/tunnel_test.rb
|
data/forwardhq.crt
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIFCTCCA/GgAwIBAgIQQN4DiY5aF21RqglaWWIJnDANBgkqhkiG9w0BAQUFADBy
|
3
|
-
MQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYD
|
4
|
-
VQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTG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Jh5VkpTYghdae9C8x49OhgQ=
|
112
|
-
-----END CERTIFICATE-----
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Forward
|
2
|
-
module Api
|
3
|
-
class ClientLog < Resource
|
4
|
-
|
5
|
-
def self.create(log)
|
6
|
-
resource = ClientLog.new(:create)
|
7
|
-
resource.uri = '/api/v2/client_logs'
|
8
|
-
params = {
|
9
|
-
:client => Forward.client_string,
|
10
|
-
:log => log
|
11
|
-
}
|
12
|
-
|
13
|
-
params[:api_token] = Forward.config.api_token unless Forward.config.nil?
|
14
|
-
|
15
|
-
resource.post(params)
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Forward
|
2
|
-
module Api
|
3
|
-
class TunnelKey < Resource
|
4
|
-
|
5
|
-
def self.create
|
6
|
-
resource = TunnelKey.new(:create)
|
7
|
-
resource.uri = '/api/v2/tunnel_keys'
|
8
|
-
|
9
|
-
response = resource.post
|
10
|
-
|
11
|
-
response[:private_key]
|
12
|
-
rescue
|
13
|
-
Forward::Client.cleanup_and_exit!
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|