muck-commerce 0.2.3 → 0.2.4

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.3
1
+ 0.2.4
@@ -26,6 +26,7 @@ class Muck::BillingInformationsController < ApplicationController
26
26
  end
27
27
 
28
28
  def update
29
+ @success = false
29
30
  if @billing_information.update_attributes(params[:billing_information])
30
31
  if MuckCommerce::Configure.cim_enabled?
31
32
  # update billing info in the CIM
@@ -33,9 +34,12 @@ class Muck::BillingInformationsController < ApplicationController
33
34
  @billing_information.billable.order_transactions.push(response)
34
35
  if response.success?
35
36
  flash[:notice] = translate('muck.commerce.billing_information_updated_friendly')
37
+ @success = true
36
38
  else
37
39
  flash[:notice] = translate('muck.commerce.billing_information_update_error_friendly', :error => response.message)
38
40
  end
41
+ else
42
+ @success = true
39
43
  end
40
44
  end
41
45
  render :template => 'billing_informations/edit'
@@ -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.3"
8
+ s.version = "0.2.4"
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-04-19}
12
+ s.date = %q{2010-04-22}
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
- - 3
9
- version: 0.2.3
8
+ - 4
9
+ version: 0.2.4
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-04-19 00:00:00 -06:00
18
+ date: 2010-04-22 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency