dailyshare 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,6 @@ module DailyShare
2
2
 
3
3
  class App < Sinatra::Base
4
4
 
5
-
6
5
  get '/' do
7
6
  context = context_from_date(Date.today)
8
7
  @title = "#{CONFIG['seo']['title']} - day #{context[:count]}"
@@ -25,6 +24,11 @@ module DailyShare
25
24
  end
26
25
  end
27
26
 
27
+ get '/admin' do
28
+ protected!
29
+ redirect '/'
30
+ end
31
+
28
32
  get '/:name' do
29
33
  if (member = Member.byName(params[:name])).nil?
30
34
  redirect request.referrer
@@ -40,11 +44,6 @@ module DailyShare
40
44
  slim :member_missing, :locals => { :photos => member.missingPhotos }
41
45
  end
42
46
 
43
- get '/admin' do
44
- protected!
45
- redirect '/'
46
- end
47
-
48
47
  get '/logout' do
49
48
  session.delete(:member_id)
50
49
  session.delete(:member_name)
@@ -1,3 +1,3 @@
1
1
  module DailyShare
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dailyshare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: