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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a65b358d0a9a1ac24b53cdaee0266caf8aa001e2be84adb6e341e14be0368b55
4
- data.tar.gz: 733ee30905600dc2a1f705bfe1c58fbbc4c3c271743d269a2328765a42714fc6
3
+ metadata.gz: 6d1069fa368068e39037b4331da97169bea9b53ff7501424f1910f5c7ef3d1ba
4
+ data.tar.gz: c92a9c027f77a7b76be5a0d3c93d0bb234b5df3472a94d99869e48e1f4b78b92
5
5
  SHA512:
6
- metadata.gz: 5b29df5d58b1b68f899b5b08d6286d637431053d5e4821abb5e3154a0835459ad993f7cad057c2e989d60c47be1a0b075b2310532f80e4a98b0e2c75010762ae
7
- data.tar.gz: 88a9686c865cf3697edf7938268fdd94e9abca35c9295c7880cc1e2365c9b6959f674392d5ab85551d405178591f19f7bed62d6c439168669148b2325cf9f19e
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
- Dir.mkdir(output_path)
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", "--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}")
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
- # puts "Copy and fetch site to static..."
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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Rackula
22
- VERSION = "1.2.0"
22
+ VERSION = "1.3.1"
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.2.0
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: 2021-12-10 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.32
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.