muck-commerce 0.2.5 → 0.2.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -224,7 +224,7 @@ module ActiveRecord
224
224
  result.reference = response.authorization
225
225
  result.message = response.message
226
226
  result.params = response.params
227
- result.test = response.test?
227
+ result.test = response.test?
228
228
  rescue ActiveMerchant::ActiveMerchantError => e
229
229
  result.success = false
230
230
  result.reference = nil
@@ -243,6 +243,7 @@ module ActiveRecord
243
243
  module InstanceMethods
244
244
 
245
245
  def direct_message
246
+ return '' if self.params.blank?
246
247
  self.params['direct_response']['message']
247
248
  end
248
249
 
@@ -3,9 +3,9 @@ Factory.sequence :sku do |n|
3
3
  end
4
4
 
5
5
  Factory.define :billing_information do |f|
6
- f.first_name { Factory.next(:name) }
7
- f.last_name { Factory.next(:name) }
8
- f.name { Factory.next(:name) }
6
+ f.first_name 'test'
7
+ f.last_name 'guy'
8
+ f.name 'test guy'
9
9
  f.company { Factory.next(:name) }
10
10
  f.address1 { Factory.next(:address) }
11
11
  f.city { Factory.next(:name) }
@@ -23,8 +23,9 @@ Factory.define :billing_information do |f|
23
23
  end
24
24
 
25
25
  Factory.define :live_billing_information, :class => BillingInformation do |f|
26
- f.first_name { Factory.next(:name) }
27
- f.last_name { Factory.next(:name) }
26
+ f.first_name 'test'
27
+ f.last_name 'guy'
28
+ f.name 'test guy'
28
29
  f.address1 { Factory.next(:address) }
29
30
  f.city { Factory.next(:name) }
30
31
  f.state {|a| a.association(:state) }
@@ -41,8 +42,9 @@ Factory.define :live_billing_information, :class => BillingInformation do |f|
41
42
  end
42
43
 
43
44
  Factory.define :ach_billing, :class => BillingInformation do |f|
44
- f.first_name { Factory.next(:name) }
45
- f.last_name { Factory.next(:name) }
45
+ f.first_name 'test'
46
+ f.last_name 'guy'
47
+ f.name 'test guy'
46
48
  f.address1 { Factory.next(:address) }
47
49
  f.city { Factory.next(:name) }
48
50
  f.state {|a| a.association(:state) }
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-commerce}
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin"]
12
- s.date = %q{2010-05-05}
12
+ s.date = %q{2010-05-14}
13
13
  s.description = %q{Add ecommerce functionality to your muck project. This includes integration with Paypal and Authorize.net. This gem uses active merchant and so adding other gateways should be simple.}
14
14
  s.email = %q{justin@tatemae.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Justin Ball
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-05 00:00:00 -06:00
18
+ date: 2010-05-14 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency