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 +4 -4
- data/lib/rackula/command/generate.rb +4 -5
- data/lib/rackula/version.rb +1 -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: 2ac352b438ccb99250d72088cc04c92d4fa1087bdc54f4fd6031856285ab62fa
|
|
4
|
+
data.tar.gz: d1111810e83903af73c0531492912d6ca72bbb574ceacba477c5101cd5fef747
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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", "--
|
|
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
|
-
|
|
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
|
data/lib/rackula/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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.
|