phlexite 0.1.2 → 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: f44283c9cc317ea1d67053ed172e2e618c7bdb6b6bf70e5ebe35bed54bb0f646
4
- data.tar.gz: 6874301c6d77c7c41aefa64edbf7411447fe26c7b32b99c56edb9ed026427765
3
+ metadata.gz: 520b8bfb1862cdf7fd0b22dfbc9e441ac011c76eedb42a40c85f2eb1682e329a
4
+ data.tar.gz: 70c50a2bd83965ce006e262268d6e5110c871b8ac42372a3dd8b889a3968de38
5
5
  SHA512:
6
- metadata.gz: 5f647806e0d26a36eff4387b059ed69075d0a399cd583a66e098baca5c4accb05aa687ed21cb24eedd4432e53599ac18b5fa9e4063e433b1c9b0f8e8387b215b
7
- data.tar.gz: a46af8a1a0029223eaa0c477999f63e119e447c8a2a8d432bdb0c14b62ed2721aca07507d1dc67ee5167247217598b2139377ed8850e608fbbb881ea9cba77c2
6
+ metadata.gz: 722d435572366e79cfd515ef854c6d5ad0663214a9b7d121cc80a794864e4cd8ca81b3dc9db870b6b9768991d7fb02be026d49b1ed656a5ae9a1744a5fcb4b56
7
+ data.tar.gz: 9d16f8e277670c5261ce7902af40d9770605affbbe77bcf9ce20cc19f6fb5e7f7c2038cef1fe839b84bff505af55d03faf8fe2d59fe5f299fa76a8a39606884f
data/Steepfile CHANGED
@@ -6,6 +6,7 @@ target :lib do
6
6
  check "lib" # Directory name
7
7
  # ignore "lib/templates/*.rb"
8
8
 
9
+ library "fileutils"
9
10
  # library "pathname" # Standard libraries
10
11
  # library "strong_json" # Gems
11
12
  # library "phlex"
@@ -17,6 +17,12 @@ class Phlexite::Router
17
17
  File::write(out, component.call)
18
18
  end
19
19
 
20
+ def mount(local_directory, on:)
21
+ out = full_out_path(on)
22
+ FileUtils::mkdir_p out
23
+ FileUtils::cp_r File::join(local_directory, "."), out
24
+ end
25
+
20
26
  private
21
27
 
22
28
  def full_out_path(out_path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phlexite
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/sig/phlexite.rbs CHANGED
@@ -8,6 +8,7 @@ module Phlexite
8
8
  def initialize: (String, Site) -> void
9
9
  def page: (String, untyped) -> void
10
10
  def group: (String) { (Router) -> void } -> void
11
+ def mount: (String, on: String) -> void
11
12
 
12
13
  private
13
14
  def full_out_path: (String) -> String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleks Rūtiņš