shop_express 0.0.4 → 0.0.6
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/lib/shop_express/catalog_export.rb +2 -2
- data/lib/shop_express/connection.rb +2 -1
- data/lib/shop_express/import_residues.rb +2 -2
- data/lib/shop_express.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 736c78ab25866dabe32a63c707208e44091122787016a35d92bd28a3b14c397b
|
4
|
+
data.tar.gz: 44813869d49ae621ff0103b47bcdf31883132ea74fba88e1643898ef2f023de4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db84c371bfe82bedaa71338e7558040229095d7d40c22210caa414508c047fc31b154c21c0f5950381514e9b07cef70a2114828ae23e99739897d94ccdee843
|
7
|
+
data.tar.gz: 7087b5ff78ee746a1535f0b969e3b7f8b6de6348d08b6b781ebde85bccc92401163b93a6663113077b360cc5ebd2c016c25eaf9382a5e585c647f143983ab04e
|
@@ -3,12 +3,12 @@
|
|
3
3
|
module ShopExpress
|
4
4
|
# get list of the products from the shop_express
|
5
5
|
class CatalogExport < ::ShopExpress::Base
|
6
|
-
URL = 'api/catalog/export'
|
6
|
+
URL = '/api/catalog/export'
|
7
7
|
|
8
8
|
# @param limit [Integer]
|
9
9
|
# @param offset [Integer]
|
10
10
|
# @param display_in_show_case [String] possible values (false, true)
|
11
|
-
def call(limit:
|
11
|
+
def call(limit: 500, offset: 0, display_in_show_case: 'false')
|
12
12
|
request_body = {
|
13
13
|
limit: limit,
|
14
14
|
offset: offset,
|
@@ -9,7 +9,8 @@ module ShopExpress
|
|
9
9
|
def post(shop_express:, url:, body:, add_token: false)
|
10
10
|
mixin_token!(shop_express, body) if add_token
|
11
11
|
connection(shop_express).post(url, body).body
|
12
|
-
rescue Faraday::Error
|
12
|
+
rescue Faraday::Error => e
|
13
|
+
Rails.logger.error(e) if defined?(Rails)
|
13
14
|
ERROR
|
14
15
|
end
|
15
16
|
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module ShopExpress
|
4
4
|
# import_residues to the shop_express
|
5
|
-
class
|
6
|
-
URL = 'api/catalog/importResidues/'
|
5
|
+
class ImportResidues < ::ShopExpress::Base
|
6
|
+
URL = '/api/catalog/importResidues/'
|
7
7
|
|
8
8
|
# @param body [Hash]
|
9
9
|
def call(body)
|
data/lib/shop_express.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shop_express
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denys Krupenov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|