summaryrefslogtreecommitdiff
path: root/app/models/solidus_subscriptions
diff options
context:
space:
mode:
authorswcraig <sebastian@stembolt.com>2017-09-07 16:08:10 -0700
committerswcraig <sebastian@stembolt.com>2017-09-11 11:55:19 -0700
commited18ead01a850e245f0cabc586dc5a44c64b17d3 (patch)
tree3e1559b05becb357cce2cca46f364e646ebd5c9e /app/models/solidus_subscriptions
parent8d81b643e01730e58a84256c8eedd55a5f5ff3c8 (diff)
Fix typos in comments
Just over here picking on the little things.
Diffstat (limited to 'app/models/solidus_subscriptions')
-rw-r--r--app/models/solidus_subscriptions/installment.rb6
-rw-r--r--app/models/solidus_subscriptions/installment_detail.rb2
-rw-r--r--app/models/solidus_subscriptions/interval.rb2
-rw-r--r--app/models/solidus_subscriptions/line_item_builder.rb2
-rw-r--r--app/models/solidus_subscriptions/order_builder.rb4
-rw-r--r--app/models/solidus_subscriptions/out_of_stock_dispatcher.rb2
-rw-r--r--app/models/solidus_subscriptions/payment_failed_dispatcher.rb2
-rw-r--r--app/models/solidus_subscriptions/subscription.rb10
-rw-r--r--app/models/solidus_subscriptions/subscription_promotion_rule.rb2
-rw-r--r--app/models/solidus_subscriptions/success_dispatcher.rb2
10 files changed, 17 insertions, 17 deletions
diff --git a/app/models/solidus_subscriptions/installment.rb b/app/models/solidus_subscriptions/installment.rb
index c1ec25e..493e0aa 100644
--- a/app/models/solidus_subscriptions/installment.rb
+++ b/app/models/solidus_subscriptions/installment.rb
@@ -1,6 +1,6 @@
-# This class represents a single iteration of a subscription. It is fulfulled
-# by a conmpleted order and maintains an association which tracks all attempts
-# successful or othewise at fulfulling this installment
+# This class represents a single iteration of a subscription. It is fulfilled
+# by a completed order and maintains an association which tracks all attempts
+# successful or otherwise at fulfilling this installment
module SolidusSubscriptions
class Installment < ActiveRecord::Base
has_many :details, class_name: 'SolidusSubscriptions::InstallmentDetail'
diff --git a/app/models/solidus_subscriptions/installment_detail.rb b/app/models/solidus_subscriptions/installment_detail.rb
index a6ab31a..bbc9ee1 100644
--- a/app/models/solidus_subscriptions/installment_detail.rb
+++ b/app/models/solidus_subscriptions/installment_detail.rb
@@ -1,5 +1,5 @@
# This class represents a single attempt to fulfill an installment. It will
-# indicate the result of that attept.
+# indicate the result of that attempt.
module SolidusSubscriptions
class InstallmentDetail < ActiveRecord::Base
belongs_to(
diff --git a/app/models/solidus_subscriptions/interval.rb b/app/models/solidus_subscriptions/interval.rb
index a185cf7..6c747cf 100644
--- a/app/models/solidus_subscriptions/interval.rb
+++ b/app/models/solidus_subscriptions/interval.rb
@@ -1,5 +1,5 @@
# This module is intended to be included into any active record
-# modle which needs to be aware of how intervals and stored and
+# model which needs to be aware of how intervals are stored and
# calculated in the db.
#
# Base models must have the following fields: interval_length (integer) and interval_units (integer)
diff --git a/app/models/solidus_subscriptions/line_item_builder.rb b/app/models/solidus_subscriptions/line_item_builder.rb
index 31ba515..d572a14 100644
--- a/app/models/solidus_subscriptions/line_item_builder.rb
+++ b/app/models/solidus_subscriptions/line_item_builder.rb
@@ -28,7 +28,7 @@ module SolidusSubscriptions
Spree::LineItem.new(variant: variant, quantity: subscription_line_item.quantity)
end
- # Either all line items for an installment are fullfilled or none are
+ # Either all line items for an installment are fulfilled or none are
line_items.all? ? line_items : []
end
diff --git a/app/models/solidus_subscriptions/order_builder.rb b/app/models/solidus_subscriptions/order_builder.rb
index 10fdc6c..30cf8a2 100644
--- a/app/models/solidus_subscriptions/order_builder.rb
+++ b/app/models/solidus_subscriptions/order_builder.rb
@@ -4,7 +4,7 @@ module SolidusSubscriptions
class OrderBuilder
attr_reader :order
- # Get a new instance of a OrderBuilder
+ # Get a new instance of an OrderBuilder
#
# @param order [Spree::Order] The order to be built
#
@@ -13,7 +13,7 @@ module SolidusSubscriptions
@order = order
end
- # Add line items for to an order. If the order already
+ # Add line items to an order. If the order already
# has a line item for a given variant_id, update the quantity. Otherwise
# add the line item to the order.
#
diff --git a/app/models/solidus_subscriptions/out_of_stock_dispatcher.rb b/app/models/solidus_subscriptions/out_of_stock_dispatcher.rb
index 8d98ffa..811e8eb 100644
--- a/app/models/solidus_subscriptions/out_of_stock_dispatcher.rb
+++ b/app/models/solidus_subscriptions/out_of_stock_dispatcher.rb
@@ -1,4 +1,4 @@
-# This service class is intented to provide callback behaviour to handle
+# This service class is intended to provide callback behaviour to handle
# the case where an installment cannot be processed due to lack of stock.
module SolidusSubscriptions
class OutOfStockDispatcher < Dispatcher
diff --git a/app/models/solidus_subscriptions/payment_failed_dispatcher.rb b/app/models/solidus_subscriptions/payment_failed_dispatcher.rb
index 186f90a..9fb45fb 100644
--- a/app/models/solidus_subscriptions/payment_failed_dispatcher.rb
+++ b/app/models/solidus_subscriptions/payment_failed_dispatcher.rb
@@ -1,4 +1,4 @@
-# This service class is intented to provide callback behaviour to handle
+# This service class is intended to provide callback behaviour to handle
# the case where a subscription order cannot be processed because a payment
# failed
module SolidusSubscriptions
diff --git a/app/models/solidus_subscriptions/subscription.rb b/app/models/solidus_subscriptions/subscription.rb
index 81679a8..5f97577 100644
--- a/app/models/solidus_subscriptions/subscription.rb
+++ b/app/models/solidus_subscriptions/subscription.rb
@@ -1,4 +1,4 @@
-# The subscription class is responsable for grouping together the
+# The subscription class is responsible for grouping together the
# information required for the system to place a subscriptions order on
# behalf of a specific user.
module SolidusSubscriptions
@@ -34,7 +34,7 @@ module SolidusSubscriptions
end)
# Find subscriptions based on their processing state. This state is not a
- # model attrubute.
+ # model attribute.
#
# @param state [Symbol] One of :pending, :success, or failed
#
@@ -109,7 +109,7 @@ module SolidusSubscriptions
# This method determines if a subscription may be canceled. Canceled
# subcriptions will not be processed. By default subscriptions may always be
- # canceled. If this method is overriden to return false, the subscription
+ # canceled. If this method is overridden to return false, the subscription
# will be moved to the :pending_cancellation state until it is canceled
# again and this condition is true.
#
@@ -123,7 +123,7 @@ module SolidusSubscriptions
#
# If a user cancels this subscription less than 10 days before it will
# be processed the subscription will be bumped into the
- # :pending_cancellation state instead of being canceled. Susbcriptions
+ # :pending_cancellation state instead of being canceled. Subscriptions
# pending cancellation will still be processed.
def can_be_canceled?
return true if actionable_date.nil?
@@ -182,7 +182,7 @@ module SolidusSubscriptions
end
# The state of the last attempt to process an installment associated to
- # this subscrtipion
+ # this subscription
#
# @return [String] pending if the no installments have been processed,
# failed if the last installment has not been fulfilled and, success
diff --git a/app/models/solidus_subscriptions/subscription_promotion_rule.rb b/app/models/solidus_subscriptions/subscription_promotion_rule.rb
index 20177da..7a8cc55 100644
--- a/app/models/solidus_subscriptions/subscription_promotion_rule.rb
+++ b/app/models/solidus_subscriptions/subscription_promotion_rule.rb
@@ -25,7 +25,7 @@ module SolidusSubscriptions
end
# Certain actions create adjustments on line items. In this case, only
- # line items with associated subscription_line_itms are eligible to be
+ # line items with associated subscription_line_items are eligible to be
# adjusted. Will only return true # if :line_item has an associated
# subscription.
#
diff --git a/app/models/solidus_subscriptions/success_dispatcher.rb b/app/models/solidus_subscriptions/success_dispatcher.rb
index 72eb181..3335222 100644
--- a/app/models/solidus_subscriptions/success_dispatcher.rb
+++ b/app/models/solidus_subscriptions/success_dispatcher.rb
@@ -1,4 +1,4 @@
-# This service class is intented to provide callback behaviour to handle
+# This service class is intended to provide callback behaviour to handle
# an installment successfully being processed
module SolidusSubscriptions
class SuccessDispatcher < Dispatcher