spree_loyalty 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d15acfb30891827b6a98ad18bdf142a27719d9788723c6d16d355874b8e5a31f
4
- data.tar.gz: c5a3add030ba18043fe115f06590de368765f96afb8565c5e625b2a6ceb7b04a
3
+ metadata.gz: 73725b3df01ba9e30c196f8ecee4d44383d320b50266d7c3d4e65d912d6ff796
4
+ data.tar.gz: 5306c1845895991e8ba1e160f87257fbcf5db071b23afb3e047ba7757165ecba
5
5
  SHA512:
6
- metadata.gz: 6d7cb518d47c367dfb39561866b2919ed8c9d14e3c4cd6dcad8ea8add75ecba7a261b3516ba2a1a17953988b49b4312aab48b34f75fe0b463b4d6e9864a8a456
7
- data.tar.gz: 2447f287e26f39a7907596558aa8ed178ecbc36f0a620857a710d99d8b1519eb16fdd59d63ca2a350ae69ed1f998683ced71ff56d4a8c39d345add8617c224da
6
+ metadata.gz: 15318d47afcda633707070edbe79e4f3c30aef0f0ca16a89575d0f6aed8eda5262754ccc82c67cc90c6ed018784af54a869b1574330df8181733065d4e417e7b
7
+ data.tar.gz: a37bdf89afbe0fe922d01a01a483d25cdc773f1c22561ead3fda7d954c5ddf48aea4e2e13fbef5fc924fbd80c987b565783cef3a9b0716edeb86864ad43b19ee
data/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project are documented here.
4
4
 
5
+ ## 0.1.1
6
+
7
+ Test/docs-only release — no `app/`/`lib/` runtime code changed. Generating this gem's dummy app for
8
+ the first time on a real Postgres surfaced two real bugs its specs had never actually caught:
9
+
10
+ - Fixed a real test-isolation bug: `accrual_spec.rb` and `order_completed_subscriber_spec.rb` both
11
+ created a line item directly via factory, then expected `order.item_total` to reflect it — but
12
+ Spree only recalculates that column through its real order-update pipeline, which a direct
13
+ factory create bypasses entirely (the normal checkout flow triggers it; this test fixture never
14
+ did). Calling that pipeline alone was intermittently insufficient too — `order` could already
15
+ have a stale, memoized empty `line_items` association loaded from earlier in its own
16
+ creation/validation, and `update_totals` summed that instead of querying fresh. An explicit
17
+ `order.reload` immediately before recalculating fixes it — verified stable across 5+ repeated
18
+ full-suite runs (was flaky before, depending on run/example order).
19
+ - Normalized `config/locales/en.yml` via `i18n-tasks normalize` (pre-existing, unrelated gap).
20
+
21
+ Full suite: 32 examples, 0 failures (was flaky, up to 6 failures depending on run order).
22
+ Coverage: 75.00% (63/84 lines). Brakeman clean.
23
+
5
24
  ## 0.1.0
6
25
 
7
26
  - First release: points-based loyalty program for Spree Commerce, POS-agnostic by design.
@@ -1,5 +1,6 @@
1
+ ---
1
2
  en:
2
3
  spree_loyalty:
3
- account_id: "Account ID"
4
- points: "Points"
5
- adjust: "Adjust"
4
+ account_id: Account ID
5
+ adjust: Adjust
6
+ points: Points
@@ -1,5 +1,5 @@
1
1
  module SpreeLoyalty
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
 
4
4
  def gem_version
5
5
  Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_loyalty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amit Solanki