cbraspag 0.9.0 → 0.9.1
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/Gemfile.lock +1 -1
- data/lib/cbraspag/core/customer.rb +3 -2
- data/lib/cbraspag/core/order.rb +2 -1
- data/lib/cbraspag/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
|
@@ -11,7 +11,9 @@ module Braspag
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def convert_to(method)
|
|
14
|
-
|
|
14
|
+
data = {}
|
|
15
|
+
data = self.send("to_#{method}") if self.respond_to?("to_#{method}")
|
|
16
|
+
data
|
|
15
17
|
end
|
|
16
18
|
|
|
17
19
|
def to_authorize
|
|
@@ -26,7 +28,6 @@ module Braspag
|
|
|
26
28
|
:customer_id => self.document.to_s,
|
|
27
29
|
:emails => self.email.to_s
|
|
28
30
|
}
|
|
29
|
-
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
def populate!(method)
|
data/lib/cbraspag/core/order.rb
CHANGED
|
@@ -147,7 +147,8 @@ module Braspag
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
def convert_to(method)
|
|
150
|
-
data =
|
|
150
|
+
data = {}
|
|
151
|
+
data = self.send("to_#{method}") if self.respond_to?("to_#{method}")
|
|
151
152
|
data.merge!(self.customer.convert_to(method)) if self.customer
|
|
152
153
|
data
|
|
153
154
|
end
|
data/lib/cbraspag/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cbraspag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2012-10-
|
|
13
|
+
date: 2012-10-23 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: active_attr
|