foxycart_helpers 1.0.0 → 1.0.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: 1b6e59326aa6c2092550190903c0e195bd09ba12
4
- data.tar.gz: 786de45e35135ae337095c80303a25fc8d2733f0
3
+ metadata.gz: 7afd801389f0dd4d0ff57b32897e04c43dbafa40
4
+ data.tar.gz: 91c421060a077d33518cd0cf79ba8f1eab5b5cd6
5
5
  SHA512:
6
- metadata.gz: c29b6f02bc62fe6b80c7992f62bc000fd7c349869dfd4cd9bd6c419b5b78636c9d24103ee9e029fd9cc00012d349a89480a9290ea8de28164a5f12dcbdf6643c
7
- data.tar.gz: 6d21663aa68e7be07ce5ee3901a36d90fee0dfb45f5f96d8c554e5f91d76efdb39b840421e1bdc920d3d104d16627f5e629b218f12f615cb8f8db21916afc234
6
+ metadata.gz: f7a315f7f336dcb332d3ca5967571910eb343cbdd89fcb3b0fc30459405e98a9e957ab298873920e79ca695cbe8f92ab79392cd388582580aa56c55916c270f2
7
+ data.tar.gz: ffb225cdc630246836cf48604a8bd5ea2006b8253416b89d6a5152566803b364a288b7cdb3db6c3b9800672de501511e8dc0a6e0997c377b58b7f600c79347ac
@@ -7,10 +7,7 @@ module FoxycartHelpers
7
7
  class Datafeed
8
8
 
9
9
  def self.from_params(params)
10
- decoded = CGI::unescape params
11
-
12
- trimmed = decoded.gsub(/FoxyData=/, '')
13
- encrypted = CGI::unescape trimmed
10
+ encrypted = CGI::unescape params
14
11
 
15
12
  rc4 = RC4.new FoxycartHelpers.configuration.api_key
16
13
  decrypted = rc4.decrypt encrypted
@@ -18,7 +18,7 @@ module FoxycartHelpers
18
18
  return @app.call(env) unless req.path_info == config.mount_point
19
19
  return response 405 unless req.post?
20
20
 
21
- parse_and_respond req.body.read
21
+ parse_and_respond req.POST['FoxyData']
22
22
  end
23
23
 
24
24
  private
@@ -1,3 +1,3 @@
1
1
  module FoxycartHelpers
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foxycart_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Coleman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-15 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4