pluto 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{History.markdown → History.md} +0 -0
- data/Manifest.txt +7 -18
- data/README.md +172 -0
- data/Rakefile +11 -6
- data/config/pluto.index.yml +19 -0
- data/lib/pluto.rb +14 -12
- data/lib/pluto/cli/main.rb +213 -0
- data/lib/pluto/cli/opts.rb +38 -2
- data/lib/pluto/formatter.rb +17 -39
- data/lib/pluto/installer.rb +58 -0
- data/lib/pluto/lister.rb +42 -0
- data/lib/pluto/manifest_helpers.rb +50 -0
- data/lib/pluto/models.rb +60 -5
- data/lib/pluto/schema.rb +38 -6
- data/lib/pluto/updater.rb +90 -114
- data/lib/pluto/version.rb +1 -1
- metadata +65 -33
- data/README.markdown +0 -107
- data/lib/pluto/cli/runner.rb +0 -96
- data/lib/pluto/server.rb +0 -108
- data/lib/pluto/server/public/feed-icon-10x10.png +0 -0
- data/lib/pluto/server/public/style.css +0 -79
- data/lib/pluto/server/views/_debug.erb +0 -16
- data/lib/pluto/server/views/_version.erb +0 -5
- data/lib/pluto/server/views/debug.erb +0 -14
- data/lib/pluto/server/views/feeds.erb +0 -13
- data/lib/pluto/server/views/index.erb +0 -3
- data/lib/pluto/server/views/items.erb +0 -12
- data/lib/pluto/server/views/layout.erb +0 -22
- data/lib/pluto/server/views/sites.erb +0 -21
- data/templates/blank.html.erb +0 -133
- data/templates/blank.top.html.erb +0 -10
- data/templates/blank.txt +0 -5
- data/templates/feed-icon-10x10.png +0 -0
@@ -1,22 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset='UTF-8'>
|
5
|
-
<title>Pluto / Admin</title>
|
6
|
-
<link href="<%= url('/style.css') %>" rel='stylesheet'>
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
|
10
|
-
<p>
|
11
|
-
Pluto |
|
12
|
-
<%= link_to 'Sites', sites_path %> <span class='count'>(<%= Site.count %>)</span> •
|
13
|
-
<%= link_to 'Feeds', feeds_path %> <span class='count'>(<%= Feed.count %>)</span> •
|
14
|
-
<%= link_to 'Items', items_path %> <span class='count'>(<%= Item.count %>)</span>
|
15
|
-
</p>
|
16
|
-
|
17
|
-
<%= yield %>
|
18
|
-
|
19
|
-
<%= erb :'_version' %>
|
20
|
-
|
21
|
-
</body>
|
22
|
-
</html>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<h2><%= Site.count %> Sites</h2>
|
4
|
-
|
5
|
-
<table>
|
6
|
-
<% Site.all.each do |site| %>
|
7
|
-
<tr>
|
8
|
-
<td class='key'><%= site.key %></td>
|
9
|
-
<td><%= site.title %>
|
10
|
-
<span class='count'>(<%= site.feeds.count %>)</span>
|
11
|
-
</td>
|
12
|
-
<td>
|
13
|
-
<ul>
|
14
|
-
<% site.feeds.each do |feed| %>
|
15
|
-
<li><%= feed.title %></li>
|
16
|
-
<% end %>
|
17
|
-
</ul>
|
18
|
-
</td>
|
19
|
-
</tr>
|
20
|
-
<% end %>
|
21
|
-
</table>
|
data/templates/blank.html.erb
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta charset="UTF-8">
|
4
|
-
<title><%= site['title'] %></title>
|
5
|
-
<meta name="generator" content="<%= Pluto.banner %>">
|
6
|
-
<style>
|
7
|
-
/* fix: use sass w/ variables */
|
8
|
-
body {
|
9
|
-
font-family: sans-serif;
|
10
|
-
background-color: #F4F4F4;
|
11
|
-
color: #333333;
|
12
|
-
}
|
13
|
-
|
14
|
-
a, a:visited {
|
15
|
-
text-decoration: none;
|
16
|
-
color: #1E68A6;
|
17
|
-
}
|
18
|
-
|
19
|
-
a:hover {
|
20
|
-
text-decoration: underline;
|
21
|
-
color: #1E68A6;
|
22
|
-
background-color: yellow;
|
23
|
-
}
|
24
|
-
|
25
|
-
.item {
|
26
|
-
background-color: white;
|
27
|
-
border: 1px solid #9E9E9E;
|
28
|
-
padding: 0px 15px 15px 15px;
|
29
|
-
margin-bottom: 12px;
|
30
|
-
}
|
31
|
-
|
32
|
-
.item_title {
|
33
|
-
margin-top: 0;
|
34
|
-
font-size: 16px;
|
35
|
-
}
|
36
|
-
|
37
|
-
.feed_title {
|
38
|
-
margin-bottom: 5px;
|
39
|
-
font-size: 12px;
|
40
|
-
}
|
41
|
-
|
42
|
-
.colright {
|
43
|
-
margin-left: 20px;
|
44
|
-
}
|
45
|
-
|
46
|
-
ul.subscriptions {
|
47
|
-
list-style: none;
|
48
|
-
margin-left: 0;
|
49
|
-
padding-left: 0;
|
50
|
-
}
|
51
|
-
|
52
|
-
/* fix: use .small instead */
|
53
|
-
.smaller {
|
54
|
-
font-size: 12px;
|
55
|
-
/* color: #666666; */ /* lighter gray than text gray */
|
56
|
-
}
|
57
|
-
|
58
|
-
.item_content {
|
59
|
-
font-size: 14px;
|
60
|
-
}
|
61
|
-
</style>
|
62
|
-
</head>
|
63
|
-
<body>
|
64
|
-
<h1><%= site['title'] %></h1>
|
65
|
-
|
66
|
-
<table>
|
67
|
-
<tr>
|
68
|
-
<td style='vertical-align:top;'><!-- first column -->
|
69
|
-
|
70
|
-
<% last_published_at = Time.local( 1999, 1, 1 )
|
71
|
-
Item.latest.limit(24).each do |item| %>
|
72
|
-
|
73
|
-
<% unless last_published_at.year == item.published_at.year &&
|
74
|
-
last_published_at.month == item.published_at.month &&
|
75
|
-
last_published_at.day == item.published_at.day %>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<h3>
|
80
|
-
<%= item.published_at.strftime('%A, %d. %B %Y') %>
|
81
|
-
</h3>
|
82
|
-
|
83
|
-
<% end %><!-- if new day? -->
|
84
|
-
|
85
|
-
|
86
|
-
<div class='item'>
|
87
|
-
|
88
|
-
<h4 class='feed_title'>
|
89
|
-
<a href='<%= item.feed.url %>'><%= item.feed.title %></a>
|
90
|
-
</h4>
|
91
|
-
|
92
|
-
<h2 class='item_title'>
|
93
|
-
<a href='<%= item.url %>'><%= item.title %></a>
|
94
|
-
</h2>
|
95
|
-
|
96
|
-
<div class='item_content'>
|
97
|
-
<%= item.content %>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
<!--
|
101
|
-
<p>
|
102
|
-
<%= item.published_at.strftime('%H:%M') %>
|
103
|
-
</p>
|
104
|
-
-->
|
105
|
-
|
106
|
-
<% last_published_at = item.published_at
|
107
|
-
end %><!-- each item -->
|
108
|
-
|
109
|
-
</td>
|
110
|
-
<td style='vertical-align:top;'><!-- second column -->
|
111
|
-
|
112
|
-
<div class='colright'>
|
113
|
-
<p>
|
114
|
-
Last Updated
|
115
|
-
</p>
|
116
|
-
<p class='smaller'><%= Time.now.strftime('%A, %d. %B %Y %H:%M') %>
|
117
|
-
</p>
|
118
|
-
|
119
|
-
<p>Subscriptions</p>
|
120
|
-
<ul class='subscriptions smaller' >
|
121
|
-
<% Feed.all.each do |feed| %>
|
122
|
-
<li>
|
123
|
-
<a href='<%= feed.feed_url %>'><img src='feed-icon-10x10.png'></a>
|
124
|
-
<a href='<%= feed.url %>'><%= feed.title %></a></li>
|
125
|
-
<% end %>
|
126
|
-
</ul>
|
127
|
-
</div>
|
128
|
-
|
129
|
-
</td>
|
130
|
-
</tr>
|
131
|
-
</table>
|
132
|
-
<body>
|
133
|
-
</html>
|
data/templates/blank.txt
DELETED
Binary file
|