forward 1.1.2.pre → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/forward.gemspec +6 -6
- data/lib/forward/cli.rb +1 -1
- data/lib/forward/command/tunnel.rb +6 -6
- data/lib/forward/socket.rb +1 -1
- data/lib/forward/version.rb +1 -1
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d179fd04456e306a54c635d267ddc2dacdf171
|
4
|
+
data.tar.gz: b4835ab1322a22642d45f852e1d3adafd02c1139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9e3518b44256756208b53996026f3d0d0bb6ba7cf41397d886ba6740b3d01b0516aabac3df6a70c9fadbf9fb1ffdf43f05ce1ba6eb73e937affd2bbb734ef73
|
7
|
+
data.tar.gz: 8aa60643e32525f356f809c5106622f00df125786afd96311a843284a059e35da7d6e3e443f9776b666c3bcd62bc99a8a46e62f7d797b1c8f22522cd616e317c
|
data/forward.gemspec
CHANGED
@@ -16,13 +16,13 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.version = Forward::VERSION
|
17
17
|
|
18
18
|
gem.add_dependency 'slop', '~> 3.6'
|
19
|
-
gem.add_dependency '
|
20
|
-
gem.add_dependency 'highline', '~> 1.
|
19
|
+
gem.add_dependency 'json', '~> 1.8.3'
|
20
|
+
gem.add_dependency 'highline', '~> 1.7.8'
|
21
21
|
gem.add_dependency 'eventmachine', '~> 1.0.7'
|
22
|
-
gem.add_dependency 'thin', '~> 1.6.
|
23
|
-
gem.add_dependency 'em-http-request', '~> 1.1.
|
24
|
-
gem.add_dependency 'faye-websocket', '~> 0.
|
25
|
-
gem.add_dependency 'clipboard', '~> 1.0'
|
22
|
+
gem.add_dependency 'thin', '~> 1.6.4'
|
23
|
+
gem.add_dependency 'em-http-request', '~> 1.1.3'
|
24
|
+
gem.add_dependency 'faye-websocket', '~> 0.10.2'
|
25
|
+
gem.add_dependency 'clipboard', '~> 1.0.6'
|
26
26
|
|
27
27
|
gem.add_development_dependency 'rake', '~> 10.3'
|
28
28
|
gem.add_development_dependency 'minitest', '~> 5.3'
|
data/lib/forward/cli.rb
CHANGED
@@ -131,11 +131,11 @@ module Forward
|
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
134
|
-
def validate_auth
|
134
|
+
def validate_auth
|
135
135
|
auth = @options[:auth]
|
136
|
-
|
136
|
+
|
137
137
|
return if auth.nil?
|
138
|
-
|
138
|
+
|
139
139
|
logger.debug "[CLI] validating auth: `#{auth}'"
|
140
140
|
if auth =~ BASIC_AUTH_REGEX
|
141
141
|
@options[:username], @options[:password] = @options[:auth].split(':')
|
@@ -148,11 +148,11 @@ module Forward
|
|
148
148
|
# error message if it isn't.
|
149
149
|
#
|
150
150
|
# cname - cname String
|
151
|
-
def validate_cname
|
151
|
+
def validate_cname
|
152
152
|
cname = @options[:cname]
|
153
|
-
|
153
|
+
|
154
154
|
return if cname.nil?
|
155
|
-
|
155
|
+
|
156
156
|
logger.debug "[CLI] validating CNAME: `#{cname}'"
|
157
157
|
unless cname =~ CNAME_REGEX
|
158
158
|
raise CLIError, "`#{cname}' is an invalid domain format"
|
data/lib/forward/socket.rb
CHANGED
@@ -116,7 +116,7 @@ module Forward
|
|
116
116
|
def unpack(bytes)
|
117
117
|
bytes = bytes.pack('C*')
|
118
118
|
message_size = bytes.unpack('v')[0]
|
119
|
-
message = bytes.byteslice(2, message_size)
|
119
|
+
message = bytes.byteslice(2, message_size).force_encoding('utf-16le')
|
120
120
|
binary_offset = 2 + message_size
|
121
121
|
|
122
122
|
[JSON.parse(message, symbolize_names: true), bytes.byteslice(binary_offset..-1)]
|
data/lib/forward/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forward
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Dunn
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: slop
|
@@ -26,33 +26,33 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '3.6'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: json
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.8.
|
34
|
+
version: 1.8.3
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.8.
|
41
|
+
version: 1.8.3
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: highline
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 1.7.8
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 1.7.8
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: eventmachine
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,56 +73,56 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 1.6.
|
76
|
+
version: 1.6.4
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 1.6.
|
83
|
+
version: 1.6.4
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: em-http-request
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.1.
|
90
|
+
version: 1.1.3
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.1.
|
97
|
+
version: 1.1.3
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: faye-websocket
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
104
|
+
version: 0.10.2
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
111
|
+
version: 0.10.2
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: clipboard
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
118
|
+
version: 1.0.6
|
119
119
|
type: :runtime
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: 1.0.6
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: rake
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,12 +254,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
254
254
|
version: '0'
|
255
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
256
|
requirements:
|
257
|
-
- - "
|
257
|
+
- - ">="
|
258
258
|
- !ruby/object:Gem::Version
|
259
|
-
version:
|
259
|
+
version: '0'
|
260
260
|
requirements: []
|
261
261
|
rubyforge_project:
|
262
|
-
rubygems_version: 2.
|
262
|
+
rubygems_version: 2.5.1
|
263
263
|
signing_key:
|
264
264
|
specification_version: 4
|
265
265
|
summary: Forward lets you get a link to localhost and share it with anyone over the
|