pho-utensil 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +2 -2
  2. data/lib/utensil-app.rb +1 -0
  3. data/views/index.erb +11 -16
  4. metadata +5 -4
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/testtask'
5
5
  require 'rake/clean'
6
6
 
7
7
  NAME = "pho-utensil"
8
- VER = "0.0.2"
8
+ VER = "0.0.3"
9
9
  PKG_FILES = %w( README.rdoc Rakefile ) +
10
10
  Dir.glob("{bin,lib,public,views}/**/*")
11
11
 
@@ -28,7 +28,7 @@ SPEC =
28
28
  s.require_path = "lib"
29
29
  s.bindir = "bin"
30
30
  s.executables = ["utensil"]
31
- s.add_dependency("pho", ">= 0.7")
31
+ s.add_dependency("pho", ">= 0.7.2")
32
32
  s.add_dependency("sinatra", ">= 1.0")
33
33
  end
34
34
 
@@ -29,6 +29,7 @@ class UtensilApp < Sinatra::Base
29
29
  get '/' do
30
30
  @jobs = Pho::Jobs.read_from_store( settings.store )
31
31
  @status = Pho::Status.read_from_store( settings.store )
32
+ @records = Pho::OAI::Records.read_from_store( settings.store )
32
33
  erb :index
33
34
  end
34
35
 
@@ -1,24 +1,19 @@
1
1
  <div class="span-17 box">
2
2
 
3
- <h2>Recent Metabox Updates</h2>
3
+ <h2>Recent Updates</h2>
4
4
 
5
+ <% if @records == nil %>
6
+ <p>None</p>
7
+ <% end %>
8
+
9
+ <% if @records != nil %>
5
10
  <ul>
6
- <li><a href="http://www.example.org">http://www.example.org</a></li>
7
- <li><a href="http://www.example.org">http://www.example.org</a></li>
8
- <li><a href="http://www.example.org">http://www.example.org</a></li>
9
- <li><a href="http://www.example.org">http://www.example.org</a></li>
10
- <li><a href="http://www.example.org">http://www.example.org</a></li>
11
- </ul>
12
-
13
- <h2>Recent Contentbox Updates</h2>
14
-
15
- <ul>
16
- <li><a href="http://www.example.org">http://www.example.org</a></li>
17
- <li><a href="http://www.example.org">http://www.example.org</a></li>
18
- <li><a href="http://www.example.org">http://www.example.org</a></li>
19
- <li><a href="http://www.example.org">http://www.example.org</a></li>
20
- <li><a href="http://www.example.org">http://www.example.org</a></li>
11
+ <% @records.records.each do |record| %>
12
+ <li><a href="<%= record.identifier %>"><%= record.identifier %></a> <%= record.datestamp %></li>
13
+ <% end %>
21
14
  </ul>
15
+ <% end %>
16
+
22
17
 
23
18
  </div>
24
19
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Leigh Dodds
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-03 00:00:00 +01:00
17
+ date: 2010-04-04 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,7 +27,8 @@ dependencies:
27
27
  segments:
28
28
  - 0
29
29
  - 7
30
- version: "0.7"
30
+ - 2
31
+ version: 0.7.2
31
32
  type: :runtime
32
33
  version_requirements: *id001
33
34
  - !ruby/object:Gem::Dependency