pluto-admin 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -3
- data/lib/pluto/admin.rb +6 -10
- data/lib/pluto/admin/server.rb +0 -4
- data/lib/pluto/admin/version.rb +14 -1
- data/lib/pluto/admin/views/feed.erb +10 -17
- data/lib/pluto/admin/views/feeds.erb +5 -12
- data/lib/pluto/admin/views/item.erb +10 -12
- data/lib/pluto/admin/views/shared/_items.erb +6 -6
- data/lib/pluto/admin/views/shared/_version.erb +3 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2afca9279c40ae61e2bccec14957dfa73869eb8
|
4
|
+
data.tar.gz: bc17c3e11b984768e85f4d51fefbce69f19c8e8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40107dd22844a6a60fc6d4c27538e801087c66d3f3b62b81cb6d9f8fab74528939b24aa68f6024b304b9ec51af24b154e29308994a6a7738dae1646c1794e98
|
7
|
+
data.tar.gz: 56fa6402facbbfa90b5cc52c118b1d01b5cfbe7ff3956175b2f4b130dfd50b16bc4d81a0c38cbf00bbdc0782fb79f398f9f6f1bfc23ddb968d71838b348ee74d
|
data/Rakefile
CHANGED
@@ -18,8 +18,8 @@ Hoe.spec 'pluto-admin' do
|
|
18
18
|
self.history_file = 'HISTORY.md'
|
19
19
|
|
20
20
|
self.extra_deps = [
|
21
|
-
['
|
22
|
-
['
|
21
|
+
['pluto-models', '>= 1.4.0'],
|
22
|
+
['sinatra']
|
23
23
|
]
|
24
24
|
|
25
25
|
self.licenses = ['Public Domain']
|
@@ -28,5 +28,4 @@ Hoe.spec 'pluto-admin' do
|
|
28
28
|
required_ruby_version: '>= 1.9.2'
|
29
29
|
}
|
30
30
|
|
31
|
-
|
32
31
|
end
|
data/lib/pluto/admin.rb
CHANGED
@@ -1,21 +1,17 @@
|
|
1
1
|
|
2
|
+
|
2
3
|
require 'pluto/models'
|
3
4
|
|
4
|
-
|
5
|
+
# 3rd party libs/gems
|
6
|
+
require 'sinatra/base'
|
5
7
|
|
6
8
|
|
7
|
-
|
9
|
+
## our own code
|
10
|
+
require 'pluto/admin/version' # let it always go first
|
8
11
|
|
9
|
-
def self.banner
|
10
|
-
## todo: add RUBY_PATCHLEVEL or PATCH_LEVEL
|
11
|
-
"pluto-admin/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
12
|
-
end
|
13
12
|
|
14
|
-
|
15
|
-
"#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
|
16
|
-
end
|
13
|
+
require 'pluto/admin/server'
|
17
14
|
|
18
|
-
end # module PlutoAdmin
|
19
15
|
|
20
16
|
|
21
17
|
puts PlutoAdmin.banner # say hello
|
data/lib/pluto/admin/server.rb
CHANGED
data/lib/pluto/admin/version.rb
CHANGED
@@ -1,4 +1,17 @@
|
|
1
1
|
|
2
|
+
|
2
3
|
module PlutoAdmin
|
3
|
-
|
4
|
+
|
5
|
+
VERSION = '1.0.0'
|
6
|
+
|
7
|
+
def self.banner
|
8
|
+
## todo: add RUBY_PATCHLEVEL or PATCH_LEVEL
|
9
|
+
"pluto-admin/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.root
|
13
|
+
"#{File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )}"
|
14
|
+
end
|
15
|
+
|
4
16
|
end
|
17
|
+
|
@@ -20,8 +20,8 @@
|
|
20
20
|
</a>
|
21
21
|
|
22
22
|
<span class='key'>
|
23
|
-
-
|
24
|
-
|
23
|
+
-
|
24
|
+
Last Fetched:
|
25
25
|
<% if feed.fetched %>
|
26
26
|
<%= feed.fetched.strftime( '%b %d, %Y %H:%M' ) %>
|
27
27
|
<% else %>
|
@@ -41,26 +41,19 @@
|
|
41
41
|
<% end %>
|
42
42
|
</p>
|
43
43
|
|
44
|
-
<p>
|
45
|
-
<% if feed.
|
46
|
-
|
47
|
-
<% else %>
|
48
|
-
---
|
49
|
-
<% end %>
|
50
|
-
|
51
|
-
<br> updated:
|
52
|
-
<% if feed.touched? %>
|
53
|
-
<%= feed.touched.strftime( '%b %d, %Y %H:%M' ) %>
|
44
|
+
<p> updated:
|
45
|
+
<% if feed.updated? %>
|
46
|
+
<%= feed.updated.strftime( '%b %d, %Y %H:%M' ) %>
|
54
47
|
<% else %>
|
55
48
|
---
|
56
49
|
<% end %>
|
57
50
|
|
58
|
-
|
59
|
-
|
60
|
-
<%= feed.
|
51
|
+
<br>published:
|
52
|
+
<% if feed.published? %>
|
53
|
+
<%= feed.published.strftime( '%b %d, %Y %H:%M' ) %>
|
61
54
|
<% else %>
|
62
|
-
|
63
|
-
<% end %>
|
55
|
+
---
|
56
|
+
<% end %>
|
64
57
|
|
65
58
|
<br> generator:
|
66
59
|
<% if feed.generator %>
|
@@ -21,24 +21,17 @@
|
|
21
21
|
</a>
|
22
22
|
</td>
|
23
23
|
<td>
|
24
|
-
<% if feed.
|
25
|
-
|
26
|
-
<% else %>
|
27
|
-
--no-published--
|
28
|
-
<% end %>
|
29
|
-
</td>
|
30
|
-
<td>
|
31
|
-
<% if feed.touched? %>
|
32
|
-
<%= feed.touched.strftime( '%b %d, %Y %H:%M' ) %>
|
24
|
+
<% if feed.updated? %>
|
25
|
+
<%= feed.updated.strftime( '%b %d, %Y %H:%M' ) %>
|
33
26
|
<% else %>
|
34
27
|
--no-updated--
|
35
28
|
<% end %>
|
36
29
|
</td>
|
37
30
|
<td>
|
38
|
-
<% if feed.
|
39
|
-
<%= feed.
|
31
|
+
<% if feed.published? %>
|
32
|
+
<%= feed.published.strftime( '%b %d, %Y %H:%M' ) %>
|
40
33
|
<% else %>
|
41
|
-
|
34
|
+
--no-published--
|
42
35
|
<% end %>
|
43
36
|
</td>
|
44
37
|
<td>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
<span class='key'>
|
21
21
|
-
|
22
|
-
|
22
|
+
Last Fetched:
|
23
23
|
<% if item.fetched %>
|
24
24
|
<%= item.fetched.strftime( '%b %d, %Y %H:%M' ) %>
|
25
25
|
<% else %>
|
@@ -30,22 +30,20 @@
|
|
30
30
|
|
31
31
|
<p>
|
32
32
|
guid: <span class='key'><%= item.guid %></span>
|
33
|
-
|
34
|
-
<br>
|
35
33
|
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
<br>
|
35
|
+
updated:
|
36
|
+
<% if item.updated? %>
|
37
|
+
<%= item.updated.strftime( '%b %d, %Y %H:%M' ) %>
|
39
38
|
<% else %>
|
40
|
-
|
39
|
+
---
|
41
40
|
<% end %>
|
42
|
-
|
43
41
|
<br>
|
44
|
-
|
45
|
-
<% if item.
|
46
|
-
|
42
|
+
published:
|
43
|
+
<% if item.published? %>
|
44
|
+
<%= item.published.strftime( '%b %d, %Y %H:%M' ) %>
|
47
45
|
<% else %>
|
48
|
-
|
46
|
+
---
|
49
47
|
<% end %>
|
50
48
|
</p>
|
51
49
|
|
@@ -30,17 +30,17 @@
|
|
30
30
|
<td class='key'><%= item.guid %></td>
|
31
31
|
|
32
32
|
<td>
|
33
|
-
<% if item.
|
34
|
-
|
33
|
+
<% if item.updated? %>
|
34
|
+
<%= item.updated.strftime( '%b %d, %Y %H:%M' ) %>
|
35
35
|
<% else %>
|
36
|
-
|
36
|
+
--no-updated--
|
37
37
|
<% end %>
|
38
38
|
</td>
|
39
39
|
<td>
|
40
|
-
<% if item.
|
41
|
-
|
40
|
+
<% if item.published? %>
|
41
|
+
<%= item.published.strftime( '%b %d, %Y %H:%M' ) %>
|
42
42
|
<% else %>
|
43
|
-
|
43
|
+
--no-published--
|
44
44
|
<% end %>
|
45
45
|
</td>
|
46
46
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
<div class='version'>
|
2
|
-
<a href="https://github.com/feedreader/pluto">pluto/<%= Pluto::VERSION %></a>,
|
2
|
+
<a href="https://github.com/feedreader/pluto.models">pluto.models/<%= Pluto::VERSION %></a>,
|
3
3
|
<a href="https://github.com/feedreader/pluto.admin">pluto.admin/<%= PlutoAdmin::VERSION %></a>,
|
4
|
-
<a href="https://github.com/
|
4
|
+
<a href="https://github.com/feedreader/feed.parser">feed.parser/<%= FeedParser::VERSION %></a>,
|
5
|
+
<a href="https://github.com/feedreader/feed.filter">feed.filter/<%= FeedFilter::VERSION %></a>
|
5
6
|
-
|
6
7
|
<span>Ruby/<%= "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE}/#{RUBY_PLATFORM})" %> on</span>
|
7
8
|
<span>Sinatra/<%= Sinatra::VERSION %> (<%= ENV['RACK_ENV'] %>)</span>
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pluto-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: pluto-models
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: sinatra
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|