dailyshare 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module DailyShare
4
4
 
5
5
  class App < Sinatra::Base
6
6
 
7
- get '/admin/?' do
7
+ get '/admin' do
8
8
  protected!
9
9
  redirect '/'
10
10
  end
@@ -31,7 +31,7 @@ module DailyShare
31
31
  ##
32
32
  # Receive emailed photos via Postmark.
33
33
  #
34
- post '/receiver/?' do
34
+ post '/receiver' do
35
35
  # parse post data
36
36
  data = JSON.parse(request.body.read)
37
37
 
@@ -15,7 +15,7 @@ module DailyShare
15
15
  slim :logout
16
16
  end
17
17
 
18
- get '/:y/:m/:d?/?' do
18
+ get '/:y/:m/:d' do
19
19
  begin
20
20
  date = date_from_params(params)
21
21
  context = context_from_date(date)
@@ -31,7 +31,7 @@ module DailyShare
31
31
  end
32
32
  end
33
33
 
34
- get '/:name/?' do
34
+ get '/:name' do
35
35
  if (member = Member.byName(params[:name])).nil?
36
36
  redirect request.referrer
37
37
  end
@@ -39,7 +39,7 @@ module DailyShare
39
39
  slim :member, :locals => { :photos => member.photos }
40
40
  end
41
41
 
42
- get '/:name/missing/?' do
42
+ get '/:name/missing' do
43
43
  if (member = Member.byName(params[:name])).nil?
44
44
  redirect request.referrer
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module DailyShare
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.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.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: