draw_static 1.0.0 → 1.0.1

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: ade5c4f57646f2b8460fcc508d3ca7f864215746aeba29705bf29f82a66436ea
4
- data.tar.gz: 2accd3ae9f2aafec9f7f00699e703a92d2162b76f263c2cbcafa6b40db0c072f
3
+ metadata.gz: 86a3c493b9af23fc74a9d68ccbbdc1aa681e7f017b4c8b0f05ae28ad2b8579df
4
+ data.tar.gz: 04c89c9a4c2e137653a551db7c655971387683fb2cd4d971f5a6443fe42ce3dc
5
5
  SHA512:
6
- metadata.gz: 437520e18a1f74c59e73c0adbed5edb1af3b061d999cf152835e7ab47714168463538c7e618ad6c9c1b3f4220ead594a8934dbc2f5b03908534c46528dabf46e
7
- data.tar.gz: d40fd23bb85cb29df78ef030651c857465016109dcb42e88ef6e4a2fc64ca907454512ca5b938c9636ac7e9069815afbd293b5ccc9735f62be1949ac040248ac
6
+ metadata.gz: 1274ea3cab90a069dc8ca840fcef6fca7595a99da268abef30dfd3d212ffe706428381731c37a15e83df5f69625beee5a15ab245b42cad914ce54f5bf37842d4
7
+ data.tar.gz: bcbf44d58d8c797f7c1c01a446981063900f286bb9732c63728ac314dbe99c77c61c701113aed70c952465075c66c80a863677a6102cc0e826d83a7b68abcc32
data/lib/draw_static.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require 'pry'
3
2
 
4
3
  require_relative 'static_routes'
4
+ require_relative 'module_finder'
5
5
 
6
6
  module DrawStatic
7
7
  def draw_static(*arguments)
@@ -11,7 +11,7 @@ module DrawStatic
11
11
  end
12
12
 
13
13
  def prefixed_modules
14
- instance_variable_get('@scope')&.instance_variable_get('@hash')&.try(:[], :module)
14
+ ModuleFinder.dig(self)
15
15
  end
16
16
  end
17
17
 
data/lib/static_routes.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # get all seperate modules + controller
4
- # join by ::
5
3
  class StaticRoutes
6
4
  attr_accessor :context, :limits, :prefixed_modules
7
5
  def initialize(attributes = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draw_static
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inou Ridder