brainsome_typus 4.0.0.beta4 → 4.0.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/typus/engine.rb +6 -6
- data/lib/typus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd74d4113174ada3bb69202f64cb22e4206bb689
|
4
|
+
data.tar.gz: 0b818ec3b4b8105cca8f4953c4322133fe65099e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1f261edb7da23ecfa4fb63b9137a41d4e1227a7d0de32b9aca3c93a59477ee2f54ec599b4a0f9c5a6de06d23815cec386cacb1874e28de178c0b06155f3b5ee
|
7
|
+
data.tar.gz: 001630953052807b7951d387c11e16a91d15ca205d6243a79d0cf0ad6f7cab4d88f6d6d550fed185a0dcc6bc5090646dc1fc6a82c04cc20755dab2b6dfd257e8
|
data/lib/typus/engine.rb
CHANGED
@@ -20,13 +20,13 @@ module Admin
|
|
20
20
|
app.routes.append do
|
21
21
|
routes_block = lambda do
|
22
22
|
|
23
|
-
dashboard = Typus.subdomain ? "/dashboard" : "/admin/dashboard"
|
23
|
+
dashboard = ::Typus.subdomain ? "/dashboard" : "/admin/dashboard"
|
24
24
|
|
25
25
|
get "/" => redirect(dashboard)
|
26
26
|
get "dashboard" => "dashboard#index", :as => "dashboard_index"
|
27
27
|
get "dashboard/:application" => "dashboard#show", :as => "dashboard"
|
28
28
|
|
29
|
-
if Typus.authentication == :session
|
29
|
+
if ::Typus.authentication == :session
|
30
30
|
resource :session, :only => [:new, :create], :controller => :session do
|
31
31
|
delete :destroy, :as => "destroy"
|
32
32
|
end
|
@@ -39,22 +39,22 @@ module Admin
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
Typus.models.map(&:to_resource).each do |_resource|
|
42
|
+
::Typus.models.map(&:to_resource).each do |_resource|
|
43
43
|
get "#{_resource}(/:action(/:id))(.:format)", :controller => _resource
|
44
44
|
post "#{_resource}(/:action(/:id))(.:format)", :controller => _resource
|
45
45
|
patch "#{_resource}(/:action(/:id))(.:format)", :controller => _resource
|
46
46
|
delete "#{_resource}(/:action(/:id))(.:format)", :controller => _resource
|
47
47
|
end
|
48
48
|
|
49
|
-
Typus.resources.map(&:underscore).each do |_resource|
|
49
|
+
::Typus.resources.map(&:underscore).each do |_resource|
|
50
50
|
get "#{_resource}(/:action(/:id))(.:format)", :controller => _resource
|
51
51
|
post "#{_resource}(/:action(/:id))(.:format)", :controller => _resource
|
52
52
|
end
|
53
53
|
|
54
54
|
end
|
55
55
|
|
56
|
-
if Typus.subdomain
|
57
|
-
constraints :subdomain => Typus.subdomain do
|
56
|
+
if ::Typus.subdomain
|
57
|
+
constraints :subdomain => ::Typus.subdomain do
|
58
58
|
namespace :admin, :path => "", &routes_block
|
59
59
|
end
|
60
60
|
else
|
data/lib/typus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brainsome_typus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.beta5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesc Esplugas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bcrypt-ruby
|