praxis 0.10.0 → 0.10.1

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: 8ef88025b412d1a511b45aaeebc4da3dc77e26ba
4
- data.tar.gz: 12055f1821e6dbb2bf2db0db9243cc41c49ca8ab
3
+ metadata.gz: eb59e46b853495a60984f953e66b32484735bbe2
4
+ data.tar.gz: 70a1dac56fae430f1ef83fca9879d6f1e2e85227
5
5
  SHA512:
6
- metadata.gz: 3976e3f0b241efbad32a3b1b1ff65b0aaad3c9b6e6c7d38e00f611441f2f9c4ee2a75ea4c389cbe7a055795a6e8da0713d191f1d142310beaf7c4ca9a88265d5
7
- data.tar.gz: 8f609d4f6704949f59f6ab8fc35a9319909cec4ed90275abf03f2103fa1ddd11fb851a21a01fbf98ee00a4c6ad30b1d52542e33804ff94cb6957a532327b4468
6
+ metadata.gz: faa1f7c49da063995145e55ccfefd4f74687b4522f35613783aae4990b88cf82ad8c6da79192f12d43eda39c4057c8f387435513d8ff47b837a04a3685081422
7
+ data.tar.gz: aa5c73efd69e49cdde0129c7d5afcb245975b631a90313c5eb2240d50c5727c673a31a5cda3452e62e6a7e7632ba0734580ddb21c09fffc65c18fece9a8e28f9
@@ -123,7 +123,7 @@ module Praxis
123
123
  @precomputed_header_keys_for_rack ||= begin
124
124
  @headers.attributes.keys.each_with_object(Hash.new) do |key,hash|
125
125
  name = key.to_s
126
- name = "HTTP_#{name.upcase}" unless ( name == "CONTENT_TYPE" || name == "CONTENT_LENGTH" )
126
+ name = "HTTP_#{name.gsub('-','_').upcase}" unless ( name == "CONTENT_TYPE" || name == "CONTENT_LENGTH" )
127
127
  hash[name] = key
128
128
  end
129
129
  end
@@ -1,3 +1,3 @@
1
1
  module Praxis
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
@@ -200,7 +200,7 @@ RUBY
200
200
  Praxis::ApiDefinition.define do
201
201
  trait :versionable do
202
202
  headers do
203
- header :X_Api_Version, String, values: ['1.0'], required: true
203
+ key "X-Api-Version", String, values: ['1.0'], required: true
204
204
  end
205
205
  end
206
206
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: praxis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Blanquer