distributed-press-api-client 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e07140dcbdfe76cdb6c2fd374d5a8505035b27a8be4298f31f6694f41a20a5d
4
- data.tar.gz: 49035a7a44b9445ef067ba92f1fa3efcb74943202570c5e7eccda33266175cf7
3
+ metadata.gz: ae448e05caf1d538ac277c028958db6d002f18d623940b34f107f9fffb9ceb69
4
+ data.tar.gz: 52a18426f835670fd078cd73fd9aa65b0b3f18ec83d58f76dcf3dee0a79e7007
5
5
  SHA512:
6
- metadata.gz: 70fc5c1446cbd965afb21757c3abcc630067d41971d4b3c0ce9114d7bab322df4a8dba073a5394a204a6ad05269a599448e0d6c572b0acf3b5d4ed9ee30e016b
7
- data.tar.gz: 86a84f86f460b27dc75e384389892ea7ade9973b4aa302d688de89d9622eb5257f0466aaa063364926b2693fbe678728aaa928f1c7af53e096b82d0b00c36b00
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::Logger.warn "`hostname` or `url` keys missing on _config.yml, skipping Distributed Press publication."
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.2
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: 2021-02-09 00:00:00.000000000 Z
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.1.2
69
+ rubygems_version: 3.3.19
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Distributed Press API Client