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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5aeb29aae52cfe3e665464d04e2b8813a2bc7128
4
- data.tar.gz: 31b93b745ce43c33598e60fc2009ebaa59f15a87
2
+ SHA256:
3
+ metadata.gz: c42bbee99e84d60c23d79bdb0dd289d9b2be382bdfd1c609c77b31f7c689ccda
4
+ data.tar.gz: 5c1c7bf95a1c83fe52d677ed766cb77c5d764d6e559f493e71b9bf2e7672bd1c
5
5
  SHA512:
6
- metadata.gz: e4c8a5dd67329602d0941fe25d96a533699b255572abf99cbd649d7e68b84c10685b6b002bab80e90a605b3905f4402b0723dac8fe1f49e0e1c36c6ccd1e021d
7
- data.tar.gz: bc614b8b759385faa5d6fe8834d4a3eaea8e770625c9e7c267225fff40ff150ba24424939504c5cb6e6153ad970a1dcf5bbd2723ce5711b5786a800fe91f8d51
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
@@ -1,3 +1,3 @@
1
1
  module DiscourseTheme
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
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.1.7
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-04-09 00:00:00.000000000 Z
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.13
171
+ rubygems_version: 2.7.6
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: CLI helper for creating Discourse themes