discourse_theme 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/discourse_theme/uploader.rb +3 -2
- data/lib/discourse_theme/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c42bbee99e84d60c23d79bdb0dd289d9b2be382bdfd1c609c77b31f7c689ccda
|
4
|
+
data.tar.gz: 5c1c7bf95a1c83fe52d677ed766cb77c5d764d6e559f493e71b9bf2e7672bd1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e65319a323e96446890fd013c642bfadcc5fce7e623097a37cb731d5f20f4f9ea7b107adfa8a3db555935a0ee332a244b161c87f9e93cc54618695881e147d42
|
7
|
+
data.tar.gz: 9706b11b32d297faddd26875a78f6fb9e9b0816e152197f4698ca50c4c03c033406579045cfde2dd5fea34e102ee10f89300e6f8d619bfe168f601c8f1ce8eeb
|
@@ -16,6 +16,7 @@ class DiscourseTheme::Uploader
|
|
16
16
|
|
17
17
|
Dir.chdir(dir + "/../") do
|
18
18
|
Find.find(File.basename(dir)) do |x|
|
19
|
+
Find.prune if File.basename(x) == "src"
|
19
20
|
Find.prune if File.basename(x)[0] == ?.
|
20
21
|
next if File.directory?(x)
|
21
22
|
|
@@ -58,7 +59,7 @@ class DiscourseTheme::Uploader
|
|
58
59
|
}
|
59
60
|
}
|
60
61
|
|
61
|
-
endpoint =
|
62
|
+
endpoint =
|
62
63
|
if @is_theme_creator
|
63
64
|
"/user_themes/#{@theme_id}"
|
64
65
|
else
|
@@ -89,7 +90,7 @@ class DiscourseTheme::Uploader
|
|
89
90
|
filename = "#{Pathname.new(Dir.tmpdir).realpath}/bundle_#{SecureRandom.hex}.tar.gz"
|
90
91
|
compress_dir(filename, @dir)
|
91
92
|
|
92
|
-
endpoint =
|
93
|
+
endpoint =
|
93
94
|
if @is_theme_creator
|
94
95
|
"/user_themes/import.json"
|
95
96
|
else
|
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.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.6
|
171
|
+
rubygems_version: 2.7.6
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: CLI helper for creating Discourse themes
|