shopify_url 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Changes +3 -0
- data/README.md +0 -2
- data/lib/shopify_url.rb +23 -2
- metadata +4 -5
- data/.travis.yml +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 76cd0b33e64cc5ce60666edb18bea8139343f8268035614cdc806423bbe694ca
|
4
|
+
data.tar.gz: b30a8437f376ff946604de7eb490014235eae87e8f927f8cea0cd54467dc79a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 818ad912f3ecf4b87fc6b6ca510378ec7e76b3794f197df0076ad2d6b7cbff8e80f8513d7ace417d31d785741c94299e441afc22103ab4457de02ed65a54efc4
|
7
|
+
data.tar.gz: bdcaec3bfc6b4d36686d68e942444ca5d8e5d7bbf940be2bee35db43d6139242fa3cccef55c7c92be503e7f8aeca1556ae832cb678f01eb9ac17555a96f8a11e
|
data/Changes
ADDED
data/README.md
CHANGED
data/lib/shopify_url.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require "uri"
|
3
3
|
|
4
4
|
module ShopifyURL
|
5
|
-
VERSION = "0.0.
|
5
|
+
VERSION = "0.0.2"
|
6
6
|
TOP_LEVEL_DOMAIN = ".myshopify.com"
|
7
7
|
|
8
8
|
class Linker
|
@@ -147,7 +147,7 @@ module ShopifyURL
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
|
-
|
150
|
+
class Orders < String
|
151
151
|
def initialize(host, qs = nil)
|
152
152
|
super host + "/orders"
|
153
153
|
self << "?" << qs if qs
|
@@ -162,6 +162,18 @@ module ShopifyURL
|
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
165
|
+
class Theme < String
|
166
|
+
def initialize(base, id, qs = nil)
|
167
|
+
super base + "/themes/" << id.to_s
|
168
|
+
self << "?" << qs if qs
|
169
|
+
end
|
170
|
+
|
171
|
+
# Not the code editor, the theme customization page
|
172
|
+
def editor
|
173
|
+
self + "/editor"
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
165
177
|
class DraftOrder < String
|
166
178
|
def initialize(base, id, qs = nil)
|
167
179
|
super base + "/draft_orders/" << id.to_s
|
@@ -230,5 +242,14 @@ module ShopifyURL
|
|
230
242
|
def products(query = nil)
|
231
243
|
Products.new(host, q(query))
|
232
244
|
end
|
245
|
+
|
246
|
+
def themes
|
247
|
+
host + "/themes"
|
248
|
+
end
|
249
|
+
|
250
|
+
def theme(id, query = nil)
|
251
|
+
id_required!(id)
|
252
|
+
Theme.new(host, id, q(query))
|
253
|
+
end
|
233
254
|
end
|
234
255
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_url
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skye Shaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -62,7 +62,7 @@ extra_rdoc_files: []
|
|
62
62
|
files:
|
63
63
|
- ".gitignore"
|
64
64
|
- ".rspec"
|
65
|
-
-
|
65
|
+
- Changes
|
66
66
|
- Gemfile
|
67
67
|
- LICENSE.txt
|
68
68
|
- README.md
|
@@ -88,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
|
92
|
-
rubygems_version: 2.6.14
|
91
|
+
rubygems_version: 3.3.26
|
93
92
|
signing_key:
|
94
93
|
specification_version: 4
|
95
94
|
summary: Build URLs for Shopify websites
|
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
---
|
2
|
-
sudo: false
|
3
|
-
language: ruby
|
4
|
-
cache: bundler
|
5
|
-
rvm:
|
6
|
-
- 2.2
|
7
|
-
- 2.3
|
8
|
-
- 2.4
|
9
|
-
- 2.5
|
10
|
-
- 2.6
|
11
|
-
- 2.7
|
12
|
-
|
13
|
-
# https://docs.travis-ci.com/user/languages/ruby/#bundler-20
|
14
|
-
before_install:
|
15
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
16
|
-
- gem install bundler -v '< 2'
|
17
|
-
|
18
|
-
notifications:
|
19
|
-
email: false
|