reverse-tunnel 0.0.2 → 0.0.3

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.
@@ -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.to_json if 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 to_json(*args)
259
- { :peer => peer, :created_at => created_at }.json
258
+ def as_json(*args)
259
+ { :peer => peer, :created_at => created_at }
260
260
  end
261
261
 
262
262
  end
@@ -1,3 +1,3 @@
1
1
  module ReverseTunnel
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  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.2
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: 2213340273157857061
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: 2213340273157857061
264
+ hash: -2972061567993933094
265
265
  requirements: []
266
266
  rubyforge_project:
267
267
  rubygems_version: 1.8.23