rocketio 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21d8aeeac222350dcd8a8c4c39a667ac3402d00a
4
- data.tar.gz: 75f98d5595f20af7b3d6eccc34bd7c05c462e026
3
+ metadata.gz: a06971bd162cb331c81d8c86129fe0ff2ef4c907
4
+ data.tar.gz: 29cc243861c4edaba45394bb79c696e4369bd776
5
5
  SHA512:
6
- metadata.gz: 5988ddd654f0942e63350217d79247867016448da51a6706d84c436c791a7858f2e279c104cb2b9436531b964fc642cbf04db84b4b65123fa6466b0a5111d20f
7
- data.tar.gz: ec46fb97843459e9199305c526dde867153f63fcd42c3cc55b4a55666c938976392296c4f5b3f1b9391ef7a42844c16f9c03387ef7e6e7b1da97767c2b9a1b30
6
+ metadata.gz: 045ea446cf4586b52d7d330dcb317e4682d5ed56778dc58a965d23b2fb986b758043a0d2c08722b2805aed53324e1673d3495ab47760bb27f939cb728b32bf7b
7
+ data.tar.gz: fdba8b6a904564d30e68cd1a1bc9ec3bf871e567d53fdad4960c6550980e4ba4a4946d42abfe990ab9b0910eb32cb54256b951e736e337802cb3f118370f66b7
@@ -111,8 +111,6 @@ module RocketIO
111
111
 
112
112
  if head? # dropping body on HEAD requests
113
113
  response.body = RocketIO::EMPTY_ARRAY
114
- else
115
- response.body ||= RocketIO::EMPTY_ARRAY
116
114
  end
117
115
 
118
116
  if env[RocketIO::HTTP_ACCEPT] == RocketIO::APPLICATION_JSON
@@ -39,6 +39,7 @@ module RocketIO
39
39
  end
40
40
 
41
41
  def body
42
+ return EMPTY_ARRAY if @body.nil?
42
43
  @body.is_a?(String) ? [@body] : @body
43
44
  end
44
45
 
@@ -1,3 +1,3 @@
1
1
  module RocketIO
2
- VERSION = '0.4.2'.freeze
2
+ VERSION = '0.4.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slee Woo
@@ -203,5 +203,5 @@ rubyforge_project:
203
203
  rubygems_version: 2.5.1
204
204
  signing_key:
205
205
  specification_version: 4
206
- summary: '["rocketio-0.4.2", "Simple routing lib"]'
206
+ summary: '["rocketio-0.4.3", "Simple routing lib"]'
207
207
  test_files: []