effective_orders 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +1 -1
- data/app/datatables/effective_customers_datatable.rb +1 -1
- data/app/datatables/effective_order_items_datatable.rb +7 -6
- data/app/datatables/effective_orders_datatable.rb +11 -19
- data/app/models/concerns/acts_as_purchasable.rb +4 -4
- data/app/models/validators/effective/sold_out_validator.rb +1 -1
- data/app/views/admin/orders/_actions.html.haml +1 -1
- data/db/migrate/01_create_effective_orders.rb.erb +1 -1
- data/lib/effective_orders.rb +1 -1
- data/lib/effective_orders/engine.rb +1 -1
- data/lib/effective_orders/version.rb +1 -1
- data/spec/dummy/log/development.log +82 -0
- data/spec/dummy/log/test.log +34 -0
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7006871350baa02cd389c691d50c31240809e934
|
4
|
+
data.tar.gz: 2881b82a65e145a785921e7b8dfc65f057a25bf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22755b105fc451ea5d7f0ee5d0a5392f46a4248a639f8d1df46c188f76408d96b6e1cd80bf0b3f21998334ed6d168dc292c223ceb9e351f807f9804a2164ca1d
|
7
|
+
data.tar.gz: 3928a9a2fe440a733be0e10bc99b2e021aff7dd8253e72dbf75f9500a45abb4e1be4547cadb467764634b6abe7bed8bcc511469ab9b3c9c4fe5bec3345c66b0d
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -77,7 +77,7 @@ the above command will add `products` table to you DB.
|
|
77
77
|
|
78
78
|
## High Level Overview
|
79
79
|
|
80
|
-
Your rails app creates and displays a list of `
|
80
|
+
Your rails app creates and displays a list of `acts_as_purchasable` objects, each with a `link_to_add_to_cart(object)`.
|
81
81
|
|
82
82
|
The user clicks one or more Add to Cart links and adds some purchasables to their cart.
|
83
83
|
|
@@ -23,7 +23,7 @@ unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
|
23
23
|
end
|
24
24
|
|
25
25
|
collection do
|
26
|
-
Effective::Customer.customers.
|
26
|
+
Effective::Customer.customers.distinct
|
27
27
|
.joins(:user, :subscriptions)
|
28
28
|
.select('customers.*, users.email AS email')
|
29
29
|
.select("array_to_string(array(#{Effective::Subscription.purchased.select('subscriptions.stripe_plan_id').where('subscriptions.customer_id = customers.id').to_sql}), ' ,') AS subscription_types")
|
@@ -10,6 +10,7 @@ unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
|
10
10
|
col :id, visible: false
|
11
11
|
|
12
12
|
col :order
|
13
|
+
|
13
14
|
# if effectiveorders.obfuscate_order_ids
|
14
15
|
# col(:order, type: :obfuscated_id) do |order_item|
|
15
16
|
# obfuscated_id = effective::order.obfuscate(order_item[:order_id])
|
@@ -22,18 +23,18 @@ unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
|
22
23
|
# end
|
23
24
|
|
24
25
|
unless attributes[:user_id]
|
25
|
-
col :email, sql_column: 'users.email', label: 'Buyer Email'
|
26
|
+
col :email, sql_column: 'users.email', label: 'Buyer Email' do |order_item|
|
26
27
|
link_to order_item[:email], (edit_admin_user_path(order_item[:user_id]) rescue admin_user_path(order_item[:user_id]) rescue '#')
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
30
31
|
if EffectiveOrders.require_billing_address && attributes[:user_id].blank?
|
31
|
-
col :buyer_name,
|
32
|
+
col :buyer_name, sort: false, label: 'Buyer Name' do |order_item|
|
32
33
|
(order_item[:buyer_name] || '').split('!!SEP!!').find(&:present?)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
36
|
-
col :purchase_state, sql_column: 'orders.purchase_state',
|
37
|
+
col :purchase_state, sql_column: 'orders.purchase_state', search: { collection: [%w(abandoned abandoned), [EffectiveOrders::PURCHASED, EffectiveOrders::PURCHASED], [EffectiveOrders::DECLINED, EffectiveOrders::DECLINED]], selected: EffectiveOrders::PURCHASED } do |order_item|
|
37
38
|
order_item[:purchase_state] || 'abandoned'
|
38
39
|
end
|
39
40
|
|
@@ -41,9 +42,9 @@ unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
|
41
42
|
order_item.quantity == 1 ? order_item.title : "#{order_item.title} (#{order_item.quantity} purchased)"
|
42
43
|
end
|
43
44
|
|
44
|
-
col :subtotal, as: :price
|
45
|
-
col :tax, as: :price
|
46
|
-
col :total, as: :price
|
45
|
+
# col :subtotal, as: :price
|
46
|
+
# col :tax, as: :price
|
47
|
+
# col :total, as: :price
|
47
48
|
|
48
49
|
col :created_at, visible: false
|
49
50
|
col :updated_at, visible: false
|
@@ -5,23 +5,19 @@ unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
|
5
5
|
|
6
6
|
col :purchased_at
|
7
7
|
|
8
|
-
col :id
|
9
|
-
link_to order.to_param, effective_orders.admin_order_path(order)
|
10
|
-
end
|
8
|
+
col :id
|
11
9
|
|
12
|
-
# Don't display email or buyer_name column if this is for a specific user
|
13
10
|
if attributes[:user_id].blank?
|
14
|
-
col :
|
11
|
+
col :user, label: 'Buyer', search: :string, sort: :email do |order|
|
15
12
|
link_to order.user.email, (edit_admin_user_path(order.user) rescue admin_user_path(order.user) rescue '#')
|
16
13
|
end
|
17
14
|
|
18
|
-
if EffectiveOrders.use_address_full_name
|
19
|
-
|
15
|
+
if EffectiveOrders.require_billing_address && EffectiveOrders.use_address_full_name
|
16
|
+
val :buyer_name, visible: false do |order|
|
20
17
|
order.billing_address.try(:full_name)
|
21
18
|
end
|
22
|
-
|
23
|
-
|
24
|
-
col :buyer_name, sql_column: 'users.*' do |order|
|
19
|
+
else
|
20
|
+
val :buyer_name, visible: false do |order|
|
25
21
|
order.user.to_s
|
26
22
|
end
|
27
23
|
end
|
@@ -36,7 +32,7 @@ unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
|
36
32
|
end
|
37
33
|
|
38
34
|
col :purchase_state, label: 'State', search: { collection: purchase_state_filter_values } do |order|
|
39
|
-
order.purchase_state ||
|
35
|
+
order.purchase_state || EffectiveOrders::ABANDONED
|
40
36
|
end
|
41
37
|
|
42
38
|
col :order_items
|
@@ -64,22 +60,18 @@ unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
|
64
60
|
end
|
65
61
|
|
66
62
|
collection do
|
67
|
-
|
68
|
-
.joins(:user)
|
69
|
-
.includes(:addresses)
|
70
|
-
.includes(:user)
|
71
|
-
.includes(:order_items)
|
63
|
+
scope = Effective::Order.unscoped.includes(:addresses, :order_items, :user)
|
72
64
|
|
73
65
|
if EffectiveOrders.orders_collection_scope.respond_to?(:call)
|
74
|
-
|
66
|
+
scope = EffectiveOrders.orders_collection_scope.call(scope)
|
75
67
|
end
|
76
68
|
|
77
|
-
attributes[:user_id].present? ?
|
69
|
+
attributes[:user_id].present? ? scope.where(user_id: attributes[:user_id]) : scope
|
78
70
|
end
|
79
71
|
|
80
72
|
def purchase_state_filter_values
|
81
73
|
[
|
82
|
-
|
74
|
+
[EffectiveOrders::ABANDONED, nil],
|
83
75
|
[EffectiveOrders::PURCHASED, EffectiveOrders::PURCHASED],
|
84
76
|
[EffectiveOrders::DECLINED, EffectiveOrders::DECLINED],
|
85
77
|
[EffectiveOrders::PENDING, EffectiveOrders::PENDING]
|
@@ -21,16 +21,16 @@ module ActsAsPurchasable
|
|
21
21
|
# Database max integer value is 2147483647. So let's round that down and use a max/min of $20 million (2000000000)
|
22
22
|
validates :price, presence: true, numericality: { less_than_or_equal_to: 2000000000, message: 'maximum price is $20,000,000' }
|
23
23
|
|
24
|
-
validates :tax_exempt, inclusion: {in: [true, false]}
|
24
|
+
validates :tax_exempt, inclusion: { in: [true, false] }
|
25
25
|
|
26
26
|
# These are breaking on the check for quanitty_enabled?. More research is due
|
27
27
|
validates :quantity_purchased, numericality: {allow_nil: true}, if: proc { |purchasable| (purchasable.quantity_enabled? rescue false) }
|
28
28
|
validates :quantity_max, numericality: {allow_nil: true}, if: proc { |purchasable| (purchasable.quantity_enabled? rescue false) }
|
29
29
|
|
30
|
-
scope :purchased, -> { joins(
|
31
|
-
scope :purchased_by, lambda { |user| joins(
|
30
|
+
scope :purchased, -> { joins(order_items: :order).where(orders: {purchase_state: EffectiveOrders::PURCHASED}).distinct }
|
31
|
+
scope :purchased_by, lambda { |user| joins(order_items: :order).where(orders: {user_id: user.try(:id), purchase_state: EffectiveOrders::PURCHASED}).distinct }
|
32
32
|
scope :sold, -> { purchased() }
|
33
|
-
scope :sold_by, lambda { |user| joins(
|
33
|
+
scope :sold_by, lambda { |user| joins(order_items: :order).where(order_items: {seller_id: user.try(:id)}).where(orders: {purchase_state: EffectiveOrders::PURCHASED}).distinct }
|
34
34
|
|
35
35
|
scope :not_purchased, -> { where('id NOT IN (?)', purchased.pluck(:id).presence || [0]) }
|
36
36
|
scope :not_purchased_by, lambda { |user| where('id NOT IN (?)', purchased_by(user).pluck(:id).presence || [0]) }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= link_to (
|
1
|
+
= link_to (datatable.try(:admin_namespace?) ? effective_orders.admin_order_path(order) : effective_orders.order_path(order)), title: 'View' do
|
2
2
|
%span.glyphicon.glyphicon-eye-open
|
3
3
|
|
4
4
|
- if (order.purchased? == false) && (EffectiveOrders.authorized?(controller, :admin, :effective_orders) rescue false)
|
data/lib/effective_orders.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'haml-rails'
|
2
1
|
require 'simple_form'
|
3
2
|
require 'effective_addresses'
|
4
3
|
require 'effective_orders/engine'
|
@@ -6,6 +5,7 @@ require 'effective_orders/version'
|
|
6
5
|
require 'effective_orders/app_checkout_service'
|
7
6
|
|
8
7
|
module EffectiveOrders
|
8
|
+
ABANDONED = 'abandoned'
|
9
9
|
PURCHASED = 'purchased'
|
10
10
|
DECLINED = 'declined'
|
11
11
|
PENDING = 'pending'
|
@@ -29,7 +29,7 @@ module EffectiveOrders
|
|
29
29
|
end
|
30
30
|
|
31
31
|
# Set up our default configuration options.
|
32
|
-
initializer
|
32
|
+
initializer 'effective_orders.defaults', before: :load_config_initializers do |app|
|
33
33
|
eval File.read("#{config.root}/config/effective_orders.rb")
|
34
34
|
end
|
35
35
|
|
@@ -80,3 +80,85 @@
|
|
80
80
|
[1m[36m (2.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
81
81
|
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
82
82
|
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('4')[0m
|
83
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m
|
84
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
85
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m
|
86
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
87
|
+
FROM sqlite_master
|
88
|
+
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
89
|
+
UNION ALL
|
90
|
+
SELECT sql
|
91
|
+
FROM sqlite_temp_master
|
92
|
+
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
93
|
+
|
94
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m
|
95
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
96
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")[0m
|
97
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
98
|
+
FROM sqlite_master
|
99
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
100
|
+
UNION ALL
|
101
|
+
SELECT sql
|
102
|
+
FROM sqlite_temp_master
|
103
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
104
|
+
|
105
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")[0m
|
106
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
107
|
+
FROM sqlite_master
|
108
|
+
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
109
|
+
UNION ALL
|
110
|
+
SELECT sql
|
111
|
+
FROM sqlite_temp_master
|
112
|
+
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
113
|
+
|
114
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
115
|
+
FROM sqlite_master
|
116
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
117
|
+
UNION ALL
|
118
|
+
SELECT sql
|
119
|
+
FROM sqlite_temp_master
|
120
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
121
|
+
[0m
|
122
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
|
123
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "cart_items_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
124
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
|
125
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "custom_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
126
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar, "stripe_active_card" varchar, "stripe_connect_access_token" varchar, "created_at" datetime, "updated_at" datetime)
|
127
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "title" varchar, "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
128
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
|
129
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
130
|
+
FROM sqlite_master
|
131
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
132
|
+
UNION ALL
|
133
|
+
SELECT sql
|
134
|
+
FROM sqlite_temp_master
|
135
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
136
|
+
[0m
|
137
|
+
[1m[35m (1.7ms)[0m CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
|
138
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
139
|
+
FROM sqlite_master
|
140
|
+
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
141
|
+
UNION ALL
|
142
|
+
SELECT sql
|
143
|
+
FROM sqlite_temp_master
|
144
|
+
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
145
|
+
[0m
|
146
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
147
|
+
FROM sqlite_master
|
148
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
149
|
+
UNION ALL
|
150
|
+
SELECT sql
|
151
|
+
FROM sqlite_temp_master
|
152
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
153
|
+
|
154
|
+
[1m[36m (1.5ms)[0m [1mCREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")[0m
|
155
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar, "purchased_at" datetime, "payment" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "note" text, "note_internal" text, "note_to_buyer" text, "total" integer, "tax_rate" decimal(6,3), "subtotal" integer, "tax" integer, "payment_provider" varchar, "payment_card" varchar)
|
156
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")[0m
|
157
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
158
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "product_with_float_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" decimal DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
159
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar, "stripe_subscription_id" varchar, "stripe_coupon_id" varchar, "title" varchar, "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
|
160
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [0m
|
161
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
162
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
163
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
164
|
+
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('4')[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -21,3 +21,37 @@
|
|
21
21
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
22
22
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
23
23
|
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
24
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
25
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
26
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
27
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
28
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
29
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
30
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
31
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
32
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
33
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
34
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
35
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
36
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
37
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
38
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
39
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
40
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
41
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
42
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
43
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
44
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
45
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
46
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
47
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
48
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
49
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
50
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
51
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
52
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
53
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
54
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
55
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
56
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
57
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: haml-rails
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: sass-rails
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|