ecommerce 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,4 +2,6 @@
2
2
  db/*.sqlite3
3
3
  log/*.log
4
4
  tmp/**/*
5
- scratch
5
+ scratch
6
+ config/ecommerce.yml
7
+ certs
@@ -2,9 +2,6 @@ class Cart < ActiveRecord::Base
2
2
  attr_reader :currency
3
3
  include ActionView::Helpers::NumberHelper
4
4
 
5
- # Needed to pass the order return path (order_confirmation_path) to paypal
6
- include Rails.application.routes.url_helpers
7
-
8
5
  has_many :cart_items
9
6
  # Because 'has_many :cart_items, :as => :items' does not appear to work
10
7
  def items ; self.cart_items ; end
@@ -81,8 +78,7 @@ class Cart < ActiveRecord::Base
81
78
  :cert_id => ECO['paypal']['cert_id'],
82
79
  :cmd => '_cart',
83
80
  :upload => 1,
84
- :weight => self.shipping_weight,
85
- :return => order_confirmation_url()
81
+ :weight => self.shipping_weight
86
82
  }
87
83
 
88
84
  self.items.each_with_index do |item, index|
Binary file
@@ -1,3 +1,3 @@
1
1
  module Ecommerce
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecommerce
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Younker
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-16 00:00:00 -07:00
18
+ date: 2011-04-17 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -88,7 +88,6 @@ files:
88
88
  - config/application.rb
89
89
  - config/boot.rb
90
90
  - config/database.yml
91
- - config/ecommerce.yml
92
91
  - config/environment.rb
93
92
  - config/environments/development.rb
94
93
  - config/environments/production.rb
@@ -103,6 +102,7 @@ files:
103
102
  - ecommerce-0.0.2.gem
104
103
  - ecommerce-0.0.3.gem
105
104
  - ecommerce-0.0.4.gem
105
+ - ecommerce-0.0.5.gem
106
106
  - ecommerce.gemspec
107
107
  - lib/ecommerce.rb
108
108
  - lib/ecommerce/ecommerce.rb
@@ -1,16 +0,0 @@
1
- development:
2
- # Sandbox : paypal-sandbox@28dev.com / asdfasdf
3
- # buyer : buyer_1301262667_per@28dev.com / 301262633
4
- # seller : seller_1301259322_biz@28dev.com / 301259292
5
- paypal:
6
- email: seller_1301259322_biz@28dev.com
7
- secret: foobar
8
- cert_id: PCHTSCQZLRAPU
9
- url: https://www.sandbox.paypal.com/cgi-bin/webscr
10
-
11
- production:
12
- paypal:
13
- email: seller_1277185454_biz@28dev.com
14
- secret: DVQQKEw5ZYWtpb
15
- cert_id: SMHGQTJ3UGNJ6
16
- url: https://www.sandbox.paypal.com/cgi-bin/webscr