webs 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('webs', '0.3.3') do |p|
6
+ Echoe.new('webs', '0.3.4') do |p|
7
7
  p.description = "Reusable webs stuff."
8
8
  p.url = "https://colczak@github.com/websdev/websgem.git"
9
9
  p.author = "Chuck Olczak"
data/lib/helper/params.rb CHANGED
@@ -71,9 +71,11 @@ module Webs
71
71
  fw_sig_site.to_i if !fw_sig_site.blank?
72
72
  end
73
73
 
74
- def webs_params
75
- params.select{ |k,v| k.starts_with?("fw_sig_") }.concat(request.headers.select{ |k,v| k.starts_with?("fw_sig_") }).sort
76
- end
74
+ def webs_params
75
+ headerParams = request.headers.select{ |k,v| k.downcase.starts_with?("http_fw_sig_") }.map{|k,v| [k[5..k.length].downcase, v] }
76
+ bodyParams = params.select{ |k,v| k.starts_with?("fw_sig_") }
77
+ headerParams.concat(bodyParams).sort
78
+ end
77
79
 
78
80
  # The full url of the app. Since in APP_NAME can be different in different environments this is currently
79
81
  # defined in a global var, usually in the respective env file, however APP_NAME should be moved to something
data/lib/webs.rb CHANGED
@@ -7,7 +7,7 @@ require dir + 'helper/params'
7
7
  require dir + 'helper/tags'
8
8
 
9
9
  module Webs
10
- VERSION = '0.3.3'.freeze
10
+ VERSION = '0.3.4'.freeze
11
11
 
12
12
  def self.app_title
13
13
  APP_NAME.titleize
data/webs.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{webs}
5
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Chuck Olczak"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: webs
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.3
5
+ version: 0.3.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chuck Olczak