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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31a9677b86dc054256fb5843daf924bce453df79
4
- data.tar.gz: dffa74c5a67b23c6762f20cebddad2d7d381da55
3
+ metadata.gz: b2afca9279c40ae61e2bccec14957dfa73869eb8
4
+ data.tar.gz: bc17c3e11b984768e85f4d51fefbce69f19c8e8b
5
5
  SHA512:
6
- metadata.gz: 8764261c2ec916e68c9f677f56bbe23f4e64df5cf58944b32e1c81e1d4199a95df83c79ba5c3469c7ba769eb85b2b9c08ed07ecbba877b7d09b2e8aa9c4d6925
7
- data.tar.gz: 9bd1b237f4708ecf9a336035914d779f7adf7c3ce574753199a488f292cb0b6311fbad2e22e796575fd23383b99184be8f7e61b0ada1bc50404d0076b78bf4dd
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
- ['logutils', '>= 0.6.1'],
22
- ['pluto-models', '>= 1.2.3'],
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
@@ -1,21 +1,17 @@
1
1
 
2
+
2
3
  require 'pluto/models'
3
4
 
4
- require 'pluto/admin/version' # let it always go first
5
+ # 3rd party libs/gems
6
+ require 'sinatra/base'
5
7
 
6
8
 
7
- module PlutoAdmin
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
- def self.root
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
@@ -6,10 +6,6 @@
6
6
  # run PlutoAdmin::Server
7
7
 
8
8
 
9
- # 3rd party libs/gems
10
-
11
- require 'sinatra/base'
12
-
13
9
 
14
10
  module PlutoAdmin
15
11
 
@@ -1,4 +1,17 @@
1
1
 
2
+
2
3
  module PlutoAdmin
3
- VERSION = '0.4.0'
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
- Update:
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> published:
45
- <% if feed.published? %>
46
- <%= feed.published.strftime( '%b %d, %Y %H:%M' ) %>
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
- <br> last-build:
59
- <% if feed.built? %>
60
- <%= feed.built.strftime( '%b %d, %Y %H:%M' ) %>
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.published? %>
25
- <%= feed.published.strftime( '%b %d, %Y %H:%M' ) %>
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.built? %>
39
- <%= feed.built.strftime( '%b %d, %Y %H:%M' ) %>
31
+ <% if feed.published? %>
32
+ <%= feed.published.strftime( '%b %d, %Y %H:%M' ) %>
40
33
  <% else %>
41
- --no-last-build--
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
- Update:
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
- published:
37
- <% if item.published? %>
38
- <%= item.published.strftime( '%b %d, %Y %H:%M' ) %>
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
- updated:
45
- <% if item.touched? %>
46
- <%= item.touched.strftime( '%b %d, %Y %H:%M' ) %>
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.published? %>
34
- <%= item.published.strftime( '%b %d, %Y %H:%M' ) %>
33
+ <% if item.updated? %>
34
+ <%= item.updated.strftime( '%b %d, %Y %H:%M' ) %>
35
35
  <% else %>
36
- --no-published--
36
+ --no-updated--
37
37
  <% end %>
38
38
  </td>
39
39
  <td>
40
- <% if item.touched? %>
41
- <%= item.touched.strftime( '%b %d, %Y %H:%M' ) %>
40
+ <% if item.published? %>
41
+ <%= item.published.strftime( '%b %d, %Y %H:%M' ) %>
42
42
  <% else %>
43
- --no-updated--
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/rubylibs/feedutils">feedutils/<%= FeedUtils::VERSION %></a>
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.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: 2014-12-13 00:00:00.000000000 Z
11
+ date: 2015-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logutils
14
+ name: pluto-models
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.1
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: 0.6.1
26
+ version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: pluto-models
28
+ name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.3
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: 1.2.3
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
43
43
  requirement: !ruby/object:Gem::Requirement