eucalypt 0.5.3 → 0.5.4
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/eucalypt/core/helpers/static.rb +1 -3
- data/lib/eucalypt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 005bbb19c5ac76105fb268b6e1fe702b9578f6662090cdf00216db6d2cd3c176
|
|
4
|
+
data.tar.gz: e57af71e2008ead2059f97c9d45486d018fdd270fdd1fdecf498e8b4f49405d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21fb4ea75dd4ef56019cbf80cabdce84a16bdc7fafa0577af1ebf85fcf9f061836b8d06e7a8045faef63782e62d66450dcfdec5907c7b219059a4af695bc41a5
|
|
7
|
+
data.tar.gz: 226b4bd5c05bb8d0305ac0a86a79452543676c9a45fd29eb8bab2a0145aeade7bce7b2642102a6b2d1668f2b2f595483cea4cb92949367a3100dd2cf69ab70d9
|
|
@@ -16,13 +16,11 @@ module Eucalypt
|
|
|
16
16
|
raise ArgumentError.new("Invalid keyword argument #{aliases} for 'aliases' - Expected Array of route names (preceded by /)") unless aliases.all?{|a| a.start_with? '/'}
|
|
17
17
|
@routes << {file: file, aliases: aliases}
|
|
18
18
|
end
|
|
19
|
-
|
|
20
|
-
alias_method :<<, :route
|
|
21
19
|
end
|
|
22
20
|
end
|
|
23
21
|
|
|
24
22
|
class ApplicationController < Sinatra::Base
|
|
25
|
-
set :static_router,
|
|
23
|
+
set :static_router, Eucalypt::Static::Router.new(settings.public_folder)
|
|
26
24
|
|
|
27
25
|
def self.static(file = nil, aliases: [])
|
|
28
26
|
if settings.static_router.is_a? Eucalypt::Static::Router
|
data/lib/eucalypt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eucalypt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Edwin Onuonga
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|