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: c4caffb9cfa475c2158792ede91bfd553b0f00c7a4a804f7cea2395303fdf259
4
- data.tar.gz: d3a757674abd4e54779249f3a9c3af217b5750adbb9c21c0bf568b961d7af2a1
3
+ metadata.gz: c07e406d26652a8139b260b3b1f9a3356ac41f20a24c5071055652ea90b46757
4
+ data.tar.gz: 878e51a8dbc02d60e1c70afbef5b06d76332f0996cec91e12eae07b6be905e48
5
5
  SHA512:
6
- metadata.gz: ca3499c57d88fcd8fb1a3e4fb9ad6840c77d5eab09a94993a9923ae9acd473ee567bf59c1ba2b79f1b1516560d8fbce78bde4888889c9f3489a015e40b79dfdc
7
- data.tar.gz: c2632738e61787344005d344bf64b1130fe0bb88c0ec56c2bf24c0348f4a8a314fa46dbb21108bf7d2d8e3c4a18b1f73927e77bc73e998a1b40b7a6b43c79697
6
+ metadata.gz: 662732a56f9e855454f55d0f02eced2e0b57c57468d2ac4360903b7c26986f6efef1f8f7e9db698cd0960b2d67017e1090657ec59bef4031fd7ac749d0bcbb3d
7
+ data.tar.gz: 58dfd7d1cde12823759f571c6e17fbae7e020481623edef2f188868dd1909b12138d6f373e3ed96ab200a640fc224ea281a7c4474cb1010919d3340fa6c446a7
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'jekyll-theme-open-project-helpers'
5
- s.version = '1.1.10'
5
+ s.version = '1.1.11'
6
6
  s.authors = ['Ribose Inc.']
7
7
  s.email = ['open.source@ribose.com']
8
8
 
@@ -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
- else
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
- elsif refresh_condition == 'last-resort'
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.10
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-09-28 00:00:00.000000000 Z
11
+ date: 2018-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll