jekyll-theme-open-project-helpers 1.1.10 → 1.1.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07e406d26652a8139b260b3b1f9a3356ac41f20a24c5071055652ea90b46757
|
4
|
+
data.tar.gz: 878e51a8dbc02d60e1c70afbef5b06d76332f0996cec91e12eae07b6be905e48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 662732a56f9e855454f55d0f02eced2e0b57c57468d2ac4360903b7c26986f6efef1f8f7e9db698cd0960b2d67017e1090657ec59bef4031fd7ac749d0bcbb3d
|
7
|
+
data.tar.gz: 58dfd7d1cde12823759f571c6e17fbae7e020481623edef2f188868dd1909b12138d6f373e3ed96ab200a640fc224ea281a7c4474cb1010919d3340fa6c446a7
|
@@ -61,6 +61,7 @@ module Jekyll
|
|
61
61
|
|
62
62
|
class OpenProjectReader < JekyllData::Reader
|
63
63
|
|
64
|
+
# TODO: Switch to @site.config?
|
64
65
|
@@siteconfig = Jekyll.configuration({})
|
65
66
|
|
66
67
|
def read
|
@@ -206,7 +207,7 @@ module Jekyll
|
|
206
207
|
repo.reset_hard
|
207
208
|
repo.checkout("#{DEFAULT_REPO_REMOTE_NAME}/#{DEFAULT_REPO_BRANCH}", { :f => true })
|
208
209
|
|
209
|
-
|
210
|
+
elsif refresh_condition == 'last-resort'
|
210
211
|
begin
|
211
212
|
repo.checkout("#{DEFAULT_REPO_REMOTE_NAME}/#{DEFAULT_REPO_BRANCH}", { :f => true })
|
212
213
|
rescue Exception => e
|
@@ -217,15 +218,9 @@ module Jekyll
|
|
217
218
|
:newly_initialized => nil,
|
218
219
|
:modified_at => nil,
|
219
220
|
}
|
220
|
-
|
221
|
+
else
|
221
222
|
repo.fetch(DEFAULT_REPO_REMOTE_NAME, { :depth => 1 })
|
222
223
|
repo.checkout("#{DEFAULT_REPO_REMOTE_NAME}/#{DEFAULT_REPO_BRANCH}", { :f => true })
|
223
|
-
else
|
224
|
-
return {
|
225
|
-
:success => false,
|
226
|
-
:newly_initialized => nil,
|
227
|
-
:modified_at => nil,
|
228
|
-
}
|
229
224
|
end
|
230
225
|
end
|
231
226
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-open-project-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|