effective_orders 4.2.0 → 4.2.1

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
  SHA256:
3
- metadata.gz: cba395b26b2db05cfcbfd3340db1c83318f97a190130b7f009363314a45b2a51
4
- data.tar.gz: 5e9e3a2de5aee44d4fbde7374dee306ad9acffa30513f97e073050d04acb2955
3
+ metadata.gz: ca6231f9f114eb234e5c825c4e5632326ec6ea81986aeddee7166b9c2bd53455
4
+ data.tar.gz: e11f4a0a817a8432f0bd6078a3e69cb5747131b66af049fc7e8571cbe91e738e
5
5
  SHA512:
6
- metadata.gz: 0c4bbcc96e0ba2ace04bb7779b4c56aaa2578fb3b7c05ecfb2979b94c4fd8a12581fc3d9a77de1f267cf3ff1e00104f122b49dc29354ea7b95e5c91c2b2c5f1e
7
- data.tar.gz: b48693aa3680d77555a459366c7379ba96b6b2894c40dbe01bd1a630440843a414d393a2cc84946130c1a59ae5290d5576f15d0cd16145ad2df31ee22e01f7a7
6
+ metadata.gz: bb0e0adae93b5f998a485ef8315b00dd768997b864e642df62295324016f19bd89447c03b72ee60dcaf3133e54b9509bbbd224587caadb881ca90bc83efcc8cc
7
+ data.tar.gz: 1119e0c85e20a70250b966d9932e88aa191439d506dfdee49b97800dc3bc1ff077cae9e4a4a9af0d6a4668d1e46e12ce8fc82883b737c0ac6770bc7ba66c95fc
@@ -205,7 +205,7 @@ module EffectiveOrders
205
205
  end
206
206
 
207
207
  # Calculate savings for any yearly per user plans, based on their matching monthly plans
208
- plans.select { |plan| plan[:interval] == 'year' && plan[:name].downcase.include?('per') }.each do |yearly|
208
+ plans.select { |plan| plan[:interval] == 'year' }.each do |yearly|
209
209
  monthly_name = yearly[:name].downcase.gsub('year', 'month')
210
210
  monthly = plans.find { |plan| plan[:interval] == 'month' && plan[:name].downcase == monthly_name }
211
211
  next unless monthly
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.2.0'.freeze
2
+ VERSION = '4.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect