filesystem-explorer 0.0.3 → 0.0.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.
- data/lib/filesystem_explorer/router.rb +4 -4
- data/lib/filesystem_explorer/version.rb +1 -1
- metadata +2 -3
- data/config/routes.rb +0 -5
@@ -1,7 +1,7 @@
|
|
1
1
|
module ActionDispatch
|
2
2
|
module Routing
|
3
3
|
class Mapper
|
4
|
-
def
|
4
|
+
def filesystem_explorer_route_options
|
5
5
|
if $filesystem_explorer_route_options.is_a?(Hash)
|
6
6
|
$filesystem_explorer_route_options.empty
|
7
7
|
else
|
@@ -20,7 +20,7 @@ module ActionDispatch
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
block.call(
|
23
|
+
block.call(filesystem_explorer_route_options || {}) if block
|
24
24
|
end
|
25
25
|
|
26
26
|
def filesystem_explorer(options = {}, &block)
|
@@ -33,8 +33,8 @@ module ActionDispatch
|
|
33
33
|
|
34
34
|
route_config.instance_eval &block if block
|
35
35
|
|
36
|
-
|
37
|
-
|
36
|
+
filesystem_explorer_route_options ||= {}
|
37
|
+
filesystem_explorer_route_options[route_config.url] ||= route_config
|
38
38
|
|
39
39
|
FilesystemExplorer.routes << route_config
|
40
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filesystem-explorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -58,7 +58,6 @@ files:
|
|
58
58
|
- app/views/filesystem_explorer/application/_file.html.erb
|
59
59
|
- app/views/filesystem_explorer/application/index.html.erb
|
60
60
|
- app/views/filesystem_explorer/application/not_found.html.erb
|
61
|
-
- config/routes.rb
|
62
61
|
- lib/filesystem-explorer.rb
|
63
62
|
- lib/filesystem_explorer/engine.rb
|
64
63
|
- lib/filesystem_explorer/filesystem_item.rb
|