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 +4 -4
- data/CHANGELOG.md +17 -0
- data/app/assets/images/integration_icons/shipstation-icon.png +0 -0
- data/app/models/spree/integrations/shipstation.rb +2 -2
- data/app/views/spree/shipstation/export.xml.builder +3 -1
- data/lib/spree/shipstation/version.rb +1 -1
- metadata +2 -2
- data/app/assets/images/integration_icons/shipstation-logo.webp +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6265e27adc2f61f510f6ae7bcda32a278cb554582d442202c6064860457ef5c7
|
|
4
|
+
data.tar.gz: 55fca1027b418015342e49018845ad654efadf649368a8306c05422450da5710
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
Binary file
|
|
@@ -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-
|
|
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/
|
|
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
|
-
|
|
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
|
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.
|
|
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-
|
|
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
|
|
Binary file
|