malbec 0.1.0 → 0.2.0

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: 74d419b14b41ecdc5ce07a12546ef16edab62b8e
4
- data.tar.gz: 2ca4ae2ad6d12064b97cce217f5a40a8fd06a7e6
3
+ metadata.gz: 20c77962f23086a0a71bd5a218e50be0a54c9a48
4
+ data.tar.gz: 6d5f4261ed78cfd24f3bb5fef0d09134b681bc37
5
5
  SHA512:
6
- metadata.gz: 1d247dd18c571f6a67699ca9d927e3b2365e34eae010b0e4a4e06a7f2bf383e35ab225e4f1ee64e9b5a5e5c4b9ec81462f0f6a3f735548d8b5e81dc94a8b1d2e
7
- data.tar.gz: ab375e319226799a14891707a8faf0da164ffc3f919111d43977236aac9b5c44ec0b911a6cb57c265fa5f02d32dbcc93aece5865d14bb6eb01989df80c6080c8
6
+ metadata.gz: 118589ba700d92738e57d46820d68ab76933ccce204ad3f968144f11ae4b4f521351ab337545f383ef3a6a5f6801c9d9defb8154ccb119d78169b8bb1322996b
7
+ data.tar.gz: 04d66c82d97f8dbd910d4be2e316bc67020c9d8e84dcaf3161000ce097a962f347e6b969f14a3d8432cbb627145263e356d09d626c3d2e75ce08376ac832df0f
@@ -1,17 +1,29 @@
1
+ require 'active_support'
2
+ require 'offsite_payments'
3
+
4
+ include OffsitePayments::Integrations
1
5
 
2
6
  module Malbec
3
7
  class NotificationMapper
4
8
  def initialize(raw_data)
5
- @notify = OffsitePayments::Notification.new(raw_data)
9
+ @notify = Paypal::Notification.new(raw_data)
6
10
  end
7
11
 
8
- %w(item_name item_number).each do |m|
12
+ %w(item_name item_number payer_id payer_email).each do |m|
9
13
  class_eval %(
10
14
  def #{m}
11
15
  (@notify.params['#{m}'])
12
16
  end
13
17
  )
14
18
  end
19
+
20
+ %w(complete? transaction_id gross status test? currency params invoice account).each do |m|
21
+ class_eval %(
22
+ def #{m}
23
+ (@notify.send(:#{m}))
24
+ end
25
+ )
26
+ end
15
27
  end
16
28
 
17
29
  end
@@ -1,3 +1,3 @@
1
1
  module Malbec
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: malbec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bala Paranj