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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5c78e3947eb3207c1deec8de4326ca852efabb4c45c9dc616ff8cee76695747
4
- data.tar.gz: d5024d27d0f687d6300f4c34cfd3ac6c72ef5049f03f10e15397e9d45dcd8bbf
3
+ metadata.gz: cd8c45032d2c2499afcecc28d16ccee1fa98e8b2652080ab47736a900fa44d33
4
+ data.tar.gz: c4524cebcdfa477449c5419511ca9e39e8008b01cb6fef210705ffa851097ed8
5
5
  SHA512:
6
- metadata.gz: 5aff9397fbe13616f9012bef9e3f41dc4ea0587d09ae8f040e806d7ef51c9f79dc71e911ec0808e16a631a46636ff72ebec244ef543b7a69852bd24265cb40fd
7
- data.tar.gz: ff3cc429ef37e484c96af103d130140b54c42a07e74a222270fd1f533ede61a3b9e8ee1bf8a4fbeb94d1e047e95481251561ad821eaa58001d2c02fe38d89189
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)["themes"]
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)
@@ -1,3 +1,3 @@
1
1
  module DiscourseTheme
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2019-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler