rakuna 0.2.0 → 0.3.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: 1ea6fe06b521e8e9937731f4bd71bf1646c58992
4
- data.tar.gz: d2dd5702dba10459d7e1aa9f43c24662fe7a617d
3
+ metadata.gz: 1eb202f51227fe04598fa5d38b4740502aba09e1
4
+ data.tar.gz: 81ea86c6bbff91d3a3cd578e8d22acdef470287d
5
5
  SHA512:
6
- metadata.gz: 98f5a909d8eb198373e67f15b0f77835bc2904ec0f5529b64644a1bba193ce43447242eb32ef560ca0b82d5db83e6e6ee060f8522020223ffdb936a62eed2d95
7
- data.tar.gz: 2db7861543e823af383eda60ae1f460fcc63a3e2550120ec66b4f01669494e27d0f125e4d80c2dc34897350510198e26b197a0f83c6890a9f3e402fa009820e8
6
+ metadata.gz: 607f0f6ad483520ecc3cbba6f572c31366075a1b336d44ae5a424e2e895366e85f917401507533c028648553413ac2854989e2843b1b2879bc7a653e9a6e4a14
7
+ data.tar.gz: 723b4aaa7ca2dbe827547fa2c8094d0f4008b5e07a13f5dc031a961d1924ca24d4212f194baaf6df23834a46ec5d8aac4774c026c8803af7d75d6b3fe4cdd8ff
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/lib/rakuna.rb CHANGED
@@ -1 +1 @@
1
- require 'rakuna/content/json'
1
+ require 'rakuna/content'
@@ -0,0 +1,2 @@
1
+ require 'rakuna/content/json'
2
+ require 'rakuna/content/validation'
@@ -0,0 +1,14 @@
1
+ module Rakuna
2
+ module Content
3
+ # Mixin to handle payload validation.
4
+ module Validation
5
+ def malformed_request?
6
+ if request.post?
7
+ false unless valid?
8
+ else
9
+ false
10
+ end
11
+ end
12
+ end
13
+ end
14
+ 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.2.0 ruby lib
5
+ # stub: rakuna 0.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rakuna"
9
- s.version = "0.2.0"
9
+ s.version = "0.3.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"]
@@ -28,7 +28,9 @@ Gem::Specification.new do |s|
28
28
  "Rakefile",
29
29
  "VERSION",
30
30
  "lib/rakuna.rb",
31
+ "lib/rakuna/content.rb",
31
32
  "lib/rakuna/content/json.rb",
33
+ "lib/rakuna/content/validation.rb",
32
34
  "rakuna.gemspec",
33
35
  "spec/rakuna_spec.rb",
34
36
  "spec/spec_helper.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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
@@ -195,7 +195,9 @@ files:
195
195
  - Rakefile
196
196
  - VERSION
197
197
  - lib/rakuna.rb
198
+ - lib/rakuna/content.rb
198
199
  - lib/rakuna/content/json.rb
200
+ - lib/rakuna/content/validation.rb
199
201
  - rakuna.gemspec
200
202
  - spec/rakuna_spec.rb
201
203
  - spec/spec_helper.rb