discourse_theme 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/discourse_theme/client.rb +2 -1
- data/lib/discourse_theme/version.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: cd8c45032d2c2499afcecc28d16ccee1fa98e8b2652080ab47736a900fa44d33
|
4
|
+
data.tar.gz: c4524cebcdfa477449c5419511ca9e39e8008b01cb6fef210705ffa851097ed8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2670a5a54f209ed6819d5692dd492e7286110939a0add8dfc1b0510d9a25c1c4d619bcb2b9443ccb993e8c137073f53a673ea911ecef1f32058eca75b83119d
|
7
|
+
data.tar.gz: b51ae8876fbfbec7d49ea62246b76b40971eb25ed71b0aba631a9ec080c2e835f23eb1ae9795495820e6c755ddf54a24db9c03e4bb830e71b6fdde0c346827e7
|
@@ -28,7 +28,8 @@ module DiscourseTheme
|
|
28
28
|
end
|
29
29
|
|
30
30
|
response = request(Net::HTTP::Get.new(endpoint), never_404: true)
|
31
|
-
JSON.parse(response.body)
|
31
|
+
json = JSON.parse(response.body)
|
32
|
+
@is_theme_creator ? json["user_themes"] : json["themes"]
|
32
33
|
end
|
33
34
|
|
34
35
|
def get_raw_theme_export(id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discourse_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|