triannon 0.4.2 → 0.4.3

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: ec5c63fec8ee04d1f247c4804a3227b6b3171bac
4
- data.tar.gz: b56c06505be1f81eba22e490c139f526bface06a
3
+ metadata.gz: 2102031aa5a20dc77e3ba1956520a2f48f1d2753
4
+ data.tar.gz: c99336415b461a6acec866a6555da19ef00b0c44
5
5
  SHA512:
6
- metadata.gz: a25814d29d28ed25b89b87f994afb2fb61ad308ad2079758d5e25c4ce4cf7c0378c0b53c89b9c60e04045c4febe9a362b1ab7d3a1a2b55b3b527ef3fa5c2c398
7
- data.tar.gz: dd50677466ed2e149ef98db1d2591bf98fac050b9e6ac323763ff6e5a8d0385057b705e4fa63cec128d9b497c6570335c189246b92bface4d1497a59bd0c400b
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
- @key = Triannon::LdpCreator.create self
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
 
@@ -1,3 +1,3 @@
1
1
  module Triannon
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
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.4.2
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: 2014-12-04 00:00:00.000000000 Z
13
+ date: 2015-01-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails