spree-shipstation 6.0.0 → 6.0.2

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: 1ec0ccf29f471fcbd60126248195ed5adbb10f9ae5cc5301b23b640308ce6f0f
4
- data.tar.gz: 97d83306702cbbac6b67f7d4e2bca35676063e397e7e13717ad4eaed7e0d3487
3
+ metadata.gz: 6265e27adc2f61f510f6ae7bcda32a278cb554582d442202c6064860457ef5c7
4
+ data.tar.gz: 55fca1027b418015342e49018845ad654efadf649368a8306c05422450da5710
5
5
  SHA512:
6
- metadata.gz: 80e0b2aa61bcc31c1a59249d02522b548899cdea0fa5a7dfb04ba03aa24916105c54434495095f598a54a5d8aa472f58be1cfd2a9eb8c48636efcc8f759eaa84
7
- data.tar.gz: c3650585bc19e8dd5d89571771b413fa64de828a9f82afd72a899cbb0f751d576367dc8de94bd5d2f18b8e267da6ea84b37cd32a069aa1b12bed3999f530a26f
6
+ metadata.gz: de29b08dceb4ab02811e473de9bdd99013e5b4f0295c92624ad2c2c2a20d3af8f679d742f07147b4e28e6f907ba6aff8fa210f298cbc9c2eeeff7aedbb50ccf2
7
+ data.tar.gz: 992db8b647fcc04515371c2ee63a2fd54c28a8dac0057a1a3a9c72b0d5add3a2604520e0a56fd907604cd821f550086f6ca00c37fc075bb9a97797a42cdd3823
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 6.0.2
6
+
7
+ ### Changed
8
+
9
+ - The integrations dashboard shows ShipStation's square app icon instead of the
10
+ wide wordmark, which was too small to read in the dashboard's icon tile. The
11
+ icon is a 3 KB PNG, down from the 17 KB WebP.
12
+
13
+ ## 6.0.1
14
+
15
+ ### Fixed
16
+
17
+ - The export no longer fails with a 500 (`undefined method 'attachment_path'`)
18
+ for an order whose items have an image.
19
+ - `ImageUrl` is now an absolute URL on the host ShipStation polls, so ShipStation
20
+ can fetch item images (#21).
21
+
5
22
  ## 6.0.0
6
23
 
7
24
  Spree 6 support. The major version tracks Spree's, so `spree-shipstation` 6.x
@@ -16,7 +16,7 @@ module Spree
16
16
  must_contain_at_least_one_number: /\d/
17
17
  }.freeze
18
18
 
19
- LOGO_PATH = Spree::Shipstation::Engine.root.join("app/assets/images/integration_icons/shipstation-logo.webp")
19
+ LOGO_PATH = Spree::Shipstation::Engine.root.join("app/assets/images/integration_icons/shipstation-icon.png")
20
20
 
21
21
  preference :username, :string
22
22
 
@@ -68,7 +68,7 @@ module Spree
68
68
  def self.logo_url
69
69
  # Array#pack("m0") is strict Base64 without the base64 gem, which
70
70
  # Ruby 3.4 and later no longer ship as a default gem.
71
- @logo_url ||= "data:image/webp;base64,#{[LOGO_PATH.binread].pack("m0")}".freeze
71
+ @logo_url ||= "data:image/png;base64,#{[LOGO_PATH.binread].pack("m0")}".freeze
72
72
  end
73
73
 
74
74
  ##
@@ -35,7 +35,9 @@ xml.Orders(pages: @pagy.pages) do
35
35
  xml.SKU item.sku
36
36
  xml.Name item.name
37
37
 
38
- image_url = still_image && url_for(still_image)
38
+ # main_app: this isolated engine lacks Active Storage's resolver, and
39
+ # ShipStation needs an absolute URL it can fetch.
40
+ image_url = still_image && main_app.rails_blob_url(still_image)
39
41
  xml.ImageUrl image_url if image_url
40
42
 
41
43
  xml.Weight weight.value
@@ -4,7 +4,7 @@ module Spree
4
4
  module Shipstation
5
5
  # Major version tracks Spree's major version: 6.x supports Spree 6; 5.0.x
6
6
  # lives on +5-0-stable+.
7
- VERSION = "6.0.0"
7
+ VERSION = "6.0.2"
8
8
 
9
9
  ##
10
10
  # Gem version as a comparable +Gem::Version+.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree-shipstation
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Kennedy
@@ -59,7 +59,7 @@ files:
59
59
  - LICENSE
60
60
  - README.md
61
61
  - Rakefile
62
- - app/assets/images/integration_icons/shipstation-logo.webp
62
+ - app/assets/images/integration_icons/shipstation-icon.png
63
63
  - app/controllers/spree/shipstation_controller.rb
64
64
  - app/helpers/spree/shipstation/export_helper.rb
65
65
  - app/models/spree/integrations/shipstation.rb