reverse-tunnel 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/reverse-tunnel/server.rb +3 -3
- data/lib/reverse-tunnel/version.rb +1 -1
- metadata +3 -3
@@ -174,7 +174,7 @@ module ReverseTunnel
|
|
174
174
|
|
175
175
|
def to_json(*args)
|
176
176
|
{ :token => token, :local_port => local_port }.tap do |attributes|
|
177
|
-
attributes[:connection] = connection.
|
177
|
+
attributes[:connection] = connection.as_json if connection
|
178
178
|
end.to_json(*args)
|
179
179
|
end
|
180
180
|
|
@@ -255,8 +255,8 @@ module ReverseTunnel
|
|
255
255
|
end
|
256
256
|
end
|
257
257
|
|
258
|
-
def
|
259
|
-
{ :peer => peer, :created_at => created_at }
|
258
|
+
def as_json(*args)
|
259
|
+
{ :peer => peer, :created_at => created_at }
|
260
260
|
end
|
261
261
|
|
262
262
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reverse-tunnel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -252,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
segments:
|
254
254
|
- 0
|
255
|
-
hash:
|
255
|
+
hash: -2972061567993933094
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
257
|
none: false
|
258
258
|
requirements:
|
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: '0'
|
262
262
|
segments:
|
263
263
|
- 0
|
264
|
-
hash:
|
264
|
+
hash: -2972061567993933094
|
265
265
|
requirements: []
|
266
266
|
rubyforge_project:
|
267
267
|
rubygems_version: 1.8.23
|