uzebba 0.1.1 → 0.1.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: a8b259d67e9a6c66c7fa9afa33cd855cd5ddb77d
4
- data.tar.gz: f63ca83b5491364a741358545a1d0b1b94cd3989
3
+ metadata.gz: bad10e9d3910b5ce88eebec5e32464bc3d7e8979
4
+ data.tar.gz: 58bb72c18db36415d840ec7820d7ce3cf00402f4
5
5
  SHA512:
6
- metadata.gz: f4f2447f53c030db0ee140bfb6bb375a0e69a924bf82a6f48b06227e3adfd14686d62cba6cb5e27fe30cd6ee0b41e655e8b76848a6ea86b54c84cbf4a6090fd2
7
- data.tar.gz: 402abaad15c7fd3fb77f4d89f37eabb9d652ae9d1847e66a532a36b262478ca4560f491ab6c2583648e2edf5a2c7928c3475735959c837dbcb94477d85a44149
6
+ metadata.gz: 22fc7e0bea18e6fb877bce748fa8d9ded49462818b762ddaa333cecd52d59350dd23cd457973b2ece8f1459bdc9168b538e38120529c7a1acefed524dba7ebff
7
+ data.tar.gz: 35c080f5197312da6883af4a00f2140beff191234592eaf883d966660f2401deb0bb93037f8abd4543c4e2d525dea661990eff0934dd394f73ce818d35a41f48
data/README.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  ## Installation
6
6
  <strong>1. Add this line to your application's Gemfile:</strong>
7
+ ```ruby
8
+ gem 'uzebba'
9
+ ```
10
+
11
+ OR get it from git:
12
+
7
13
 
8
14
  ```ruby
9
15
  gem 'uzebba', git: 'git://github.com/ohiodn8/uzebba.git'
@@ -15,7 +21,7 @@ $ bundle
15
21
  ```
16
22
 
17
23
  Or install it yourself as:
18
- <pre><code><strike>$ gem install uzebba </strike></code></pre>
24
+ <pre><code>$ gem install uzebba </code></pre>
19
25
 
20
26
 
21
27
  <hr>
@@ -6,12 +6,13 @@
6
6
  //= require chartkick
7
7
 
8
8
  // Ajax Controller for all terminal ID
9
- $(function() {
9
+ $(function timeout() {
10
10
  if ($('#all_terminals').length) {
11
- setInterval(function(){
11
+ setTimeout(function(){
12
12
  $.getScript(window.location.pathname, function(data, textStatus, jqxhr) {
13
13
  console.log('Load was performed.');
14
14
  });
15
+ timeout();
15
16
  },3000);
16
17
  }
17
- });
18
+ });
@@ -1,6 +1,4 @@
1
- module Uzebba
2
- class ApplicationController < ActionController::Base
1
+ class Uzebba::ApplicationController < ::ApplicationController
3
2
  protect_from_forgery with: :exception
4
3
 
5
- end
6
4
  end
@@ -1,5 +1,5 @@
1
1
  <h3>
2
- MEMORY [ TotalPhysicalMemory: <%= total_mem %> MB ]
2
+ MEMORY [ TotalMemory: <%= total_mem %> MB ]
3
3
  </h3>
4
4
  <%= area_chart Uzebba::Terminal.group_by_minute(:created_at).maximum(:memory_usage), min: @terminal.memory_usage.to_d - 200, xtitle: "Time", ytitle: "in Megabytes" %>
5
5
  <br>
@@ -1,4 +1,12 @@
1
+ <div id="head">
2
+ <title>Uzebba</title>
3
+ <%= csrf_meta_tags %>
4
+
5
+ <%= stylesheet_link_tag "uzebba/uzebba", media: "all" %>
6
+ <%= javascript_include_tag "uzebba/uzebba" %>
7
+ </div>
8
+
1
9
  <%= render "uzebba/terminals/system_info" %>
2
10
  <div id="all_terminals">
3
11
  <%= render "uzebba/terminals/terminals" %>
4
- </div>
12
+ </div>
@@ -1,3 +1,3 @@
1
1
  module Uzebba
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uzebba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - odion ohio
@@ -137,7 +137,6 @@ files:
137
137
  - app/mailers/uzebba/application_mailer.rb
138
138
  - app/models/uzebba/application_record.rb
139
139
  - app/models/uzebba/terminal.rb
140
- - app/views/layouts/uzebba/application.html.erb
141
140
  - app/views/uzebba/terminals/_cpu_usage.html.erb
142
141
  - app/views/uzebba/terminals/_memory_usage.html.erb
143
142
  - app/views/uzebba/terminals/_system_info.html.erb
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Uzebba</title>
5
- <%= csrf_meta_tags %>
6
-
7
- <%= stylesheet_link_tag "uzebba/uzebba", media: "all" %>
8
- <%= javascript_include_tag "uzebba/uzebba" %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- </body>
15
- </html>