rackula 1.2.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rackula/command/generate.rb +3 -6
- 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: 6d1069fa368068e39037b4331da97169bea9b53ff7501424f1910f5c7ef3d1ba
|
4
|
+
data.tar.gz: c92a9c027f77a7b76be5a0d3c93d0bb234b5df3472a94d99869e48e1f4b78b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dedf5ea30984ef1a4bc5c37b2a9c8c6b6b74b9ab563c2572982168defb50e3b681a7b08bc0ef7ec3de5c9354330cd2a05679130971a11b0b32863c73ab6fba95
|
7
|
+
data.tar.gz: 71318cd35cbbc49a1a1c7342b180a2b777aa5c835b8fc8b0c26a704010437c5685097c26f9ef94e7abf20026275c4824cac2c1c2fcbf91fa66ecdd91a4ccb006
|
@@ -53,14 +53,11 @@ 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
|
|
62
59
|
# Create output directory
|
63
|
-
|
60
|
+
FileUtils.mkdir_p(output_path)
|
64
61
|
|
65
62
|
# Copy all public assets:
|
66
63
|
asset_pattern = root + @options[:public] + '*'
|
@@ -69,7 +66,7 @@ module Rackula
|
|
69
66
|
end
|
70
67
|
|
71
68
|
# Generate HTML pages:
|
72
|
-
unless 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}")
|
73
70
|
raise "The wget command failed!"
|
74
71
|
end
|
75
72
|
end
|
@@ -102,7 +99,7 @@ module Rackula
|
|
102
99
|
Console.logger.info(self) {"Setting up container to serve site on port #{address.ip_port}..."}
|
103
100
|
container = serve(endpoint, root)
|
104
101
|
|
105
|
-
|
102
|
+
Console.logger.info(self) {"Copy and fetch site to static..."}
|
106
103
|
copy_and_fetch(address.ip_port, root)
|
107
104
|
ensure
|
108
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.1
|
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.
|