brainsome_typus 4.0.0.beta4 → 4.0.0.beta5

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
  SHA1:
3
- metadata.gz: 37404f04cfdf44383447781df7bd908d88d625c6
4
- data.tar.gz: a23deeae8569236e7b32bc45d05b13c1c2e41f61
3
+ metadata.gz: bd74d4113174ada3bb69202f64cb22e4206bb689
4
+ data.tar.gz: 0b818ec3b4b8105cca8f4953c4322133fe65099e
5
5
  SHA512:
6
- metadata.gz: 69a8aac32aa2feb9102e26b83870600627fd82170c8a3b0c13fc33f8ebe30c6c1216ed1dc6ef8395fd589f868683edc5f9c5a67aac5be5f88666236228030cdc
7
- data.tar.gz: c1566221377fa01376ec3a4f2cc50a3da3420e600b43e5cf512e04039f81fd53a079e8b96d039c0b8161d1cc2a259c8f561673e2d3bd88dd9669b07c512e7232
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
@@ -3,7 +3,7 @@ module Typus
3
3
  MAJOR = 4
4
4
  MINOR = 0
5
5
  TINY = 0
6
- PRE = "beta4"
6
+ PRE = "beta5"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
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.beta4
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-03 00:00:00.000000000 Z
12
+ date: 2014-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bcrypt-ruby