distributed-press-api-client 0.1.1 → 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: 73ad534bb05c5ea77506ddafa7243934e6954caabbf1080a3a031bef89a11236
4
- data.tar.gz: c400d32f71de754f2940044961f680af9d3b927fbd6e11a4816b757f3cb4446b
3
+ metadata.gz: ae448e05caf1d538ac277c028958db6d002f18d623940b34f107f9fffb9ceb69
4
+ data.tar.gz: 52a18426f835670fd078cd73fd9aa65b0b3f18ec83d58f76dcf3dee0a79e7007
5
5
  SHA512:
6
- metadata.gz: 76250fbce14ed2a9a159f5c394a153edd936260ccd8bf3f564d81f00613a9ac60cd3a5730878809160b0fa278c5cfb923bcec47206ac3827e4dcbcef70db41eb
7
- data.tar.gz: d83e4be00733c4566e02415cfa5a1e637db011fe1fc8da6ff3183fa0655baaea384834887e016a7387a39869cc61a8040d2fc6079a792cb3b4cd8d30ec67eccd
6
+ metadata.gz: 4bd3a517a48151f9e50ad237f694c936e8942177ef886aa244534e45212532655d09858f5912d51a8f9f841dfa6bbf074af84c34e3f1e70a9ab781b8a001f22f
7
+ data.tar.gz: 3d012f7c84984cbb94f291aab7ea10ca0ce717ad9328042de8e07a84a9b8873bbe3ab38009e2fbb42f65714305ad5008997f01df776ad22056cacd09d3fc9b66
@@ -54,7 +54,7 @@ class DistributedPress
54
54
 
55
55
  filename = File.basename path
56
56
 
57
- Open3.popen2('tar', '--to-stdout', '--create', '--gzip', '--directory', path, '.') do |stdin, stdout, thread|
57
+ Open3.popen2('tar', '--to-stdout', '--create', '--gzip', '--dereference', '--directory', path, '.') do |stdin, stdout, thread|
58
58
  stream, body = IO.pipe
59
59
 
60
60
  # Generate a multipart body and copy contents to it.
@@ -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
- distributed_press.configure && distributed_press.publish(site.destination)
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.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: 2021-01-30 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