up 0.0.1 → 0.0.2

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.
Files changed (7) hide show
  1. data/Rakefile +1 -1
  2. data/bin/up +1 -1
  3. data/lib/up/version.rb +1 -1
  4. data/man/up.1 +56 -0
  5. data/man/up.1.html +119 -0
  6. data/man/up.1.ronn +1 -1
  7. metadata +11 -4
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ end
17
17
  if command? :ronn
18
18
  desc "Show the manual"
19
19
  task :man => "man:build" do
20
- exec "man man/mustache.1"
20
+ exec "man man/up.1"
21
21
  end
22
22
 
23
23
  desc "Build the manual"
data/bin/up CHANGED
@@ -33,7 +33,7 @@ class Up
33
33
  options[:port] = port.to_i
34
34
  end
35
35
 
36
- opts.on("-o", "--host HOST",
36
+ opts.on("-H", "--host HOST",
37
37
  "The IP to listen to (default 0.0.0.0).") do |host|
38
38
  options[:host] = host
39
39
  end
@@ -1,4 +1,4 @@
1
1
  class Up
2
- Version = VERSION = '0.0.1'
2
+ Version = VERSION = '0.0.2'
3
3
  end
4
4
 
@@ -0,0 +1,56 @@
1
+ .\" generated with Ronn/v0.5
2
+ .\" http://github.com/rtomayko/ronn/
3
+ .
4
+ .TH "UP" "1" "May 2010" "DVYJONES" "Up Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBup\fR \-\- Static web server
8
+ .
9
+ .SH "SYNOPSIS"
10
+ .
11
+ .nf
12
+
13
+ up [OPTIONS] <DIR>
14
+ .
15
+ .fi
16
+ .
17
+ .SH "DESCRIPTION"
18
+ Up is a super\-simple static web server that hosts static files.
19
+ It uses Rack::Directory to do this and generates a nice directory
20
+ index if only a directory, not a file is specified.
21
+ .
22
+ .SH "OPTIONS"
23
+ .
24
+ .IP "\(bu" 4
25
+ \fB\-p\fR, \fB\-\-port PORT\fR:
26
+ Set the port that Up should listen to. The default port is
27
+ .
28
+ .IP "\(bu" 4
29
+ \fB\-o\fR, \fB\-\-host HOST\fR:
30
+ Set the host/IP that Up should bind to. Default is 0.0.0.0.
31
+ .
32
+ .IP "" 0
33
+ .
34
+ .SH "INSTALLATION"
35
+ If you have RubyGems installed:
36
+ .
37
+ .IP "" 4
38
+ .
39
+ .nf
40
+
41
+ gem install up
42
+ .
43
+ .fi
44
+ .
45
+ .IP "" 0
46
+ .
47
+ .SH "EXAMPLES"
48
+ .
49
+ .nf
50
+
51
+ $ up docs/
52
+ .
53
+ .fi
54
+ .
55
+ .SH "COPYRIGHT"
56
+ Up is Copyright (C) 2010 Henrik Hodne
@@ -0,0 +1,119 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv='content-type' value='text/html;charset=utf8'>
5
+ <meta name='generator' value='Ronn/v0.5'>
6
+ <title>up(1) -- Static web server</title>
7
+ <style type='text/css'>
8
+ body {margin:0}
9
+ #man, #man code, #man pre, #man tt, #man kbd, #man samp {
10
+ font-family:consolas,monospace;
11
+ font-size:16px;
12
+ line-height:1.3;
13
+ color:#343331;
14
+ background:#fff; }
15
+ #man { max-width:89ex; text-align:justify; margin:0 25px 25px 25px }
16
+ #man h1, #man h2, #man h3 { color:#232221;clear:left }
17
+ #man h1 { font-size:28px; margin:15px 0 30px 0; text-align:center }
18
+ #man h2 { font-size:18px; margin-bottom:0; margin-top:10px; line-height:1.3; }
19
+ #man h3 { font-size:16px; margin:0 0 0 4ex; }
20
+ #man p, #man ul, #man ol, #man dl, #man pre { margin:0 0 18px 0; }
21
+ #man pre {
22
+ color:#333231;
23
+ background:#edeceb;
24
+ padding:5px 7px;
25
+ margin:0px 0 20px 0;
26
+ border-left:2ex solid #ddd}
27
+ #man pre + h2, #man pre + h3 {
28
+ margin-top:22px;
29
+ }
30
+ #man h2 + pre, #man h3 + pre {
31
+ margin-top:5px;
32
+ }
33
+ #man > p, #man > ul, #man > ol, #man > dl, #man > pre { margin-left:8ex; }
34
+ #man dt { margin:0; clear:left }
35
+ #man dt.flush { float:left; width:8ex }
36
+ #man dd { margin:0 0 0 9ex }
37
+ #man code, #man strong, #man b { font-weight:bold; color:#131211; }
38
+ #man pre code { font-weight:normal; color:#232221; background:inherit }
39
+ #man em, var, u {
40
+ font-style:normal; color:#333231; border-bottom:1px solid #999; }
41
+ #man h1.man-title { display:none; }
42
+ #man ol.man, #man ol.man li { margin:2px 0 10px 0; padding:0;
43
+ float:left; width:33%; list-style-type:none;
44
+ text-transform:uppercase; font-size:18px; color:#999;
45
+ letter-spacing:1px;}
46
+ #man ol.man { width:100%; }
47
+ #man ol.man li.tl { text-align:left }
48
+ #man ol.man li.tc { text-align:center;letter-spacing:4px }
49
+ #man ol.man li.tr { text-align:right }
50
+ #man ol.man a { color:#999 }
51
+ #man ol.man a:hover { color:#333231 }
52
+ </style>
53
+ </head>
54
+ <body>
55
+ <div id='man'>
56
+
57
+ <h1 class='man-title'>up(1)</h1>
58
+
59
+ <ol class='head man'>
60
+ <li class='tl'>up(1)</li>
61
+ <li class='tc'>Up Manual</li>
62
+ <li class='tr'>up(1)</li>
63
+ </ol>
64
+
65
+ <h2 id='NAME'>NAME</h2>
66
+ <p><code>up</code> -- Static web server</p>
67
+
68
+ <h2>SYNOPSIS</h2>
69
+
70
+ <pre><code>up [OPTIONS] &lt;DIR>
71
+ </code></pre>
72
+
73
+ <h2>DESCRIPTION</h2>
74
+
75
+ <p>Up is a super-simple static web server that hosts static files.
76
+ It uses Rack::Directory to do this and generates a nice directory
77
+ index if only a directory, not a file is specified.</p>
78
+
79
+ <h2>OPTIONS</h2>
80
+
81
+ <ul>
82
+ <li><p><code>-p</code>, <code>--port PORT</code>:
83
+ Set the port that Up should listen to. The default port is</p>
84
+
85
+ <ol>
86
+ <li></li>
87
+ </ol>
88
+ </li>
89
+ <li><p><code>-o</code>, <code>--host HOST</code>:
90
+ Set the host/IP that Up should bind to. Default is 0.0.0.0.</p></li>
91
+ </ul>
92
+
93
+
94
+ <h2>INSTALLATION</h2>
95
+
96
+ <p>If you have RubyGems installed:</p>
97
+
98
+ <pre><code>gem install up
99
+ </code></pre>
100
+
101
+ <h2>EXAMPLES</h2>
102
+
103
+ <pre><code>$ up docs/
104
+ </code></pre>
105
+
106
+ <h2>COPYRIGHT</h2>
107
+
108
+ <p>Up is Copyright (C) 2010 Henrik Hodne</p>
109
+
110
+
111
+ <ol class='foot man'>
112
+ <li class='tl'>DVYJONES</li>
113
+ <li class='tc'>May 2010</li>
114
+ <li class='tr'>up(1)</li>
115
+ </ol>
116
+
117
+ </div>
118
+ </body>
119
+ </html>
@@ -19,7 +19,7 @@ index if only a directory, not a file is specified.
19
19
  Set the port that Up should listen to. The default port is
20
20
  1234.
21
21
 
22
- * `-o`, `--host HOST`:
22
+ * `-H`, `--host HOST`:
23
23
  Set the host/IP that Up should bind to. Default is 0.0.0.0.
24
24
 
25
25
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: up
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 1
9
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Henrik Hodne
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-30 00:00:00 +01:00
18
+ date: 2010-06-03 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -33,7 +34,9 @@ files:
33
34
  - lib/up/version.rb
34
35
  - lib/up.rb
35
36
  - bin/up
37
+ - man/up.1
36
38
  - man/up.1.ronn
39
+ - man/up.1.html
37
40
  has_rdoc: true
38
41
  homepage: http://github.com/dvyjones/up
39
42
  licenses: []
@@ -44,23 +47,27 @@ rdoc_options: []
44
47
  require_paths:
45
48
  - lib
46
49
  required_ruby_version: !ruby/object:Gem::Requirement
50
+ none: false
47
51
  requirements:
48
52
  - - ">="
49
53
  - !ruby/object:Gem::Version
54
+ hash: 3
50
55
  segments:
51
56
  - 0
52
57
  version: "0"
53
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
54
60
  requirements:
55
61
  - - ">="
56
62
  - !ruby/object:Gem::Version
63
+ hash: 3
57
64
  segments:
58
65
  - 0
59
66
  version: "0"
60
67
  requirements: []
61
68
 
62
69
  rubyforge_project:
63
- rubygems_version: 1.3.6
70
+ rubygems_version: 1.3.7
64
71
  signing_key:
65
72
  specification_version: 3
66
73
  summary: Up is a super-simple no-frills static web server.