rakuna 0.5.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8b78d7f63277b51639ec08ef8554b0cfa5ef534
4
- data.tar.gz: 1b2947acdef78ed277d288a537672fccf1c74347
3
+ metadata.gz: 9b744840539e9c4efdc506d188b8c6c80a87c540
4
+ data.tar.gz: 516447847a63a01756be9f5026c31d2bdc15fa4f
5
5
  SHA512:
6
- metadata.gz: 6b4a2391d3930ebe6cb85837a0713e7753d55a093288a7ec334c4171dd8e8b96f1036a9c43818b5f25ebc0ff9e84242fb81d906644f282ca6c7274d03332de38
7
- data.tar.gz: 4da2df4a4b46a6c33fcdbd02b73f49acac1df334bfdce1e9146a2a9f88d43362abfcdb6b4e0f42dd3a4265c305c68db56bf1e489c8d6ca082326033863a678b1
6
+ metadata.gz: de29ea71cd47852adf23eb265af1bb58d5be434afa40b712ab91af56787342cd4dda1c1bfe38713837a6bc0a704e08dcf38b327b5aa0a1e4a760d6bdd30ce203
7
+ data.tar.gz: a60ff3a058afb6c1647d7df2aba51c1d1c640e125ac8ea26c7177627a417aff4e42683529f4a40217ff4dc55a73054dc180c350b78ad39ecac3a409b006435b2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
@@ -1,2 +1,3 @@
1
1
  require 'rakuna/resource/action'
2
+ require 'rakuna/resource/collection'
2
3
  require 'rakuna/resource/item'
@@ -0,0 +1,16 @@
1
+ require 'webmachine/resource'
2
+
3
+ module Rakuna
4
+ module Resource
5
+ # Collection Resources contain multiple resources, and can be added to.
6
+ class Collection < Webmachine::Resource
7
+ def allowed_methods
8
+ %w(HEAD GET POST)
9
+ end
10
+
11
+ def post_is_create?
12
+ true
13
+ end
14
+ end
15
+ end
16
+ end
data/rakuna.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: rakuna 0.5.0 ruby lib
5
+ # stub: rakuna 0.6.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rakuna"
9
- s.version = "0.5.0"
9
+ s.version = "0.6.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -33,6 +33,7 @@ Gem::Specification.new do |s|
33
33
  "lib/rakuna/content/validation.rb",
34
34
  "lib/rakuna/resource.rb",
35
35
  "lib/rakuna/resource/action.rb",
36
+ "lib/rakuna/resource/collection.rb",
36
37
  "lib/rakuna/resource/item.rb",
37
38
  "rakuna.gemspec",
38
39
  "spec/rakuna_spec.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakuna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
@@ -214,6 +214,7 @@ files:
214
214
  - lib/rakuna/content/validation.rb
215
215
  - lib/rakuna/resource.rb
216
216
  - lib/rakuna/resource/action.rb
217
+ - lib/rakuna/resource/collection.rb
217
218
  - lib/rakuna/resource/item.rb
218
219
  - rakuna.gemspec
219
220
  - spec/rakuna_spec.rb