seoshop-api 0.1.1 → 0.1.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69e9ff2b1ed12775000675f10e26b8a7ed5c9e00273ba9b87780d5861fdee9ee
|
|
4
|
+
data.tar.gz: 89afc6b36775423127a1079187283d0d79eef81b631cede7e9fc8adce1780982
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c06e7fb36bd5dfec8cef4ad26c042ae9be3b974ff861d6dc16ef2592433d367972059a498c76220ec854a0bb53d535cba410093b2eb6f66a1c3610e96d9506d7
|
|
7
|
+
data.tar.gz: 8b46cd019e832bd89af6ad852ae0dbcf282b19fc1c339c187c3ab72f7c4ace96a0d137024d0d25037c80e441dcd73494f6ee570e7748885eafd18b2574cbbb47
|
|
@@ -6,7 +6,7 @@ module Seoshop
|
|
|
6
6
|
end
|
|
7
7
|
def get_product_category_path(product_id)
|
|
8
8
|
response = get("#{@shop_language}/categories/products.json?product=#{product_id}")
|
|
9
|
-
categories_products = response.body ? response.body['
|
|
9
|
+
categories_products = response.body ? response.body['categoriesProducts'] : []
|
|
10
10
|
categories_products.map{|category|
|
|
11
11
|
get_category(category.category.resource.id).fulltitle
|
|
12
12
|
}.join(">")
|
data/lib/seoshop-api/api/shop.rb
CHANGED
|
@@ -7,12 +7,12 @@ module Seoshop
|
|
|
7
7
|
|
|
8
8
|
def get_shop_website
|
|
9
9
|
response = get("#{@shop_language}/shop/website.json")
|
|
10
|
-
response.body ? response.body['
|
|
10
|
+
response.body ? response.body['shopWebsite'] : false
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def get_shop_company
|
|
14
14
|
response = get("#{@shop_language}/shop/company.json")
|
|
15
|
-
response.body ? response.body['
|
|
15
|
+
response.body ? response.body['shopCompany'] : false
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -7,7 +7,7 @@ module Seoshop
|
|
|
7
7
|
end
|
|
8
8
|
def get_scripts(params = {})
|
|
9
9
|
response = get("#{@shop_language}/shop/scripts.json", params)
|
|
10
|
-
response.body ? response.body['
|
|
10
|
+
response.body ? response.body['shopScript'] || [] : []
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def post_script(params)
|
data/lib/seoshop-api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seoshop-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nimrod Popper
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-11-
|
|
12
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|