rack-server-pages 0.2.0 → 0.3.0
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.
- checksums.yaml +4 -4
- data/CHANGES.md +22 -0
- data/README.md +222 -78
- data/RELEASING.md +79 -0
- data/UPGRADING.md +23 -0
- data/lib/rack/server_pages.rb +84 -7
- data/lib/rack-server-pages/version.rb +1 -1
- data/rack-server-pages.gemspec +3 -6
- metadata +8 -63
- data/.github/workflows/lint.yml +0 -15
- data/.github/workflows/test.yml +0 -37
- data/.gitignore +0 -11
- data/.rspec +0 -2
- data/.rubocop.yml +0 -10
- data/.rubocop_todo.yml +0 -372
- data/Gemfile +0 -46
- data/Guardfile +0 -16
- data/Rakefile +0 -12
- data/config.ru +0 -49
- data/public/CHANGES.erb +0 -3
- data/public/README.erb +0 -3
- data/public/_layout.html.erb +0 -9
- data/public/folder/sample.erb +0 -14
- data/public/folder/special-sub.folder-@/sample.erb +0 -14
- data/public/folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb +0 -14
- data/public/folder/subfolder/sample.erb +0 -14
- data/public/folder//320/277/320/276-/321/200/321/203/321/201/321/201/320/272/320/270//320/277/321/200/320/270/320/274/320/265/321/200.erb +0 -14
- data/public/index.html +0 -23
- data/public/info.php +0 -89
- data/public/rack_logo.png +0 -0
- data/public/rack_logo@2x.png +0 -0
- data/public/sample.erb +0 -14
- data/public/style.css.sass +0 -99
- data/views/about.html.slim +0 -11
- data/views/article.html.md +0 -16
- data/views/betty.css.sass +0 -11
- data/views/contact.xml.builder +0 -5
- data/views/examples/_layout.html.erb +0 -14
- data/views/examples/_time.html.erb +0 -4
- data/views/examples/builder.xml.builder +0 -2
- data/views/examples/coffee.js.coffee +0 -0
- data/views/examples/erb.html.erb +0 -2
- data/views/examples/haml.html.haml +0 -6
- data/views/examples/html.html +0 -1
- data/views/examples/index.html.erb +0 -9
- data/views/examples/less.css.less +0 -0
- data/views/examples/liquid.html.liquid +0 -0
- data/views/examples/markaby.html.mab +0 -0
- data/views/examples/markdown.html.markdown +0 -6
- data/views/examples/nokogiri.xml.nokogiri +0 -1
- data/views/examples/radius.html.radius +0 -0
- data/views/examples/rdoc.html.rdoc +0 -0
- data/views/examples/robots.txt +0 -1
- data/views/examples/sass.css.sass +0 -11
- data/views/examples/scss.css.scss +0 -0
- data/views/examples/slim.html.slim +0 -2
- data/views/examples/source.html.slim +0 -9
- data/views/examples/textile.html.textile +0 -0
- data/views/examples/wiki.html.wiki +0 -0
- data/views/examples/yajl.json.yajl +0 -0
- data/views/script.js.coffee +0 -13
data/public/info.php
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style type="text/css">
|
|
4
|
-
<!--
|
|
5
|
-
body {background-color: #ffffff; color: #000000;}
|
|
6
|
-
body, td, th, h1, h2 {font-family: sans-serif;}
|
|
7
|
-
pre {margin: 0px; font-family: monospace;}
|
|
8
|
-
a:hover {text-decoration: underline;}
|
|
9
|
-
table {border-collapse: collapse;}
|
|
10
|
-
.center {text-align: center;}
|
|
11
|
-
.center table { margin-left: auto; margin-right: auto; text-align: left;}
|
|
12
|
-
.center th { text-align: center !important; }
|
|
13
|
-
td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
|
|
14
|
-
h1 {font-size: 150%;}
|
|
15
|
-
h2 {font-size: 125%;}
|
|
16
|
-
.p {text-align: left;}
|
|
17
|
-
.e {background-color: #ccccff; font-weight: bold; color: #000000;}
|
|
18
|
-
.h {background-color: #9999cc; font-weight: bold; color: #000000;}
|
|
19
|
-
.v {background-color: #cccccc; color: #000000;}
|
|
20
|
-
i {color: #666666; background-color: #cccccc;}
|
|
21
|
-
img {float: right; border: 0px;}
|
|
22
|
-
hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
|
|
23
|
-
//-->
|
|
24
|
-
</style>
|
|
25
|
-
<title>rubyinfo()</title>
|
|
26
|
-
</head>
|
|
27
|
-
<body>
|
|
28
|
-
<div class="center">
|
|
29
|
-
<table border="0" cellpadding="3" width="600">
|
|
30
|
-
<tr class="h">
|
|
31
|
-
<td>
|
|
32
|
-
<h1 class="p">Rack Server Pages Version <%= Rack::ServerPages::VERSION%></h1>
|
|
33
|
-
</td>
|
|
34
|
-
</tr>
|
|
35
|
-
</table>
|
|
36
|
-
<br />
|
|
37
|
-
<h2>Rack Environment</h2>
|
|
38
|
-
<table border="0" cellpadding="3" width="600">
|
|
39
|
-
<tr class="h"><th>Variable</th><th>Value</th></tr>
|
|
40
|
-
<% for key, value in env do %>
|
|
41
|
-
<tr><td class="e"><%= key %></td><td class="v"><%= value %></td></tr>
|
|
42
|
-
<% end %>
|
|
43
|
-
</table>
|
|
44
|
-
<h2>Ruby</h2>
|
|
45
|
-
<table border="0" cellpadding="3" width="600">
|
|
46
|
-
<tr><td class="e">RUBY_VERSION</td><td class="v"><%= RUBY_VERSION %></td></tr>
|
|
47
|
-
<tr><td class="e">RUBY_PATCHLEVEL</td><td class="v"><%= RUBY_PATCHLEVEL %></td></tr>
|
|
48
|
-
<tr><td class="e">RUBY_RELEASE_DATE</td><td class="v"><%= RUBY_RELEASE_DATE %></td></tr>
|
|
49
|
-
<tr><td class="e">RUBY_PLATFORM</td><td class="v"><%= RUBY_PLATFORM %></td></tr>
|
|
50
|
-
</table>
|
|
51
|
-
<h2>Environment</h2>
|
|
52
|
-
<table border="0" cellpadding="3" width="600">
|
|
53
|
-
<tr class="h"><th>Variable</th><th>Value</th></tr>
|
|
54
|
-
<% for key, value in ENV do %>
|
|
55
|
-
<tr><td class="e"><%= key %></td><td class="v"><%= value %></td></tr>
|
|
56
|
-
<% end %>
|
|
57
|
-
</table>
|
|
58
|
-
<% if defined?(Tilt) %>
|
|
59
|
-
<h2>Tilt</h2>
|
|
60
|
-
<table border="0" cellpadding="3" width="600">
|
|
61
|
-
<% for key, value in (Tilt.respond_to?(:mappings) ? Tilt.mappings : Tilt.lazy_map) do %>
|
|
62
|
-
<tr><td class="e"><%= key %></td><td class="v"><%= value %></td></tr>
|
|
63
|
-
<% end %>
|
|
64
|
-
</table>
|
|
65
|
-
<% else %>
|
|
66
|
-
<h2>ERB Template</h2>
|
|
67
|
-
<table border="0" cellpadding="3" width="600">
|
|
68
|
-
<tr><td class="e">extensions</td><td class="v"><%=Rack::ServerPages::Template::ERBTemplate.extensions.join(', ')%></td></tr>
|
|
69
|
-
</table>
|
|
70
|
-
<% end %>
|
|
71
|
-
<h2>Binding</h2>
|
|
72
|
-
<table border="0" cellpadding="3" width="600">
|
|
73
|
-
<tr><td class="e">variables</td><td class="v"><%= (instance_variables).join(', ') %></td></tr>
|
|
74
|
-
<tr><td class="e">methods</td><td class="v"><%= (methods - Object.methods).join(', ') %></td></tr>
|
|
75
|
-
</table>
|
|
76
|
-
<h2>License</h2>
|
|
77
|
-
<table border="0" cellpadding="3" width="600">
|
|
78
|
-
<tr class="v">
|
|
79
|
-
<td>
|
|
80
|
-
<p>
|
|
81
|
-
<a href="http://github.com/migrs/rack-server-pages">rack-server-pages</a> is Copyright (c) 2012 <a href="http://github.com/migrs">Masato Igarashi</a>(@<a href="http://twitter.com/migrs">migrs</a>) and distributed under the <a href="http://www.opensource.org/licenses/mit-license">MIT license</a>.
|
|
82
|
-
</p>
|
|
83
|
-
</td>
|
|
84
|
-
</tr>
|
|
85
|
-
</table>
|
|
86
|
-
<br />
|
|
87
|
-
</div>
|
|
88
|
-
</body>
|
|
89
|
-
</html>
|
data/public/rack_logo.png
DELETED
|
Binary file
|
data/public/rack_logo@2x.png
DELETED
|
Binary file
|
data/public/sample.erb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
|
3
|
-
What's your name?:
|
|
4
|
-
<form>
|
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
|
6
|
-
<input type="submit" />
|
|
7
|
-
</form>
|
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
|
9
|
-
|
|
10
|
-
<%= @sample1 %>
|
|
11
|
-
<%= @sample2 %>
|
|
12
|
-
<%= sample3 %>
|
|
13
|
-
<%= sample4 %>
|
|
14
|
-
<%= sample5 %>
|
data/public/style.css.sass
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
body
|
|
2
|
-
margin: 0 auto
|
|
3
|
-
font-family: Georgia, Palatino, serif
|
|
4
|
-
color: #444444
|
|
5
|
-
line-height: 1
|
|
6
|
-
max-width: 960px
|
|
7
|
-
padding: 30px
|
|
8
|
-
|
|
9
|
-
h1, h2, h3, h4
|
|
10
|
-
color: #111111
|
|
11
|
-
font-weight: 400
|
|
12
|
-
|
|
13
|
-
h1, h2, h3, h4, h5, p
|
|
14
|
-
margin-bottom: 24px
|
|
15
|
-
padding: 0
|
|
16
|
-
|
|
17
|
-
h1
|
|
18
|
-
font-size: 48px
|
|
19
|
-
|
|
20
|
-
h2
|
|
21
|
-
font-size: 36px
|
|
22
|
-
margin: 24px 0 6px
|
|
23
|
-
|
|
24
|
-
h3
|
|
25
|
-
font-size: 24px
|
|
26
|
-
|
|
27
|
-
h4
|
|
28
|
-
font-size: 21px
|
|
29
|
-
|
|
30
|
-
h5
|
|
31
|
-
font-size: 18px
|
|
32
|
-
|
|
33
|
-
a
|
|
34
|
-
color: #0099ff
|
|
35
|
-
margin: 0
|
|
36
|
-
padding: 0
|
|
37
|
-
vertical-align: baseline
|
|
38
|
-
&:hover
|
|
39
|
-
text-decoration: none
|
|
40
|
-
color: #ff6600
|
|
41
|
-
&:visited
|
|
42
|
-
color: purple
|
|
43
|
-
|
|
44
|
-
//ul, ol {
|
|
45
|
-
// padding: 0;
|
|
46
|
-
// margin: 0;
|
|
47
|
-
//}
|
|
48
|
-
|
|
49
|
-
li
|
|
50
|
-
line-height: 24px
|
|
51
|
-
ul
|
|
52
|
-
margin-left: 24px
|
|
53
|
-
|
|
54
|
-
p, ul, ol
|
|
55
|
-
font-size: 16px
|
|
56
|
-
line-height: 24px
|
|
57
|
-
//max-width: 540px;
|
|
58
|
-
|
|
59
|
-
pre
|
|
60
|
-
padding: 5px 10px
|
|
61
|
-
max-width: 800px
|
|
62
|
-
white-space: pre-wrap
|
|
63
|
-
background-color: #eee
|
|
64
|
-
|
|
65
|
-
code
|
|
66
|
-
font-family: Consolas, Monaco, Andale Mono, monospace
|
|
67
|
-
line-height: 1.5
|
|
68
|
-
font-size: 13px
|
|
69
|
-
background-color: #eee
|
|
70
|
-
|
|
71
|
-
p
|
|
72
|
-
padding: 2px
|
|
73
|
-
margin: 2px
|
|
74
|
-
|
|
75
|
-
aside
|
|
76
|
-
display: block
|
|
77
|
-
float: right
|
|
78
|
-
width: 390px
|
|
79
|
-
|
|
80
|
-
blockquote
|
|
81
|
-
border-left: .5em solid #eee
|
|
82
|
-
padding: 0 2em
|
|
83
|
-
margin-left: 0
|
|
84
|
-
max-width: 476px
|
|
85
|
-
cite
|
|
86
|
-
font-size: 14px
|
|
87
|
-
line-height: 20px
|
|
88
|
-
color: #bfbfbf
|
|
89
|
-
cite:before
|
|
90
|
-
content: '\2014 \00A0'
|
|
91
|
-
p
|
|
92
|
-
color: #666
|
|
93
|
-
max-width: 460px
|
|
94
|
-
|
|
95
|
-
hr
|
|
96
|
-
width: 540px
|
|
97
|
-
text-align: left
|
|
98
|
-
margin: 0 auto 0 0
|
|
99
|
-
color: #999
|
data/views/about.html.slim
DELETED
data/views/article.html.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
A First Level Header
|
|
2
|
-
====================
|
|
3
|
-
|
|
4
|
-
A Second Level Header
|
|
5
|
-
---------------------
|
|
6
|
-
|
|
7
|
-
Now is the time for all good men to come to
|
|
8
|
-
the aid of their country. This is just a
|
|
9
|
-
regular paragraph.
|
|
10
|
-
|
|
11
|
-
### Header 3
|
|
12
|
-
|
|
13
|
-
> This is a blockquote.
|
|
14
|
-
> Thank you
|
|
15
|
-
|
|
16
|
-
[source](http://github.com/migrs/rack-server-pages)
|
data/views/betty.css.sass
DELETED
data/views/contact.xml.builder
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>rack-server-pages Tilt examples</title>
|
|
4
|
-
<link href="<%=url("/style.css")%>" media="screen" rel="stylesheet" type="text/css" />
|
|
5
|
-
</head>
|
|
6
|
-
<body>
|
|
7
|
-
<h1>rack-server-pages examples</h1>
|
|
8
|
-
<%= partial 'views/examples/_time.html' %>
|
|
9
|
-
<%= yield if block_given? %>
|
|
10
|
-
<% unless request.path =~ %r!/examples/(index(\.html)?)?$! %>
|
|
11
|
-
<a href="<%=url('/examples/')%>">List examples</a>
|
|
12
|
-
<% end %>
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
|
File without changes
|
data/views/examples/erb.html.erb
DELETED
data/views/examples/html.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<h1>Hello html!</h1>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
xml.root
|
|
File without changes
|
|
File without changes
|
data/views/examples/robots.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Deny *
|
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
ruby:
|
|
2
|
-
layout 'views/examples/_layout.html'
|
|
3
|
-
src = params['src'] ? params['src'][/(\w+\.)?(\w+)$/, 0] : "source.html"
|
|
4
|
-
h2 source
|
|
5
|
-
code = file = Dir["views/examples/#{src}.*"].first
|
|
6
|
-
pre style="background-color:#122831;color:#B3B3B3;padding:1em;" =IO.read(file)
|
|
7
|
-
a href=(u=url("/examples/#{src}")) = u
|
|
8
|
-
iframe src=u width="100%"
|
|
9
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|