piggybak 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f3430a8d4e76dbc43ed199546b97ac24a1b9ac9
4
- data.tar.gz: 4ef8ae4ab5840909c68d83f532ddc5da024ddfc3
3
+ metadata.gz: 3a3e04625ac77678c260c682d46caea2666a1f09
4
+ data.tar.gz: 34960254b38cfdfb25277687ac0abb02ea8774d9
5
5
  SHA512:
6
- metadata.gz: 59e2adf96dda62643901045a825203b429177464387911ca46cf1a8e32afd315164d6f4b03d9227323e57612fbce677139c1bd0c3d9936f00d4075d05b046dd5
7
- data.tar.gz: 4e0eadce7da5ede88d06de3110332b767b66a2a72a4cb300e441c3400b3608d3a9032619a98fe5a4c3e6ee507857f7d83c61e26a2591708242615dc52854ea46
6
+ metadata.gz: 6f0129952e567782cd4dc5377ade33f65e36785671d94200c506402719437f0d73ef03f891806ca3a87b08ceeca48081341d1cc4b763a9b7176a9e030ded99d2
7
+ data.tar.gz: 2bbac1f4f6d2fe5426d3844a0ef6a4608c7938634fac6e303771b32c1fa53bf749aeffa6ec32fc9082e5e8af50995fd110ea23b33cb99199c6a6b57a3f645daa
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- piggybak (0.7.4)
4
+ piggybak (0.7.5)
5
5
  activemerchant
6
6
  countries
7
7
  rack-ssl-enforcer
@@ -5,6 +5,7 @@ class CreateLineItems < ActiveRecord::Migration
5
5
  t.integer :quantity, :null => false
6
6
  t.references :variant, :null => false
7
7
  t.decimal :total
8
+ t.timestamps
8
9
  end
9
10
  end
10
11
  end
@@ -1,11 +1,10 @@
1
1
  class AddPriceToLineItem < ActiveRecord::Migration
2
2
  def up
3
- add_column :line_items, :price, :decimal, :null => false, :default => 0.0
4
-
5
- change_table(:line_items) do |t|
6
- t.timestamps
3
+ Piggybak::LineItem.class_eval do
4
+ self.table_name = 'line_items'
7
5
  end
8
6
 
7
+ add_column :line_items, :price, :decimal, :null => false, :default => 0.0
9
8
  Piggybak::LineItem.all.each do |line_item|
10
9
  line_item.update_attribute(:price, line_item.total/line_item.quantity)
11
10
  end
@@ -18,9 +18,6 @@ class LineItemRearchitecture < ActiveRecord::Migration
18
18
  rename_column :line_items, :total, :price
19
19
  change_column :line_items, :sellable_id, :integer, :null => true
20
20
  add_column :line_items, :sort, :integer, :null => false, :default => 0
21
- change_table(:line_items) do |t|
22
- t.timestamps
23
- end
24
21
 
25
22
  add_column :shipments, :line_item_id, :integer
26
23
  add_column :payments, :line_item_id, :integer
@@ -1,3 +1,3 @@
1
1
  module Piggybak
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
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.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steph Skardal
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-15 00:00:00.000000000 Z
13
+ date: 2014-09-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: countries