raisin 0.0.4 → 0.0.5

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.
@@ -7,7 +7,7 @@ module Raisin
7
7
  method_name = options.key?(:as) ? options[:as].to_s : extract_method_name(path, :#{via})
8
8
 
9
9
  klass = self.const_set method_name.camelize, Class.new(@_klass, &block)
10
-
10
+
11
11
  if current_namespace && current_namespace.expose?
12
12
  current_namespace.exposures.each do |name, b|
13
13
  klass.send(:expose, name, &b)
@@ -9,11 +9,8 @@ module Raisin
9
9
 
10
10
  def call(env)
11
11
  @env = env
12
- if verify_accept_header
13
- @app.call(@env)
14
- else
15
- [406, {}, []]
16
- end
12
+ verify_accept_header
13
+ @app.call(@env)
17
14
  end
18
15
 
19
16
  private
@@ -1,3 +1,3 @@
1
1
  module Raisin
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raisin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-20 00:00:00.000000000 Z
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: An opiniated micro-framework to easily build elegant API on top of Rails
15
15
  email: