nut 0.1.2 → 0.1.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: 07231925f69fb56c0b67e359619ed3275802c4db
4
- data.tar.gz: 4d17c3375888e040058f4d2b4ef6e75fcf0e2cc0
3
+ metadata.gz: c13a9a968fdcf0e75dd2b69e134b06bd4770fcf7
4
+ data.tar.gz: be12340e175e32f0c1fbe52407cb5585e5919964
5
5
  SHA512:
6
- metadata.gz: 2185a1059b45859a6b364707847e798a9de02ac8071508ffd1df5695caa45df76c5169e4804f823f5b37482e2781c3cd025d0cf203eb404e867a6e800cd4dc95
7
- data.tar.gz: 43226ca7d2d4ec469e8f17714e5b12987db021eaaef56a2e08daf74a21dac4f44c10f95f6b74ca87bc08cd422b82767c77f9e269581b978cf37cdaf67ce7361b
6
+ metadata.gz: 86a162c0df012f1e4814f05cc52faab89230e508339c88f49143b6c403f1b2d3336ee568f259c6b7f5e1b5f612542c2a33eba9e13a7e7b2faeac98776c6a2161
7
+ data.tar.gz: 108dcbeaed5946f4efedb8e5bdd0d2e500b41e0feb5755c737465a32d223b128bdcff93a2240ce9f819d21733caaf122d982d39a5005e2414915a052a1996b58
data/README.md CHANGED
@@ -47,7 +47,7 @@ n = Nut::Service.new ExampleRequestHandler
47
47
  The _request_ argument to the *handle* method is a Hash containing information representing a client request.
48
48
 
49
49
  The following fields are available:
50
- * *:peer* - RxIO Peer Information Hash such as { name: 'foobar.eresse.net', addr: '51.254.97.136', port: 42432 }
50
+ * *:peer* - RxIO Peer Information Hash such as { name: 'client1.example.com', addr: '51.254.97.136', port: 42432 }
51
51
  * *:verb* - HTTP Verb such as :get / :post
52
52
  * *:uri* - Request URI (without host and params)
53
53
  * *:body* - Complete Request Body (without headers)
@@ -134,8 +134,8 @@ If *response[:redirect]* is a String, Nut will respond with a *302 Found* "tempo
134
134
  module ExampleRequestHandler
135
135
  def handle request, response
136
136
 
137
- # Temporarily Redirect to 'http://eresse.net'
138
- response[:redirect] = 'http://eresse.net'
137
+ # Temporarily Redirect to 'http://www.example.com'
138
+ response[:redirect] = 'http://www.example.com'
139
139
  end
140
140
  end
141
141
 
@@ -150,8 +150,8 @@ If *response[:redirect]* is a Hash, Nut will respond with either a *302 Found* o
150
150
  module ExampleRequestHandler
151
151
  def handle request, response
152
152
 
153
- # Permanently Redirect to 'http://eresse.net'
154
- response[:redirect] = { to: 'http://eresse.net', permanent: true }
153
+ # Permanently Redirect to 'http://www.eresse.net'
154
+ response[:redirect] = { to: 'http://www.eresse.net', permanent: true }
155
155
  end
156
156
  end
157
157
 
data/lib/nut/handler.rb CHANGED
@@ -28,7 +28,7 @@ module Nut
28
28
  SUPPORTED_VERSION = 'http/1.1'
29
29
 
30
30
  # On Join
31
- # @note RxIO Service Interface Callback - Triggered each time a Client connects.
31
+ # RxIO Service Interface Callback - Triggered each time a Client connects.
32
32
  # @param [Hash] client An RxIO Client Hash
33
33
  def self.on_join client
34
34
  # NoOp
data/lib/nut/version.rb CHANGED
@@ -5,5 +5,5 @@
5
5
  module Nut
6
6
 
7
7
  # Version
8
- VERSION = '0.1.2'
8
+ VERSION = '0.1.3'
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse