device_tracker 0.3.1 → 0.3.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 018a85e0e147456124384689fa9d3e4b1660f984
|
|
4
|
+
data.tar.gz: e62080ad81c9eccbba8d9cc77009ccbeb29c39e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e51302f55c8d043b3930546272fe6f5afbd68e6e6afbf123b863837adeb3e7d201398cb6355c05879d673b5856911ab299714aa6333d0b63eff757d7e0d09c6
|
|
7
|
+
data.tar.gz: 3ea080d528504d793f583d7a9afde1e8d5cc3eb6fad388fa8fc997d2396b7186a63aaf01c3f1402eff4a74ec6ed729eadce8012d4f4472414b0676f1fc80a346
|
data/exe/device_tracker
CHANGED
|
@@ -72,8 +72,10 @@ require_relative '../lib/device_tracker/dependencies'
|
|
|
72
72
|
|
|
73
73
|
Pony.options = pony_options
|
|
74
74
|
|
|
75
|
-
DeviceTracker::ApplicationController.
|
|
76
|
-
|
|
75
|
+
DeviceTracker::ApplicationController.use Rack::Session::Cookie, :key => 'rack.session',
|
|
76
|
+
:path => '/',
|
|
77
|
+
:secret => config['session_secret']
|
|
78
|
+
|
|
77
79
|
DeviceTracker::ApplicationController.set :google_maps_api_key,
|
|
78
80
|
config['google_maps_api_key']
|
|
79
81
|
port = config['port'] || '3000'
|
|
@@ -8,7 +8,6 @@ module DeviceTracker
|
|
|
8
8
|
register Sinatra::Partial
|
|
9
9
|
register Sinatra::Flash
|
|
10
10
|
|
|
11
|
-
enable :sessions
|
|
12
11
|
enable :partial_underscores
|
|
13
12
|
|
|
14
13
|
set :views, File.expand_path('../../views', __FILE__)
|
|
@@ -182,6 +181,7 @@ module DeviceTracker
|
|
|
182
181
|
|
|
183
182
|
get '/logout' do
|
|
184
183
|
session[:user] = nil
|
|
184
|
+
session.clear
|
|
185
185
|
redirect to('/')
|
|
186
186
|
end
|
|
187
187
|
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<div class="alert alert-info" role="alert">
|
|
2
|
+
<strong>Important notice:</strong>
|
|
3
|
+
Please do not use your <strong>BBC</strong> account password for obvious reasons
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
<form class="form-signin" method="post" action="/login">
|
|
2
8
|
<h2 class="form-signin-heading">Please sign in</h2>
|
|
3
9
|
<label for="email" class="sr-only">Email address</label>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: device_tracker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Ruston
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-11-
|
|
12
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|