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 +4 -4
- data/lib/foxycart_helpers/datafeed.rb +1 -4
- data/lib/foxycart_helpers/middleware.rb +1 -1
- data/lib/foxycart_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7afd801389f0dd4d0ff57b32897e04c43dbafa40
|
4
|
+
data.tar.gz: 91c421060a077d33518cd0cf79ba8f1eab5b5cd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-rc4
|