teamster 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 408dd6c1de8da8854d489bddfd6a08ca8543a70d
4
- data.tar.gz: 5eae8abb7fe45335457bb8d81d18411850a61b05
3
+ metadata.gz: 348c8c1afd42c4abece96405a0d49efcecb70867
4
+ data.tar.gz: dc2fe4e7da7cff2d62cd6d7a05d8e98494afd47f
5
5
  SHA512:
6
- metadata.gz: d499d7be8553ed8bf83e0dd16f3d7690238ecef12ae0c72f772b8594072b3ae5b4a07c5f410e3f245f467d43b7f921cb4307b82ee9811f37a76cbfc8ff712460
7
- data.tar.gz: 1dd7a0f717d19dfc0222e88faa092106ea36d7441ee7905638e513823b7cd15d850f1611d4dac142e9251c49371fcf7de42a36caff573dbeb3b62d92aef2f717
6
+ metadata.gz: 05a62a08f6120de999606f527f14fbdba316de534288bd2009e5d9f8148d3a8a2edb45aaf6af2ec870becbd0609042e249ae1ea98b438e75ad3a86aeba148e98
7
+ data.tar.gz: 077374dae41ced81de9f7be7c253b3e32355b8f2576a71dc46d669205f4bc5c7c1ab40f900b5fd79c76f0c783adc6c985067a8bf585cce52a8027311130e0be1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -0,0 +1,4 @@
1
+ <div id="login-required">
2
+ <p class='text-center'>Login is required to access this page.</p>
3
+ <p class='text-center'>Please <a href='/login'>login</a> to continue.</p>
4
+ </div>
@@ -17,6 +17,10 @@ module Teamster
17
17
  true
18
18
  end
19
19
 
20
+ def login_required
21
+ halt(403, erb(:login_required)) unless session[:current_user]
22
+ end
23
+
20
24
  def include_bootstrap_css
21
25
  %q~<link rel='stylesheet' href='/css/bootstrap.min.css' type='text/css'>
22
26
  <link rel='stylesheet' href='/css/bootstrap-theme.min.css' type='text/css'>~
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nur Muhammad Bin Sirat
@@ -67,6 +67,7 @@ files:
67
67
  - content/views/footer.erb
68
68
  - content/views/index.erb
69
69
  - content/views/layout.erb
70
+ - content/views/login_required.erb
70
71
  - content/views/navbar.erb
71
72
  - content/views/no_summary.erb
72
73
  - lib/teamster.rb