jekyll-remote-theme 0.4.2 → 0.4.3

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: a61ca9d8f45ce161245eee3a0295a4bb473dcf1c426cd1416a14c1dd22d6e75e
4
- data.tar.gz: 04a5cde4994fea1fdea86c85535863a7d6a4a5caf42a63f3ada4591829159f91
3
+ metadata.gz: 4c9167cea38476d7fc4ef44836e821cb07d5bcabb665e834a8df9f1cae315b70
4
+ data.tar.gz: 28698c0255ba7c3b9b85758e7ed52c899ffbdd49460064513d8a28a19d174b49
5
5
  SHA512:
6
- metadata.gz: 8cd35ff89adbf6cc2851809a94853ac271b82cac23cba3e767113e5dd55729cd07a54d131b69473f69633f33f9a24d9cd302e47ff44e0e37f6f665e929dfb871
7
- data.tar.gz: 78356cf1b25a4c7cbb833becd80ed89a1d6af8f3e1a14468b286bc164a4a86d531fccf2588dd8e8b0692a95d463821dc316a88e376bed587b6bbb8386ddf38e6
6
+ metadata.gz: 5c9f12811ead638abbb9022f63221ef49fd6bd2f743e42d58645431aa0565946b74324131710d76ed9567adc812b316425f47e41c55ba379a4073f7812ec5b0a
7
+ data.tar.gz: 4ae168e2f471af7bfa0cdc39a479f3bb05fe4420d30a3036206f29b50f49f267004fa8ac4deaa4da26f887eae3f3b5e38b521cb189ed479d5262aa289d33dc11
@@ -64,7 +64,7 @@ module Jekyll
64
64
  def raise_unless_sucess(response)
65
65
  return if response.is_a?(Net::HTTPSuccess)
66
66
 
67
- raise DownloadError, "#{response.code} - #{response.message}"
67
+ raise DownloadError, "#{response.code} - #{response.message} - Loading URL: #{zip_url}"
68
68
  end
69
69
 
70
70
  def enforce_max_file_size(size)
@@ -20,10 +20,10 @@ module Jekyll
20
20
  end
21
21
 
22
22
  Jekyll.logger.info LOG_KEY, "Using theme #{theme.name_with_owner}"
23
- return theme if munged?
24
-
25
- downloader.run
26
- configure_theme
23
+ unless munged?
24
+ downloader.run
25
+ configure_theme
26
+ end
27
27
  enqueue_theme_cleanup
28
28
 
29
29
  theme
@@ -59,8 +59,6 @@ module Jekyll
59
59
 
60
60
  def enqueue_theme_cleanup
61
61
  at_exit do
62
- return unless munged? && downloader.downloaded?
63
-
64
62
  Jekyll.logger.debug LOG_KEY, "Cleaning up #{theme.root}"
65
63
  FileUtils.rm_rf theme.root
66
64
  end
@@ -51,7 +51,7 @@ module Jekyll
51
51
  end
52
52
 
53
53
  def git_ref
54
- theme_parts[:ref] || "master"
54
+ theme_parts[:ref] || "HEAD"
55
55
  end
56
56
 
57
57
  def root
@@ -68,7 +68,7 @@ module Jekyll
68
68
  def uri
69
69
  return @uri if defined? @uri
70
70
 
71
- @uri = if @raw_theme =~ THEME_REGEX
71
+ @uri = if THEME_REGEX.match?(@raw_theme)
72
72
  Addressable::URI.new(
73
73
  :scheme => "https",
74
74
  :host => "github.com",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module RemoteTheme
5
- VERSION = "0.4.2"
5
+ VERSION = "0.4.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-remote-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-03 00:00:00.000000000 Z
11
+ date: 2021-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -118,6 +118,20 @@ dependencies:
118
118
  - - "~>"
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0.2'
121
+ - !ruby/object:Gem::Dependency
122
+ name: kramdown-parser-gfm
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: '1.0'
128
+ type: :development
129
+ prerelease: false
130
+ version_requirements: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: '1.0'
121
135
  - !ruby/object:Gem::Dependency
122
136
  name: pry
123
137
  requirement: !ruby/object:Gem::Requirement
@@ -188,7 +202,7 @@ dependencies:
188
202
  - - "~>"
189
203
  - !ruby/object:Gem::Version
190
204
  version: '3.0'
191
- description:
205
+ description:
192
206
  email:
193
207
  - ben.balter@github.com
194
208
  executables: []
@@ -205,7 +219,7 @@ homepage: https://github.com/benbalter/jekyll-remote-theme
205
219
  licenses:
206
220
  - MIT
207
221
  metadata: {}
208
- post_install_message:
222
+ post_install_message:
209
223
  rdoc_options: []
210
224
  require_paths:
211
225
  - lib
@@ -220,8 +234,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
234
  - !ruby/object:Gem::Version
221
235
  version: '0'
222
236
  requirements: []
223
- rubygems_version: 3.1.1
224
- signing_key:
237
+ rubygems_version: 3.2.14
238
+ signing_key:
225
239
  specification_version: 4
226
240
  summary: Jekyll plugin for building Jekyll sites with any GitHub-hosted theme
227
241
  test_files: []