nimbleshop_paypalwp 0.0.3 → 0.0.4.beta1
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.
- data/app/models/nimbleshop_paypalwp/paypalwp.rb +8 -0
- metadata +7 -13
@@ -7,11 +7,19 @@ module NimbleshopPaypalwp
|
|
7
7
|
|
8
8
|
validates :merchant_email, email: true, presence: true
|
9
9
|
|
10
|
+
before_validation :strip_attributes
|
11
|
+
|
10
12
|
private
|
11
13
|
|
12
14
|
def set_mode
|
13
15
|
self.mode ||= 'test'
|
14
16
|
end
|
15
17
|
|
18
|
+
# This is needed because https://github.com/nimbleshop/nimbleshop/blob/master/nimbleshop_core/lib/nimbleshop/core_ext/activerecord_base.rb
|
19
|
+
# acts only on core attributes and not on store_accessors.
|
20
|
+
def strip_attributes
|
21
|
+
self.merchant_email = merchant_email.strip unless merchant_email.nil?
|
22
|
+
end
|
23
|
+
|
16
24
|
end
|
17
25
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nimbleshop_paypalwp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4.beta1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Neeraj Singh
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemerchant
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.0.
|
69
|
+
version: 0.0.4.beta1
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.0.
|
77
|
+
version: 0.0.4.beta1
|
78
78
|
description: Provides Paypal web payments standard support to nimbleshop
|
79
79
|
email:
|
80
80
|
- neeraj@bigbinary.com
|
@@ -111,18 +111,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- - ! '>='
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
|
-
segments:
|
115
|
-
- 0
|
116
|
-
hash: -519744303512776515
|
117
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
115
|
none: false
|
119
116
|
requirements:
|
120
|
-
- - ! '
|
117
|
+
- - ! '>'
|
121
118
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
123
|
-
segments:
|
124
|
-
- 0
|
125
|
-
hash: -519744303512776515
|
119
|
+
version: 1.3.1
|
126
120
|
requirements: []
|
127
121
|
rubyforge_project:
|
128
122
|
rubygems_version: 1.8.24
|