distributed-press-api-client 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-distributed-press.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae448e05caf1d538ac277c028958db6d002f18d623940b34f107f9fffb9ceb69
|
4
|
+
data.tar.gz: 52a18426f835670fd078cd73fd9aa65b0b3f18ec83d58f76dcf3dee0a79e7007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd3a517a48151f9e50ad237f694c936e8942177ef886aa244534e45212532655d09858f5912d51a8f9f841dfa6bbf074af84c34e3f1e70a9ab781b8a001f22f
|
7
|
+
data.tar.gz: 3d012f7c84984cbb94f291aab7ea10ca0ce717ad9328042de8e07a84a9b8873bbe3ab38009e2fbb42f65714305ad5008997f01df776ad22056cacd09d3fc9b66
|
@@ -4,6 +4,9 @@ require 'distributed_press'
|
|
4
4
|
|
5
5
|
Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
|
6
6
|
next unless ENV['JEKYLL_ENV'] == 'production'
|
7
|
+
if site.config['locales']
|
8
|
+
next unless site.config['locale'] == site.config['locales'].last
|
9
|
+
end
|
7
10
|
|
8
11
|
hostname = ENV['DISTRIBUTED_PRESS_PROJECT_DOMAIN']
|
9
12
|
hostname ||= site.config['hostname']
|
@@ -11,8 +14,12 @@ Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
|
|
11
14
|
|
12
15
|
raise URI::Error unless hostname
|
13
16
|
|
17
|
+
Jekyll.logger.info 'Distributed Press:', 'Publishing website'
|
18
|
+
|
14
19
|
distributed_press = DistributedPress.new project_domain: hostname
|
15
20
|
distributed_press.configure && distributed_press.publish(site.dest)
|
21
|
+
|
22
|
+
Jekyll.logger.info 'Distributed Press:', 'Published!'
|
16
23
|
rescue URI::Error
|
17
|
-
Jekyll
|
24
|
+
Jekyll.logger.warn 'Distributed Press:', '`hostname` or `url` keys missing on _config.yml, skipping publication.'
|
18
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distributed-press-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
69
|
+
rubygems_version: 3.3.19
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Distributed Press API Client
|