triannon 0.4.2 → 0.4.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2102031aa5a20dc77e3ba1956520a2f48f1d2753
|
|
4
|
+
data.tar.gz: c99336415b461a6acec866a6555da19ef00b0c44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 804d9258559bab83616b0d68e5b73d1404ff052eee62daeee17d1095a1bbd839c30972daabcb87e77834fbd3e6dd96b8913890936ea47793c3960c52b78fe8da
|
|
7
|
+
data.tar.gz: 1a1e9f0aa7e61938cce576c854c6c23939d6753d60e3d35147d3e3f7800160043cec7fddf0381637782df1ca86cf823b44d4f1001386a5f1b10c24c2d403ecbe
|
|
@@ -56,7 +56,7 @@ module Triannon
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
if @annotation.save
|
|
59
|
-
redirect_to @annotation, notice: 'Annotation was successfully created.'
|
|
59
|
+
redirect_to @annotation, status: 201, notice: 'Annotation was successfully created.'
|
|
60
60
|
else
|
|
61
61
|
render :new
|
|
62
62
|
end
|
|
@@ -75,7 +75,7 @@ module Triannon
|
|
|
75
75
|
# DELETE /annotations/annotations/1
|
|
76
76
|
def destroy
|
|
77
77
|
@annotation.destroy
|
|
78
|
-
redirect_to annotations_url, notice: 'Annotation was successfully destroyed.'
|
|
78
|
+
redirect_to annotations_url, status: 204, notice: 'Annotation was successfully destroyed.'
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
private
|
|
@@ -100,7 +100,7 @@ module Triannon
|
|
|
100
100
|
def save
|
|
101
101
|
# check if valid?
|
|
102
102
|
graph
|
|
103
|
-
@
|
|
103
|
+
@id = Triannon::LdpCreator.create self
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
def destroy
|
|
@@ -111,6 +111,7 @@ module Triannon
|
|
|
111
111
|
oa_graph = Triannon::LdpLoader.load key
|
|
112
112
|
anno = Triannon::Annotation.new
|
|
113
113
|
anno.graph = oa_graph
|
|
114
|
+
anno.id = key
|
|
114
115
|
anno
|
|
115
116
|
end
|
|
116
117
|
|
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.
|
|
4
|
+
version: 0.4.3
|
|
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:
|
|
13
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|