stellaserver 0.0.3 → 0.0.4

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: f960ace0164e194656da16c5b09ec0459aba753c
4
- data.tar.gz: 708641a8df2ef6639634740b744bdf27c3ef6e4f
3
+ metadata.gz: afa408107b800968f06aac25ca7c69fc83c7e2e7
4
+ data.tar.gz: 7f10d3b85409dfceeb111de4a1e5f1904afd474f
5
5
  SHA512:
6
- metadata.gz: 67b6773aa1bfa2187b0f34c2c79e42d4579b42dfc775558d04bf433db7763ba0b68ee4e418bd22a452c42f9222df39c723c2a36a05c8730fa77f3116ad4cd8d3
7
- data.tar.gz: d5709240942d71844af0cbd449734722cb76e3492712c978a27f59b7504092321c1edabf61d10458bea387e7aee3905d16a7e7e79f2d98d8b7a7edaf4f51adbd
6
+ metadata.gz: d84639d8323ed96d3411b0664fd758f249b5b8834e27721f9ae3147618027e5773ca266e37dfa863a3fe0db0f9c2a2975714ebec20e4d378938f6940ef1e3c31
7
+ data.tar.gz: 0ef8ce7e485ee26662d2cec95ccc145cb044d2acafa5611b5046e05ec0e119e1c5a286818dfc3df026a9173d5fe1b9b03eec4f04e097e8c714d1817633dc1e7f
data/bin/stellaserver ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'stellaserver'
data/lib/stellaserver.rb CHANGED
@@ -43,8 +43,6 @@ loop do
43
43
 
44
44
  path = requested_file(request_line)
45
45
 
46
- path = File.join(path, 'index.html') if File.directory?(path)
47
-
48
46
  if File.exist?(path) && !File.directory?(path)
49
47
  File.open(path, "rb") do |file|
50
48
  socket.print "HTTP/1.1 200 OK\r\n" +
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellaserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kayla Morrison
@@ -12,11 +12,12 @@ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple server gem
14
14
  email: kaylas.email.address@gmail.com
15
- executables: []
15
+ executables:
16
+ - stellaserver
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
19
- - lib/public/index.html
20
+ - bin/stellaserver
20
21
  - lib/stellaserver.rb
21
22
  homepage: https://rubygems.org/gems/stellaserver
22
23
  licenses:
@@ -1,11 +0,0 @@
1
- <html>
2
- <head>
3
-
4
- </head>
5
-
6
- <body>
7
- <h1>Here is a picture of a bunny</h1>
8
- <img src ="https://dl.dropboxusercontent.com/u/257144768/photo.JPG">
9
-
10
- </body>
11
- </html>