triannon 0.7.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/triannon/annotations_controller.rb +1 -1
- data/app/models/triannon/annotation.rb +1 -0
- data/app/services/triannon/ldp_loader.rb +2 -0
- data/config/routes.rb +5 -5
- data/lib/triannon/version.rb +1 -1
- metadata +2 -3
- data/app/views/triannon/annotations/index.html.erb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21dce7d9930428e39541a90880061ab9430c4ed3
|
4
|
+
data.tar.gz: 9db2857167c28d12b8e265b38d7ebbeb0b30ad9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a972fe423f6d5bd9b71832694686f74e508fab8dfe9bac748146be479fd0ffe5ee12c003dc29f744ead0f338cd5110293403c4777157c193d0550943960f0d5f
|
7
|
+
data.tar.gz: 2b75bc5f07de320f259352ad2b3f386b3fdc4d385e20cae4a64959f4a53da4faa939fe544b71e1d0b1b478395213c353ef1a9b9630ea9988652a19f80ceade25
|
@@ -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 = []
|
data/config/routes.rb
CHANGED
@@ -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
|
-
#
|
22
|
-
#
|
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|
|
data/lib/triannon/version.rb
CHANGED
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.
|
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-
|
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
|