focuslight 0.1.4 → 0.2.0
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 +5 -5
- data/.env +1 -0
- data/.travis.yml +7 -3
- data/CHANGELOG.md +12 -0
- data/README.md +10 -1
- data/view/view_graph.erb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 83dfd5377204f42b008c8b114c0fd80bed1cd30fa059e0eda8757cec8b4b9a8c
|
4
|
+
data.tar.gz: 329e446473f1bf36da3dbe2b41bb33118ff955d227b9634b145e2407d3166a09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be7a5c2392a40aa616cd7fed9466b083b8c1b0a5bd35f701d29f7222c9c76c80be184816766cdb6d9794b14ce16084df39f498f44ddcb862edcb6217b753e3e7
|
7
|
+
data.tar.gz: 17442a08c7b0cc21b6b37c129c0686bafcbf657827c47202df8c9196a93f4ced6e6276be2615ed68d9aa9e49ea567a2935769eb19469ae062d179cced64bd5c2
|
data/.env
CHANGED
data/.travis.yml
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
+
language: ruby
|
1
2
|
rvm:
|
2
|
-
- 2.
|
3
|
-
- 2.1
|
3
|
+
- 2.5
|
4
4
|
gemfile:
|
5
5
|
- Gemfile
|
6
|
+
bundler_args: --deployment
|
7
|
+
cache: bundler
|
6
8
|
before_install:
|
7
|
-
- sudo apt-get install rrdtool librrd-dev
|
9
|
+
- sudo apt-get install rrdtool librrd-dev sqlite3 libsqlite3-dev
|
10
|
+
- gem update --system
|
11
|
+
- gem install bundler
|
8
12
|
before_script:
|
9
13
|
- bundle exec focuslight init
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -25,7 +25,7 @@ RRDTool and its dependencies must be installed before installing Focuslight.
|
|
25
25
|
|
26
26
|
## Installation
|
27
27
|
|
28
|
-
Install focuslight with Ruby 2.
|
28
|
+
Install focuslight with Ruby 2.1 or later.
|
29
29
|
|
30
30
|
### Gem package
|
31
31
|
|
@@ -85,6 +85,7 @@ HOST=0.0.0.0
|
|
85
85
|
# 1MIN_METRICS=n
|
86
86
|
FLOAT_SUPPORT=n # y
|
87
87
|
DBURL=sqlite://data/gforecast.db
|
88
|
+
DBTIMEOUT=60000
|
88
89
|
# DBURL=mysql2://root:@localhost/focuslight
|
89
90
|
# RRDCACHED=n
|
90
91
|
# MOUNT=/
|
@@ -97,6 +98,14 @@ LOG_LEVEL=warn
|
|
97
98
|
1. Copy GrowthForecast's `datadir` directory (and its contents) to `./data` (or where you specified)
|
98
99
|
1. Execute Focuslight
|
99
100
|
|
101
|
+
## Example: Creating a New Graph
|
102
|
+
|
103
|
+
Using curl:
|
104
|
+
|
105
|
+
```
|
106
|
+
$ curl -F number=10 http://localhost:5125/api/socialgame/member/register
|
107
|
+
```
|
108
|
+
|
100
109
|
## TODO
|
101
110
|
|
102
111
|
* Merge GrowthForecast's commits after Jan 09, 2014
|
data/view/view_graph.erb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<li class="prev <%= params[:t] == 'sh' ? 'active' : '' %>"><a href="<%= url_for link_path, t:'sh' %>">hour・8hours(1min)</a></li>
|
4
4
|
<li class="prev <%= params[:t] == 'sd' ? 'active' : '' %>"><a href="<%= url_for link_path, t:'sd' %>">day・3days(1min)</a></li>
|
5
5
|
<li class="prev <%= params[:t] == 'h' ? 'active' : '' %>"><a href="<%= url_for link_path, t:'h' %>">hour・halfday</a></li>
|
6
|
-
<li class="<%= ['h','m','sh','sd'].include?(params[:t]) ? '' : '
|
6
|
+
<li class="<%= ['h','m','sh','sd'].include?(params[:t]) ? '' : 'active' %>"><a href="<%= url_for link_path %>">day・week</a></li>
|
7
7
|
<li class="next <%= params[:t] == 'm' ? 'active' : '' %>"><a href="<%= url_for link_path, t:'m' %>">month・year</a></li>
|
8
8
|
</ul>
|
9
9
|
<div class="clearfix"></div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: focuslight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2019-04-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -295,6 +295,7 @@ files:
|
|
295
295
|
- ".travis.yml"
|
296
296
|
- CHANGELOG.md
|
297
297
|
- Gemfile
|
298
|
+
- Gemfile.lock
|
298
299
|
- LICENSE.txt
|
299
300
|
- Procfile
|
300
301
|
- README.md
|
@@ -362,7 +363,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
362
363
|
version: '0'
|
363
364
|
requirements: []
|
364
365
|
rubyforge_project:
|
365
|
-
rubygems_version: 2.
|
366
|
+
rubygems_version: 2.7.6
|
366
367
|
signing_key:
|
367
368
|
specification_version: 4
|
368
369
|
summary: Lightning Fast Graphing/Visualization, built on RRDTool
|