device_tracker 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: 5d723cc5a90dabf8893383431a55eadc23c59414
4
- data.tar.gz: 7e9d8ed84ab3d673f621b1ff3af1fd21df0eed34
3
+ metadata.gz: 4850393de565e8f9fb48c1e33b946774ec5a8c7a
4
+ data.tar.gz: 6e4bb8cf4786264e0476e4e9c283c42e8c7aa2d9
5
5
  SHA512:
6
- metadata.gz: 5eff08a5da86eb468b2f88698ee2abdb20c27f2577fd0223211a292121440888272bed0ec12c03af5bb4019b052695c55b846c9e4ba8ae10a41fb7145347eced
7
- data.tar.gz: 68c74502043868dd62ccdcb41cd216d44c6e3918107fb4565f55c6f6c05516ab47c61acc0398f7a2a4a10ac24e77101be6c718dbddf787a9555e988ccaf2f7f1
6
+ metadata.gz: 3d9221444eca2bb21f207f8ce96dc7abff668302fd2b6fa307b8d4ff4cb82292024d05a5e45f63b135fddcebc22071efba80c526122c71cfae234e76b3c70d99
7
+ data.tar.gz: 0d5d58f76f567f45014ada49b59d68229f582fae350b50251e890dfd8b10dabd213c348041cec18d6e20bba75529efa2d10880e9c4612400f3225eb969724305
data/.rspec CHANGED
@@ -1,2 +1,2 @@
1
1
  --color
2
- --format NyanCatMusicFormatter
2
+ --format NyanCatFormatter
@@ -17,6 +17,7 @@ module DeviceTracker
17
17
  end
18
18
 
19
19
  get '/new' do
20
+ @title = 'Register'
20
21
  erb :"users/new"
21
22
  end
22
23
 
@@ -48,6 +48,7 @@ module DeviceTracker
48
48
  end
49
49
 
50
50
  def send_email(data)
51
+ return if Sinatra::Base.test?
51
52
  Pony.mail(
52
53
  to: data[:to],
53
54
  from: data[:from] || 'no-reply@device-tracker',
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module DeviceTracker
3
- VERSION = "0.3.0"
3
+ VERSION = '0.3.1'
4
4
  end
@@ -26,7 +26,7 @@
26
26
  <meta name="msapplication-config" content="/favicon/browserconfig.xml">
27
27
  <meta name="theme-color" content="#ffffff">
28
28
 
29
- <title><%= @title || "Home" %> | BBC Device Tracker </title>
29
+ <title><%= @title || "Home" %> | BBC Device Tracker</title>
30
30
 
31
31
  <link rel="stylesheet" href="https://bootswatch.com/flatly/bootstrap.min.css">
32
32
  <link rel="stylesheet" href="/css/custom.css">
@@ -1,12 +1,13 @@
1
1
  <div class="jumbotron">
2
2
  <div class="container">
3
3
  <h1>Device Tracker</h1>
4
- <p>Welcome to the BBC Sport device <b>Device Tracker</b>. The aim of this application is to monitor
5
- the use of devices across BBC Sport and stop them going walkies!</p>
6
- <p><a class="btn btn-primary btn-lg" href="/devices" role="button">Checkout a Device</a></p>
4
+ <p>Welcome to the BBC Sport <b>Device Tracker</b>. The aim of this application is to monitor
5
+ the use of devices and to hopefully stop them going walkies!</p>
6
+ <p><a class="btn btn-primary" href="/devices" role="button">Checkout a Device</a></p>
7
7
  </div>
8
8
  </div>
9
9
 
10
+ <% unless @devices.empty? %>
10
11
  <table class="table table-hover">
11
12
  <thead>
12
13
  <tr>
@@ -25,6 +26,7 @@
25
26
  <% end %>
26
27
  </tbody>
27
28
  </table>
29
+ <% end %>
28
30
 
29
31
  <script type="text/javascript">
30
32
  $(document).ready(function() {
@@ -1,3 +1,8 @@
1
+ <div class="alert alert-warning" role="alert">
2
+ <strong>Important notice:</strong>
3
+ Please do not use your <strong>BBC</strong> account password for obvious reasons
4
+ </div>
5
+
1
6
  <h2>Register an Account</h2>
2
7
  <br>
3
8
 
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Ruston