piggybak 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.4.0
@@ -1,6 +1,8 @@
1
1
  var tax_total = 0;
2
+ var shipping_els;
2
3
 
3
4
  $(function() {
5
+ shipping_els = $('#piggybak_order_shipping_address_attributes_state_id,#piggybak_order_shipping_address_attributes_country_id,#piggybak_order_shipping_address_attributes_zip');
4
6
  piggybak.initialize_listeners();
5
7
  piggybak.update_shipping_options($('#piggybak_order_shipping_address_attributes_state_id'), function() {
6
8
  $('#piggybak_order_shipments_attributes_0_shipping_method_id').val(previous_shipping);
@@ -10,7 +12,7 @@ $(function() {
10
12
 
11
13
  var piggybak = {
12
14
  initialize_listeners: function() {
13
- $('#piggybak_order_shipping_address_attributes_state_id').live('change', function() {
15
+ shipping_els.live('change', function() {
14
16
  piggybak.update_shipping_options($(this));
15
17
  });
16
18
  $('#piggybak_order_billing_address_attributes_state_id').live('change', function() {
@@ -21,6 +23,7 @@ var piggybak = {
21
23
  });
22
24
  $('#shipping_address #copy').click(function() {
23
25
  piggybak.copy_from_billing();
26
+ piggybak.update_shipping_options($('#piggybak_order_shipping_address_attributes_state_id'));
24
27
  return false;
25
28
  });
26
29
  return;
@@ -43,8 +46,14 @@ var piggybak = {
43
46
  var shipping_data = {};
44
47
  $('#shipping_address input, #shipping_address select').each(function(i, j) {
45
48
  var id = $(j).attr('id');
46
- id = id.replace("piggybak_order_shipping_address_attributes_", '');
47
- shipping_data[id] = $(j).val();
49
+ if(typeof(id) !== 'undefined') {
50
+ id = id.replace("piggybak_order_shipping_address_attributes_", '');
51
+ if($(j).is(':checkbox')) {
52
+ shipping_data[id] = $(j).is(':checked');
53
+ } else {
54
+ shipping_data[id] = $(j).val();
55
+ }
56
+ }
48
57
  });
49
58
  $.ajax({
50
59
  url: shipping_lookup,
@@ -8,7 +8,7 @@ module Piggybak
8
8
  begin
9
9
  ActiveRecord::Base.transaction do
10
10
  @order = Piggybak::Order.new(params[:piggybak_order])
11
- @order.initialize_user(current_user)
11
+ @order.initialize_user(current_user, true)
12
12
 
13
13
  @order.add_line_items(@cart)
14
14
 
@@ -24,12 +24,12 @@ module Piggybak
24
24
  end
25
25
  rescue Exception => e
26
26
  if @order.errors.empty?
27
- @order.errors.add "", "Your order could not go through. Please try again."
27
+ @order.errors[:base] << "Your order could not go through. Please try again."
28
28
  end
29
29
  end
30
30
  else
31
31
  @order = Piggybak::Order.new
32
- @order.initialize_user(current_user)
32
+ @order.initialize_user(current_user, false)
33
33
  end
34
34
  end
35
35
 
@@ -45,7 +45,7 @@ module Piggybak
45
45
  end
46
46
 
47
47
  def list
48
- redirect_to root if current_user.nil?
48
+ redirect_to root_url if current_user.nil?
49
49
  end
50
50
 
51
51
  def download
@@ -1,10 +1,11 @@
1
1
  module Piggybak
2
2
  class Notifier < ActionMailer::Base
3
- default :from => Piggybak.config.email_sender
3
+ default :from => Piggybak.config.email_sender,
4
+ :cc => Piggybak.config.order_cc
4
5
 
5
6
  def order_notification(order)
6
7
  @order = order
7
-
8
+
8
9
  mail(:to => order.email,
9
10
  :subject => "Order ##{@order.id}")
10
11
  end
@@ -1,8 +1,10 @@
1
1
  module Piggybak
2
2
  class Country < ActiveRecord::Base
3
+ attr_accessible :name, :abbr
3
4
  has_many :states
4
5
 
5
6
  scope :shipping, where(:active_shipping => true)
6
7
  scope :billing, where(:active_billing => true)
8
+ default_scope :order => 'name ASC'
7
9
  end
8
10
  end
@@ -13,7 +13,7 @@ module Piggybak
13
13
  accepts_nested_attributes_for :shipping_address, :allow_destroy => true
14
14
  accepts_nested_attributes_for :shipments, :allow_destroy => true
15
15
  accepts_nested_attributes_for :line_items, :allow_destroy => true
16
- accepts_nested_attributes_for :payments # test :allow_destroy
16
+ accepts_nested_attributes_for :payments
17
17
 
18
18
  validates_presence_of :status
19
19
  validates_presence_of :email
@@ -38,7 +38,7 @@ module Piggybak
38
38
  end
39
39
  end
40
40
 
41
- def initialize_user(user)
41
+ def initialize_user(user, on_post)
42
42
  if user
43
43
  self.user = user
44
44
  self.email = user.email
@@ -155,5 +155,9 @@ module Piggybak
155
155
  def admin_label
156
156
  "Order ##{self.id}"
157
157
  end
158
+
159
+ def subtotal
160
+ self.line_items.inject(0) { |subtotal, li| subtotal + li.total }
161
+ end
158
162
  end
159
163
  end
@@ -17,11 +17,11 @@ module Piggybak
17
17
  end
18
18
 
19
19
  def month_enum
20
- 1.upto(12)
20
+ 1.upto(12).to_a
21
21
  end
22
22
 
23
23
  def year_enum
24
- Time.now.year.upto(Time.now.year + 10)
24
+ Time.now.year.upto(Time.now.year + 10).to_a
25
25
  end
26
26
 
27
27
  def credit_card
@@ -39,12 +39,12 @@ module Piggybak
39
39
  if self.new_record?
40
40
  payment_gateway = self.payment_method.klass.constantize
41
41
  gateway = payment_gateway::KLASS.new(self.payment_method.key_values)
42
- credit_card = ActiveMerchant::Billing::CreditCard.new(self.credit_card)
43
- gateway_response = gateway.authorize(self.order.total_due*100, credit_card, :address => self.order.avs_address)
42
+ p_credit_card = ActiveMerchant::Billing::CreditCard.new(self.credit_card)
43
+ gateway_response = gateway.authorize(self.order.total_due*100, p_credit_card, :address => self.order.avs_address)
44
44
  if gateway_response.success?
45
45
  self.attributes = { :total => self.order.total_due,
46
46
  :transaction_id => payment_gateway.transaction_id(gateway_response) }
47
- gateway.capture(1000, gateway_response.authorization)
47
+ gateway.capture(self.order.total_due*100, gateway_response.authorization, { :credit_card => p_credit_card } )
48
48
  return true
49
49
  else
50
50
  self.errors.add :payment_method_id, gateway_response.message
@@ -9,7 +9,7 @@ module Piggybak
9
9
  accepts_nested_attributes_for :shipping_method_values, :allow_destroy => true
10
10
 
11
11
  validates_each :shipping_method_values do |record, attr, value|
12
- if record.klass
12
+ if record.klass.present?
13
13
  calculator = record.klass.constantize
14
14
  metadata_keys = value.collect { |v| v.key }.sort
15
15
  if calculator::KEYS.sort != metadata_keys
@@ -1,5 +1,6 @@
1
1
  module Piggybak
2
2
  class State < ActiveRecord::Base
3
+ attr_accessible :name, :abbr, :country
3
4
  belongs_to :country
4
5
  end
5
6
  end
@@ -24,9 +24,7 @@ module Piggybak
24
24
  if object.is_a?(Cart)
25
25
  taxable_total = object.total
26
26
  else
27
- object.line_items.each do |line_item|
28
- taxable_total = line_item.total
29
- end
27
+ taxable_total = order.subtotal
30
28
  end
31
29
 
32
30
  (method.metadata.detect { |m| m.key == "rate" }.value.to_f * taxable_total).to_c
@@ -86,12 +86,12 @@
86
86
  <%= payment.label :month %>
87
87
  <% if @order.errors.keys.include?("payments.verification_value".to_sym) %>
88
88
  <span class="field_with_errors">
89
- <%= payment.select :month, 1.upto(12) %> /
90
- <%= payment.select :year, Time.now.year.upto(Time.now.year + 10) %>
89
+ <%= payment.select :month, 1.upto(12).to_a %> /
90
+ <%= payment.select :year, Time.now.year.upto(Time.now.year + 10).to_a %>
91
91
  </span>
92
92
  <% else -%>
93
- <%= payment.select :month, 1.upto(12) %> /
94
- <%= payment.select :year, Time.now.year.upto(Time.now.year + 10) %>
93
+ <%= payment.select :month, 1.upto(12).to_a %> /
94
+ <%= payment.select :year, Time.now.year.upto(Time.now.year + 10).to_a %>
95
95
  <% end -%>
96
96
  </div>
97
97
  <% end -%>
@@ -1,7 +1,7 @@
1
1
  <% if form.object.new_record? %>
2
2
  N/A
3
3
  <% else -%>
4
- <table cellpadding="0" cellspacing="0">
4
+ <table cellpadding="5" cellspacing="0">
5
5
  <tr>
6
6
  <td>Status</td>
7
7
  <td><%= form.object.status %></td>
@@ -10,18 +10,8 @@ module Piggybak
10
10
  module ClassMethods
11
11
  def acts_as_orderer
12
12
  has_many :piggybak_orders, :foreign_key => "user_id", :class_name => "::Piggybak::Order"
13
-
14
- include Piggybak::ActsAsOrderer::Base::InstanceMethods
15
13
  end
16
14
  end
17
-
18
- module InstanceMethods
19
-
20
- def factory_name
21
- "this is an example instance method"
22
- end
23
-
24
- end # InstanceMethods
25
15
  end
26
16
  end
27
17
  end
@@ -1,5 +1,5 @@
1
1
  class Float
2
2
  def to_c
3
- ((self*100).to_i).to_f/100
3
+ ((self*100).ceil.to_i).to_f/100
4
4
  end
5
5
  end
@@ -106,7 +106,6 @@ module Piggybak
106
106
 
107
107
  config.model Piggybak::Address do
108
108
  label "Address"
109
- parent Piggybak::Order
110
109
  object_label_method :admin_label
111
110
  visible false
112
111
 
@@ -146,7 +145,6 @@ module Piggybak
146
145
  end
147
146
 
148
147
  config.model Piggybak::Shipment do
149
- parent Piggybak::Order
150
148
  object_label_method :admin_label
151
149
  visible false
152
150
 
@@ -166,7 +164,6 @@ module Piggybak
166
164
  end
167
165
 
168
166
  config.model Piggybak::Payment do
169
- parent Piggybak::Order
170
167
  object_label_method :admin_label
171
168
  visible false
172
169
 
@@ -247,7 +244,7 @@ module Piggybak
247
244
  end
248
245
 
249
246
  config.model Piggybak::ShippingMethod do
250
- parent Piggybak::PaymentMethod
247
+ navigation_label "Configuration"
251
248
  object_label_method :admin_label
252
249
  edit do
253
250
  field :description do
@@ -279,7 +276,7 @@ module Piggybak
279
276
  end
280
277
 
281
278
  config.model Piggybak::TaxMethod do
282
- parent Piggybak::PaymentMethod
279
+ navigation_label "Configuration"
283
280
  object_label_method :admin_label
284
281
  edit do
285
282
  field :description
@@ -313,6 +310,7 @@ module Piggybak
313
310
  navigation_label "Geodata"
314
311
  weight 3
315
312
  list do
313
+ sort_by :name
316
314
  field :name
317
315
  field :abbr
318
316
  end
@@ -325,7 +323,7 @@ module Piggybak
325
323
  end
326
324
 
327
325
  config.model Piggybak::State do
328
- parent Piggybak::Country
326
+ navigation_label "Geodata"
329
327
  label "States"
330
328
  list do
331
329
  field :name
@@ -341,7 +339,7 @@ module Piggybak
341
339
 
342
340
  config.model Piggybak::Variant do
343
341
  label "Variant"
344
- parent Piggybak::Order
342
+ navigation_label "Orders"
345
343
  object_label_method :admin_label
346
344
  edit do
347
345
  field :item do
@@ -7,9 +7,11 @@ module Piggybak
7
7
  attr_accessor :default_country
8
8
  attr_accessor :activemerchant_mode
9
9
  attr_accessor :email_sender
10
+ attr_accessor :order_cc
10
11
 
11
12
  def reset
12
13
  @email_sender = "support@piggybak.org"
14
+ @order_cc = nil
13
15
 
14
16
  @payment_calculators = ["::Piggybak::PaymentCalculator::Fake",
15
17
  "::Piggybak::PaymentCalculator::AuthorizeNet"]
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "piggybak"
8
- s.version = "0.3.2"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steph Skardal", "Brian Buchalter"]
12
- s.date = "2012-02-06"
12
+ s.date = "2012-06-21"
13
13
  s.description = "Mountable ecommerce"
14
14
  s.email = "steph@endpoint.com"
15
15
  s.extra_rdoc_files = [
@@ -155,9 +155,9 @@ Gem::Specification.new do |s|
155
155
  s.homepage = "http://github.com/stephskardal/piggybak"
156
156
  s.licenses = ["MIT"]
157
157
  s.require_paths = ["lib"]
158
- s.rubygems_version = "1.8.15"
158
+ s.rubygems_version = "1.8.11"
159
159
  s.summary = "Mountable ecommerce"
160
- s.test_files = ["spec/spec_helper.rb", "spec/dummy_app", "spec/dummy_app/script", "spec/dummy_app/script/rails", "spec/dummy_app/config", "spec/dummy_app/config/locales", "spec/dummy_app/config/locales/en.yml", "spec/dummy_app/config/locales/devise.en.yml", "spec/dummy_app/config/database.yml", "spec/dummy_app/config/application.rb", "spec/dummy_app/config/boot.rb", "spec/dummy_app/config/initializers", "spec/dummy_app/config/initializers/quiet_assets.rb", "spec/dummy_app/config/initializers/inflections.rb", "spec/dummy_app/config/initializers/session_store.rb", "spec/dummy_app/config/initializers/wrap_parameters.rb", "spec/dummy_app/config/initializers/secret_token.rb", "spec/dummy_app/config/initializers/mime_types.rb", "spec/dummy_app/config/initializers/backtrace_silencers.rb", "spec/dummy_app/config/initializers/devise.rb", "spec/dummy_app/config/routes.rb", "spec/dummy_app/config/environments", "spec/dummy_app/config/environments/development.rb", "spec/dummy_app/config/environments/test.rb", "spec/dummy_app/config/environments/production.rb", "spec/dummy_app/config/environment.rb", "spec/dummy_app/log", "spec/dummy_app/log/test.log", "spec/dummy_app/Rakefile", "spec/dummy_app/Gemfile", "spec/dummy_app/config.ru", "spec/dummy_app/db", "spec/dummy_app/db/seeds.rb", "spec/dummy_app/db/migrate", "spec/dummy_app/db/migrate/20120119002503_create_images.rb", "spec/dummy_app/db/migrate/20120119003643_devise_create_users.rb", "spec/dummy_app/db/development.sqlite3", "spec/dummy_app/db/schema.rb", "spec/dummy_app/app", "spec/dummy_app/app/assets", "spec/dummy_app/app/assets/javascripts", "spec/dummy_app/app/assets/javascripts/images.js.coffee", "spec/dummy_app/app/assets/javascripts/application.js", "spec/dummy_app/app/assets/stylesheets", "spec/dummy_app/app/assets/stylesheets/images.css.scss", "spec/dummy_app/app/assets/stylesheets/application.css", "spec/dummy_app/app/assets/images", "spec/dummy_app/app/assets/images/rails.png", "spec/dummy_app/app/helpers", "spec/dummy_app/app/helpers/application_helper.rb", "spec/dummy_app/app/helpers/images_helper.rb", "spec/dummy_app/app/mailers", "spec/dummy_app/app/controllers", "spec/dummy_app/app/controllers/application_controller.rb", "spec/dummy_app/app/controllers/images_controller.rb", "spec/dummy_app/app/models", "spec/dummy_app/app/models/user.rb", "spec/dummy_app/app/models/image.rb", "spec/dummy_app/app/views", "spec/dummy_app/app/views/layouts", "spec/dummy_app/app/views/layouts/application.html.erb", "spec/dummy_app/app/views/images", "spec/dummy_app/app/views/images/index.html", "spec/dummy_app/public", "spec/dummy_app/public/422.html", "spec/dummy_app/public/favicon.ico", "spec/dummy_app/public/404.html", "spec/dummy_app/public/500.html", "spec/dummy_app/public/robots.txt", "spec/dummy_app/lib", "spec/dummy_app/lib/assets", "spec/dummy_app/lib/tasks", "spec/dummy_app/Gemfile.lock", "spec/factories.rb", "spec/TODO", "spec/models", "spec/models/order_spec.rb", "spec/models/line_item_spec.rb", "spec/database_helpers.rb"]
160
+ s.test_files = ["spec/spec_helper.rb", "spec/dummy_app", "spec/dummy_app/db", "spec/dummy_app/db/migrate", "spec/dummy_app/db/migrate/20120119002503_create_images.rb", "spec/dummy_app/db/migrate/20120119003643_devise_create_users.rb", "spec/dummy_app/db/schema.rb", "spec/dummy_app/db/seeds.rb", "spec/dummy_app/app", "spec/dummy_app/app/helpers", "spec/dummy_app/app/helpers/application_helper.rb", "spec/dummy_app/app/helpers/images_helper.rb", "spec/dummy_app/app/views", "spec/dummy_app/app/views/layouts", "spec/dummy_app/app/views/layouts/application.html.erb", "spec/dummy_app/app/views/images", "spec/dummy_app/app/views/images/index.html", "spec/dummy_app/app/mailers", "spec/dummy_app/app/models", "spec/dummy_app/app/models/user.rb", "spec/dummy_app/app/models/image.rb", "spec/dummy_app/app/assets", "spec/dummy_app/app/assets/javascripts", "spec/dummy_app/app/assets/javascripts/application.js", "spec/dummy_app/app/assets/javascripts/images.js.coffee", "spec/dummy_app/app/assets/stylesheets", "spec/dummy_app/app/assets/stylesheets/application.css", "spec/dummy_app/app/assets/stylesheets/images.css.scss", "spec/dummy_app/app/assets/images", "spec/dummy_app/app/assets/images/rails.png", "spec/dummy_app/app/controllers", "spec/dummy_app/app/controllers/application_controller.rb", "spec/dummy_app/app/controllers/images_controller.rb", "spec/dummy_app/Gemfile.lock", "spec/dummy_app/config.ru", "spec/dummy_app/script", "spec/dummy_app/script/rails", "spec/dummy_app/Rakefile", "spec/dummy_app/lib", "spec/dummy_app/lib/tasks", "spec/dummy_app/lib/assets", "spec/dummy_app/public", "spec/dummy_app/public/robots.txt", "spec/dummy_app/public/favicon.ico", "spec/dummy_app/public/404.html", "spec/dummy_app/public/500.html", "spec/dummy_app/public/422.html", "spec/dummy_app/Gemfile", "spec/dummy_app/config", "spec/dummy_app/config/routes.rb", "spec/dummy_app/config/application.rb", "spec/dummy_app/config/initializers", "spec/dummy_app/config/initializers/wrap_parameters.rb", "spec/dummy_app/config/initializers/quiet_assets.rb", "spec/dummy_app/config/initializers/mime_types.rb", "spec/dummy_app/config/initializers/secret_token.rb", "spec/dummy_app/config/initializers/backtrace_silencers.rb", "spec/dummy_app/config/initializers/inflections.rb", "spec/dummy_app/config/initializers/devise.rb", "spec/dummy_app/config/initializers/session_store.rb", "spec/dummy_app/config/database.yml", "spec/dummy_app/config/environments", "spec/dummy_app/config/environments/test.rb", "spec/dummy_app/config/environments/production.rb", "spec/dummy_app/config/environments/development.rb", "spec/dummy_app/config/locales", "spec/dummy_app/config/locales/en.yml", "spec/dummy_app/config/locales/devise.en.yml", "spec/dummy_app/config/environment.rb", "spec/dummy_app/config/boot.rb", "spec/factories.rb", "spec/models", "spec/models/order_spec.rb", "spec/models/line_item_spec.rb", "spec/TODO", "spec/database_helpers.rb"]
161
161
 
162
162
  if s.respond_to? :specification_version then
163
163
  s.specification_version = 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-06 00:00:00.000000000 Z
13
+ date: 2012-06-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: countries
17
- requirement: &81011260 !ruby/object:Gem::Requirement
17
+ requirement: &20524820 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *81011260
25
+ version_requirements: *20524820
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &81010700 !ruby/object:Gem::Requirement
28
+ requirement: &20523260 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *81010700
36
+ version_requirements: *20523260
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: jeweler
39
- requirement: &81010240 !ruby/object:Gem::Requirement
39
+ requirement: &20522700 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.6.4
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *81010240
47
+ version_requirements: *20522700
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &81009710 !ruby/object:Gem::Requirement
50
+ requirement: &20009740 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *81009710
58
+ version_requirements: *20009740
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rspec-rails
61
- requirement: &81095400 !ruby/object:Gem::Requirement
61
+ requirement: &20008580 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 2.7.0
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *81095400
69
+ version_requirements: *20008580
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: factory_girl
72
- requirement: &81094860 !ruby/object:Gem::Requirement
72
+ requirement: &20007200 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *81094860
80
+ version_requirements: *20007200
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: diff-lcs
83
- requirement: &81094180 !ruby/object:Gem::Requirement
83
+ requirement: &20005580 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *81094180
91
+ version_requirements: *20005580
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: shoulda
94
- requirement: &81093850 !ruby/object:Gem::Requirement
94
+ requirement: &20004820 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *81093850
102
+ version_requirements: *20004820
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: simplecov
105
- requirement: &81093610 !ruby/object:Gem::Requirement
105
+ requirement: &20004220 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *81093610
113
+ version_requirements: *20004220
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: tzinfo
116
- requirement: &81093330 !ruby/object:Gem::Requirement
116
+ requirement: &20003700 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *81093330
124
+ version_requirements: *20003700
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: devise
127
- requirement: &81093080 !ruby/object:Gem::Requirement
127
+ requirement: &20003060 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *81093080
135
+ version_requirements: *20003060
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: rails_admin
138
- requirement: &81092810 !ruby/object:Gem::Requirement
138
+ requirement: &20549680 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: '0'
144
144
  type: :runtime
145
145
  prerelease: false
146
- version_requirements: *81092810
146
+ version_requirements: *20549680
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: devise
149
- requirement: &81092510 !ruby/object:Gem::Requirement
149
+ requirement: &20547320 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ! '>='
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: '0'
155
155
  type: :runtime
156
156
  prerelease: false
157
- version_requirements: *81092510
157
+ version_requirements: *20547320
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: activemerchant
160
- requirement: &81092230 !ruby/object:Gem::Requirement
160
+ requirement: &20545340 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: '0'
166
166
  type: :runtime
167
167
  prerelease: false
168
- version_requirements: *81092230
168
+ version_requirements: *20545340
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: countries
171
- requirement: &81091940 !ruby/object:Gem::Requirement
171
+ requirement: &20543080 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ! '>='
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: '0'
177
177
  type: :runtime
178
178
  prerelease: false
179
- version_requirements: *81091940
179
+ version_requirements: *20543080
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: rspec
182
- requirement: &81091480 !ruby/object:Gem::Requirement
182
+ requirement: &20559540 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ! '>='
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
- version_requirements: *81091480
190
+ version_requirements: *20559540
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: rspec-rails
193
- requirement: &81090970 !ruby/object:Gem::Requirement
193
+ requirement: &20557520 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ! '>='
@@ -198,10 +198,10 @@ dependencies:
198
198
  version: '0'
199
199
  type: :development
200
200
  prerelease: false
201
- version_requirements: *81090970
201
+ version_requirements: *20557520
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: diff-lcs
204
- requirement: &81090440 !ruby/object:Gem::Requirement
204
+ requirement: &20553660 !ruby/object:Gem::Requirement
205
205
  none: false
206
206
  requirements:
207
207
  - - ! '>='
@@ -209,10 +209,10 @@ dependencies:
209
209
  version: '0'
210
210
  type: :development
211
211
  prerelease: false
212
- version_requirements: *81090440
212
+ version_requirements: *20553660
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: factory_girl
215
- requirement: &81089950 !ruby/object:Gem::Requirement
215
+ requirement: &20578140 !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
218
218
  - - ! '>='
@@ -220,10 +220,10 @@ dependencies:
220
220
  version: '0'
221
221
  type: :development
222
222
  prerelease: false
223
- version_requirements: *81089950
223
+ version_requirements: *20578140
224
224
  - !ruby/object:Gem::Dependency
225
225
  name: shoulda
226
- requirement: &81089470 !ruby/object:Gem::Requirement
226
+ requirement: &20576860 !ruby/object:Gem::Requirement
227
227
  none: false
228
228
  requirements:
229
229
  - - ! '>='
@@ -231,7 +231,7 @@ dependencies:
231
231
  version: '0'
232
232
  type: :development
233
233
  prerelease: false
234
- version_requirements: *81089470
234
+ version_requirements: *20576860
235
235
  description: Mountable ecommerce
236
236
  email: steph@endpoint.com
237
237
  executables: []
@@ -374,8 +374,6 @@ files:
374
374
  - spec/models/line_item_spec.rb
375
375
  - spec/models/order_spec.rb
376
376
  - spec/spec_helper.rb
377
- - spec/dummy_app/log/test.log
378
- - spec/dummy_app/db/development.sqlite3
379
377
  homepage: http://github.com/stephskardal/piggybak
380
378
  licenses:
381
379
  - MIT
@@ -391,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
391
389
  version: '0'
392
390
  segments:
393
391
  - 0
394
- hash: 107645907
392
+ hash: -1141121576035722607
395
393
  required_rubygems_version: !ruby/object:Gem::Requirement
396
394
  none: false
397
395
  requirements:
@@ -400,61 +398,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
400
398
  version: '0'
401
399
  requirements: []
402
400
  rubyforge_project:
403
- rubygems_version: 1.8.15
401
+ rubygems_version: 1.8.11
404
402
  signing_key:
405
403
  specification_version: 3
406
404
  summary: Mountable ecommerce
407
405
  test_files:
408
406
  - spec/spec_helper.rb
409
- - spec/dummy_app/script/rails
410
- - spec/dummy_app/config/locales/en.yml
411
- - spec/dummy_app/config/locales/devise.en.yml
412
- - spec/dummy_app/config/database.yml
413
- - spec/dummy_app/config/application.rb
414
- - spec/dummy_app/config/boot.rb
415
- - spec/dummy_app/config/initializers/quiet_assets.rb
416
- - spec/dummy_app/config/initializers/inflections.rb
417
- - spec/dummy_app/config/initializers/session_store.rb
418
- - spec/dummy_app/config/initializers/wrap_parameters.rb
419
- - spec/dummy_app/config/initializers/secret_token.rb
420
- - spec/dummy_app/config/initializers/mime_types.rb
421
- - spec/dummy_app/config/initializers/backtrace_silencers.rb
422
- - spec/dummy_app/config/initializers/devise.rb
423
- - spec/dummy_app/config/routes.rb
424
- - spec/dummy_app/config/environments/development.rb
425
- - spec/dummy_app/config/environments/test.rb
426
- - spec/dummy_app/config/environments/production.rb
427
- - spec/dummy_app/config/environment.rb
428
- - spec/dummy_app/log/test.log
429
- - spec/dummy_app/Rakefile
430
- - spec/dummy_app/Gemfile
431
- - spec/dummy_app/config.ru
432
- - spec/dummy_app/db/seeds.rb
433
407
  - spec/dummy_app/db/migrate/20120119002503_create_images.rb
434
408
  - spec/dummy_app/db/migrate/20120119003643_devise_create_users.rb
435
- - spec/dummy_app/db/development.sqlite3
436
409
  - spec/dummy_app/db/schema.rb
437
- - spec/dummy_app/app/assets/javascripts/images.js.coffee
410
+ - spec/dummy_app/db/seeds.rb
411
+ - spec/dummy_app/app/helpers/application_helper.rb
412
+ - spec/dummy_app/app/helpers/images_helper.rb
413
+ - spec/dummy_app/app/views/layouts/application.html.erb
414
+ - spec/dummy_app/app/views/images/index.html
415
+ - spec/dummy_app/app/models/user.rb
416
+ - spec/dummy_app/app/models/image.rb
438
417
  - spec/dummy_app/app/assets/javascripts/application.js
439
- - spec/dummy_app/app/assets/stylesheets/images.css.scss
418
+ - spec/dummy_app/app/assets/javascripts/images.js.coffee
440
419
  - spec/dummy_app/app/assets/stylesheets/application.css
420
+ - spec/dummy_app/app/assets/stylesheets/images.css.scss
441
421
  - spec/dummy_app/app/assets/images/rails.png
442
- - spec/dummy_app/app/helpers/application_helper.rb
443
- - spec/dummy_app/app/helpers/images_helper.rb
444
422
  - spec/dummy_app/app/controllers/application_controller.rb
445
423
  - spec/dummy_app/app/controllers/images_controller.rb
446
- - spec/dummy_app/app/models/user.rb
447
- - spec/dummy_app/app/models/image.rb
448
- - spec/dummy_app/app/views/layouts/application.html.erb
449
- - spec/dummy_app/app/views/images/index.html
450
- - spec/dummy_app/public/422.html
424
+ - spec/dummy_app/Gemfile.lock
425
+ - spec/dummy_app/config.ru
426
+ - spec/dummy_app/script/rails
427
+ - spec/dummy_app/Rakefile
428
+ - spec/dummy_app/public/robots.txt
451
429
  - spec/dummy_app/public/favicon.ico
452
430
  - spec/dummy_app/public/404.html
453
431
  - spec/dummy_app/public/500.html
454
- - spec/dummy_app/public/robots.txt
455
- - spec/dummy_app/Gemfile.lock
432
+ - spec/dummy_app/public/422.html
433
+ - spec/dummy_app/Gemfile
434
+ - spec/dummy_app/config/routes.rb
435
+ - spec/dummy_app/config/application.rb
436
+ - spec/dummy_app/config/initializers/wrap_parameters.rb
437
+ - spec/dummy_app/config/initializers/quiet_assets.rb
438
+ - spec/dummy_app/config/initializers/mime_types.rb
439
+ - spec/dummy_app/config/initializers/secret_token.rb
440
+ - spec/dummy_app/config/initializers/backtrace_silencers.rb
441
+ - spec/dummy_app/config/initializers/inflections.rb
442
+ - spec/dummy_app/config/initializers/devise.rb
443
+ - spec/dummy_app/config/initializers/session_store.rb
444
+ - spec/dummy_app/config/database.yml
445
+ - spec/dummy_app/config/environments/test.rb
446
+ - spec/dummy_app/config/environments/production.rb
447
+ - spec/dummy_app/config/environments/development.rb
448
+ - spec/dummy_app/config/locales/en.yml
449
+ - spec/dummy_app/config/locales/devise.en.yml
450
+ - spec/dummy_app/config/environment.rb
451
+ - spec/dummy_app/config/boot.rb
456
452
  - spec/factories.rb
457
- - spec/TODO
458
453
  - spec/models/order_spec.rb
459
454
  - spec/models/line_item_spec.rb
455
+ - spec/TODO
460
456
  - spec/database_helpers.rb