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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db90e7dfaecba0d3d95887bb7a165d45793210c7
4
- data.tar.gz: d4cea5629dbba4dc153a56410912c5540740236f
3
+ metadata.gz: 7006871350baa02cd389c691d50c31240809e934
4
+ data.tar.gz: 2881b82a65e145a785921e7b8dfc65f057a25bf2
5
5
  SHA512:
6
- metadata.gz: 424ad971b23b9dd732a247dd05c252ed2d10a1aacb7fea47ce6533b79ed69256ad1b49a2c6662b87de858d6258f82f2146485fe2df7c24d9afd246851c35b7cd
7
- data.tar.gz: 745f4d71411babbe7bfc97aeadd48647a9dc706b4dc4680f3829ea17296202f30463a888f7f4413c43d3aac99ea0db914c8af8024bd8ba3f5f1052d22a31fd61
6
+ metadata.gz: 22755b105fc451ea5d7f0ee5d0a5392f46a4248a639f8d1df46c188f76408d96b6e1cd80bf0b3f21998334ed6d168dc292c223ceb9e351f807f9804a2164ca1d
7
+ data.tar.gz: 3928a9a2fe440a733be0e10bc99b2e021aff7dd8253e72dbf75f9500a45abb4e1be4547cadb467764634b6abe7bed8bcc511469ab9b3c9c4fe5bec3345c66b0d
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2016 Code and Effect Inc.
1
+ Copyright 2017 Code and Effect Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 `acts_as_purchsable` objects, each with a `link_to_add_to_cart(object)`.
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.uniq
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', do |order_item|
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, sortable: false, label: 'Buyer Name', do |order_item|
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', filter: { collection: [%w(abandoned abandoned), [EffectiveOrders::PURCHASED, EffectiveOrders::PURCHASED], [EffectiveOrders::DECLINED, EffectiveOrders::DECLINED]], selected: EffectiveOrders::PURCHASED } do |order_item|
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 do |order|
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 :email, sql_column: 'users.email', label: 'Buyer Email' do |order|
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
- col :buyer_name, sql_column: 'addresses.full_name' do |order|
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
- elsif # Not using address full name
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 || 'abandoned'
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
- collection = Effective::Order.unscoped
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
- collection = EffectiveOrders.orders_collection_scope.call(collection)
66
+ scope = EffectiveOrders.orders_collection_scope.call(scope)
75
67
  end
76
68
 
77
- attributes[:user_id].present? ? collection.where(user_id: attributes[:user_id]) : collection
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
- %w(abandoned nil),
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(:order_items).joins(:orders).where(orders: {purchase_state: EffectiveOrders::PURCHASED}).uniq }
31
- scope :purchased_by, lambda { |user| joins(:order_items).joins(:orders).where(orders: {user_id: user.try(:id), purchase_state: EffectiveOrders::PURCHASED}).uniq }
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(:order_items).joins(:orders).where(order_items: {seller_id: user.try(:id)}).where(orders: {purchase_state: EffectiveOrders::PURCHASED}).uniq }
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,7 +1,7 @@
1
1
  module Effective
2
2
  class SoldOutValidator < ActiveModel::Validator
3
3
  def validate(record)
4
- record.errors[:base] << "sold out" if record.sold_out?
4
+ record.errors[:base] << 'sold out' if record.sold_out?
5
5
  end
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
- = link_to (datatables_admin_path? ? effective_orders.admin_order_path(order) : effective_orders.order_path(order)), title: 'View' do
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)
@@ -1,4 +1,4 @@
1
- class CreateEffectiveOrders < ActiveRecord::Migration
1
+ class CreateEffectiveOrders < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  create_table <%= @orders_table_name %> do |t|
4
4
  t.integer :user_id
@@ -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 "effective_orders.defaults", before: :load_config_initializers do |app|
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '2.2.3'.freeze
2
+ VERSION = '2.2.4'.freeze
3
3
  end
@@ -80,3 +80,85 @@
80
80
   (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
81
81
   (0.2ms) SELECT version FROM "schema_migrations"
82
82
   (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
83
+  (1.0ms) CREATE 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) 
84
+  (0.1ms) select sqlite_version(*)
85
+  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")
86
+  (0.1ms) 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
+  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
95
+  (1.2ms) 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
+  (0.8ms) CREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")
97
+  (0.1ms) 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
+  (0.7ms) CREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")
106
+  (0.1ms) 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
+  (0.1ms)  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
+ 
122
+  (0.9ms) CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
123
+  (2.6ms) CREATE 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) 
124
+  (1.4ms) CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
125
+  (3.4ms) CREATE 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) 
126
+  (1.3ms) 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
+  (2.0ms) CREATE 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) 
128
+  (0.8ms) CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
129
+  (0.2ms)  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
+ 
137
+  (1.7ms) CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
138
+  (0.1ms)  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
+ 
146
+  (0.1ms) 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
+  (1.5ms) CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
155
+  (1.4ms) 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
+  (1.3ms) CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
157
+  (1.4ms) 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
+  (1.3ms) CREATE 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) 
159
+  (1.2ms) 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
+  (2.9ms) CREATE 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) 
161
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
162
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
163
+  (0.2ms) SELECT version FROM "schema_migrations"
164
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4')
@@ -21,3 +21,37 @@
21
21
   (0.1ms) SELECT MAX("orders"."id") FROM "orders"
22
22
   (0.2ms) SELECT MAX("orders"."id") FROM "orders"
23
23
   (0.1ms) SELECT MAX("orders"."id") FROM "orders"
24
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
25
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
26
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
27
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
28
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
29
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
30
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
31
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
32
+  (0.3ms) SELECT MAX("orders"."id") FROM "orders"
33
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
34
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
35
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
36
+  (0.3ms) SELECT MAX("orders"."id") FROM "orders"
37
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
38
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
39
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
40
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
41
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
42
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
43
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
44
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
45
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
46
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
47
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
48
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
49
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
50
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
51
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
52
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
53
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
54
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
55
+  (0.2ms) SELECT MAX("orders"."id") FROM "orders"
56
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
57
+  (0.1ms) SELECT MAX("orders"."id") FROM "orders"
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.3
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-04-05 00:00:00.000000000 Z
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