rackula 1.1.3 → 1.3.0

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: '0281af1617fada7ee4c90875d489a0f681c45164fb4941718ddff54754e67a30'
4
- data.tar.gz: 727840b9497c08f9a31b13ffda2fa584c642bc00697c29370b30a04a360d4f52
3
+ metadata.gz: 2ac352b438ccb99250d72088cc04c92d4fa1087bdc54f4fd6031856285ab62fa
4
+ data.tar.gz: d1111810e83903af73c0531492912d6ca72bbb574ceacba477c5101cd5fef747
5
5
  SHA512:
6
- metadata.gz: 8b9f2d4ce3a41e1aaae806ea69d59f2673617105d874bdd42414eb2e60d8f05afcd4a2d22fd06fd560b9faee7b0ffebb685ae119ab3bf6cce8b093112172a4ab
7
- data.tar.gz: 2a2309ce12cc4679863fe97bc0d7f209ed9f20c9b968b28b86bacf099b086ce38a7738f074d3a29afd51c89cec77b27514741b2f950c8abb6664d571536d00ce
6
+ metadata.gz: e7d98444874fc7ee8875f28d062a0321dde037da16850667bc72cd66ecaf0f55eb8683e0d04c9379bebcd80982edaa45c3c0ddf387317c8ec024d94cc4bd189a
7
+ data.tar.gz: bf47a0242a7a0ce57c6c720d79f5eac43e9ebf9c93ed684d9093536af81944124d43157b24f686f01325931143786a5ebe4e7c7396240a4988e57944620a4ee9
@@ -53,9 +53,6 @@ module Rackula
53
53
  if @options[:force]
54
54
  # Delete any existing stuff:
55
55
  FileUtils.rm_rf(output_path.to_s)
56
- else
57
- # puts "Failing due to error..."
58
- raise Samovar::Failure.new("Output path already exists!")
59
56
  end
60
57
  end
61
58
 
@@ -69,7 +66,9 @@ module Rackula
69
66
  end
70
67
 
71
68
  # Generate HTML pages:
72
- system("wget", "--mirror", "--recursive", "--continue", "--convert-links", "--adjust-extension", "--no-host-directories", "--directory-prefix", output_path.to_s, "http://localhost:#{port}")
69
+ unless system("wget", "--mirror", "--recursive", "--convert-links", "--adjust-extension", "--no-host-directories", "--directory-prefix", output_path.to_s, "http://localhost:#{port}")
70
+ raise "The wget command failed!"
71
+ end
73
72
  end
74
73
 
75
74
  def serve(endpoint, root)
@@ -100,7 +99,7 @@ module Rackula
100
99
  Console.logger.info(self) {"Setting up container to serve site on port #{address.ip_port}..."}
101
100
  container = serve(endpoint, root)
102
101
 
103
- # puts "Copy and fetch site to static..."
102
+ Console.logger.info(self) {"Copy and fetch site to static..."}
104
103
  copy_and_fetch(address.ip_port, root)
105
104
  ensure
106
105
  container&.stop
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Rackula
22
- VERSION = "1.1.3"
22
+ VERSION = "1.3.0"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackula
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-18 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: falcon
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.2.22
142
+ rubygems_version: 3.1.6
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Generate a static site from any rackup compatible application.