triannon 0.7.2 → 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: 2548790e908598e117e457e7e2d051e30a9f40e4
4
- data.tar.gz: 92b887940f9dcc100cb1c6aeca47f44b1aa2f641
3
+ metadata.gz: 21dce7d9930428e39541a90880061ab9430c4ed3
4
+ data.tar.gz: 9db2857167c28d12b8e265b38d7ebbeb0b30ad9d
5
5
  SHA512:
6
- metadata.gz: 1fefd1bc5ea2b5e8d69d2c48c4cd7d8422ba861815f6ad79b89a44abf05bd2d81588e2226f41f2c8ab823741e56188023da18b4429ba7eb520dc1b46a7f42ba6
7
- data.tar.gz: 87e9f142299da474e9f4ea8ba7405efa549429e883d2d0350986814571dd4d73bee2ad9cc993d2061b55949530cf8e8c6c48188725172a31087e1800bcb35de5
6
+ metadata.gz: a972fe423f6d5bd9b71832694686f74e508fab8dfe9bac748146be479fd0ffe5ee12c003dc29f744ead0f338cd5110293403c4777157c193d0550943960f0d5f
7
+ data.tar.gz: 2b75bc5f07de320f259352ad2b3f386b3fdc4d385e20cae4a64959f4a53da4faa939fe544b71e1d0b1b478395213c353ef1a9b9630ea9988652a19f80ceade25
@@ -12,7 +12,7 @@ module Triannon
12
12
 
13
13
  # GET /annotations
14
14
  def index
15
- @annotations = Annotation.all
15
+ redirect_to "/search"
16
16
  end
17
17
 
18
18
  # GET /annotations/1
@@ -35,6 +35,7 @@ module Triannon
35
35
  anno
36
36
  end
37
37
 
38
+ # @deprecated - was used by old annotations#index action, before redirect to search (2015-04)
38
39
  def self.all
39
40
  Triannon::LdpLoader.find_all
40
41
  end
@@ -16,6 +16,7 @@ module Triannon
16
16
  oa_graph
17
17
  end
18
18
 
19
+ # @deprecated was needed by old annotations#index action, which now redirects to search (2015-04)
19
20
  def self.find_all
20
21
  l = Triannon::LdpLoader.new
21
22
  l.find_all
@@ -52,6 +53,7 @@ module Triannon
52
53
  end
53
54
 
54
55
  # @return [Array<Triannon::Annotation>] an array of Triannon::Annotation objects with just the id set. Enough info to build the index page
56
+ # @deprecated was needed by old annotations#index action, which now redirects to search (2015-04).
55
57
  def find_all
56
58
  root_ttl = get_ttl
57
59
  objs = []
@@ -1,7 +1,5 @@
1
1
  Triannon::Engine.routes.draw do
2
2
 
3
- root to: 'annotations#index'
4
-
5
3
  resources :annotations, except: [:update, :edit],
6
4
  # show action must explicitly forbid "new", "iiif" and "oa" as id values; couldn't
7
5
  # figure out how to do it with regexp constraint since beginning and end regex
@@ -14,12 +12,14 @@ Triannon::Engine.routes.draw do
14
12
  get 'search', to: 'search#find'
15
13
  end
16
14
  end
17
-
15
+
18
16
  get '/search', to: 'search#find'
19
17
 
18
+ root to: 'search#find'
19
+
20
20
  # allow jsonld context in path (only allow iiif or oa as values)
21
- # must explicitly forbid "new" as id values; couldn't
22
- # figure out how to do it with regexp constraint since beginning and end regex
21
+ # must explicitly forbid "new" as id values; couldn't figure
22
+ # out how to do it with regexp constraint since beginning and end regex
23
23
  # matchers aren't allowed when enforcing formats for segment (e.g. :id)
24
24
  get '/annotations/:jsonld_context/:id(.:format)', to: 'annotations#show',
25
25
  constraints: lambda { |request|
@@ -1,3 +1,3 @@
1
1
  module Triannon
2
- VERSION = "0.7.2"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triannon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-14 00:00:00.000000000 Z
13
+ date: 2015-04-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -351,7 +351,6 @@ files:
351
351
  - app/views/layouts/triannon/application.html.erb
352
352
  - app/views/triannon/annotations/_form.html.erb
353
353
  - app/views/triannon/annotations/edit.html.erb
354
- - app/views/triannon/annotations/index.html.erb
355
354
  - app/views/triannon/annotations/new.html.erb
356
355
  - app/views/triannon/annotations/show.html.erb
357
356
  - app/views/triannon/search/find.html.erb
@@ -1,8 +0,0 @@
1
- <h1>Annotations</h1>
2
- <ul>
3
- <% @annotations.each do |a| %>
4
- <li><%= link_to a.id_as_url, annotation_path(a) %></li>
5
- <% end %>
6
- </ul>
7
-
8
- <%= link_to 'New Annotation', new_annotation_path %>