eucalypt 0.5.3 → 0.5.4

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: 8f7a75c0cda425e57028f7feb78cb2218d8b4b9a04efcd4c317404a225469d07
4
- data.tar.gz: bdeb8c09160b6c6ecc397923e2d5e855ae87156f8649aeb08b3d7a71ebf7c67c
3
+ metadata.gz: 005bbb19c5ac76105fb268b6e1fe702b9578f6662090cdf00216db6d2cd3c176
4
+ data.tar.gz: e57af71e2008ead2059f97c9d45486d018fdd270fdd1fdecf498e8b4f49405d3
5
5
  SHA512:
6
- metadata.gz: 17f71e63591e98d0962f21e3dd5b97c323f8b2b2bea9390c009af5cbb7515090964650f9e3684798d555cd5ed43ee78b511f60a968c996187014cfe535a02d1d
7
- data.tar.gz: '08b56b4b2a5bae2dee883d72eb01f0e44198024772a901892608667fd03242d1cf0e8e430f95b7ae5d50de251dc2bf4f37f643a06eb6663f74d9e3fd51378f3e'
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, ->{ Eucalypt::Static::Router.new settings.public_folder }
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
@@ -1,3 +1,3 @@
1
1
  module Eucalypt
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
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.3
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-01 00:00:00.000000000 Z
11
+ date: 2019-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler