facemock-oauth 0.0.1 → 0.0.2

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.
@@ -8,7 +8,7 @@ module Facemock
8
8
 
9
9
  def call(env)
10
10
  if env["PATH_INFO"] == Authentication.path && env["REQUEST_METHOD"] == "POST"
11
- raw_body = env['rack.input'].gets
11
+ raw_body = URI.unescape(env['rack.input'].gets)
12
12
  body = query_string_to_hash(raw_body)
13
13
  email = body["email"]
14
14
  password = body["pass"]
@@ -1,5 +1,5 @@
1
1
  module Facemock
2
2
  module OAuth
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ describe Facemock::OAuth::Authentication do
11
11
  let(:failed_path) { '/facemock/sign_in' }
12
12
  let(:email) { 'test@example.org' }
13
13
  let(:password) { 'password' }
14
- let(:body) { "email=#{email}&pass=#{password}" }
14
+ let(:body) { URI.escape("email=#{email}&pass=#{password}", "@&") }
15
15
  let(:content_type) { 'application/x-www-form-urlencoded' }
16
16
  let(:header) { { 'CONTENT_TYPE' => content_type } }
17
17
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Facemock::OAuth do
4
- let(:version) { '0.0.1' }
4
+ let(:version) { '0.0.2' }
5
5
 
6
6
  it 'should have a version number' do
7
7
  expect(Facemock::OAuth::VERSION).to eq version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facemock-oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  segments:
205
205
  - 0
206
- hash: 1427437800597443227
206
+ hash: 2698689373691770913
207
207
  required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  none: false
209
209
  requirements:
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  segments:
214
214
  - 0
215
- hash: 1427437800597443227
215
+ hash: 2698689373691770913
216
216
  requirements: []
217
217
  rubyforge_project:
218
218
  rubygems_version: 1.8.25