focuslight 0.1.4 → 0.2.0

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
- SHA1:
3
- metadata.gz: 51b11a9f7f6bda320667d5ae7b21209d5191653d
4
- data.tar.gz: c03705eec5c79ba6a0a958c60081dc8d8140cf9b
2
+ SHA256:
3
+ metadata.gz: 83dfd5377204f42b008c8b114c0fd80bed1cd30fa059e0eda8757cec8b4b9a8c
4
+ data.tar.gz: 329e446473f1bf36da3dbe2b41bb33118ff955d227b9634b145e2407d3166a09
5
5
  SHA512:
6
- metadata.gz: d121500a5835a361d07d43dd8a43a5547fb3fa3b00df0a538ba292a18cb0fc563a5029d2061c2834a5beedccd4bbbfc8803b1e0d9f3a31c205d77696c9e35cb3
7
- data.tar.gz: b580aee081ec57efd5dd17b5f7e74e43db9f59c55f41fb46c2969dde3ff5591e44afda6585bc7c261a6a45cad02cbaa2940367dc4b47709cd57d8093fe3b08a2
6
+ metadata.gz: be7a5c2392a40aa616cd7fed9466b083b8c1b0a5bd35f701d29f7222c9c76c80be184816766cdb6d9794b14ce16084df39f498f44ddcb862edcb6217b753e3e7
7
+ data.tar.gz: 17442a08c7b0cc21b6b37c129c0686bafcbf657827c47202df8c9196a93f4ced6e6276be2615ed68d9aa9e49ea567a2935769eb19469ae062d179cced64bd5c2
data/.env CHANGED
@@ -6,6 +6,7 @@ HOST=0.0.0.0
6
6
  # 1MIN_METRICS=n
7
7
  FLOAT_SUPPORT=n # y
8
8
  DBURL=sqlite://data/gforecast.db
9
+ DBTIMEOUT=60000
9
10
  # DBURL=mysql2://root:@localhost/focuslight
10
11
  # RRDCACHED=n
11
12
  # MOUNT=/
data/.travis.yml CHANGED
@@ -1,9 +1,13 @@
1
+ language: ruby
1
2
  rvm:
2
- - 2.0.0
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
@@ -1,3 +1,15 @@
1
+ # 0.2.0 (2019/04/20)
2
+
3
+ Enhancements:
4
+
5
+ * Support Ruby version 2.5 higher
6
+
7
+ Fixes:
8
+
9
+ * Security fix:
10
+ * ffi, rack, rack-protection
11
+ * Fix ulimti/llimit check
12
+
1
13
  # 0.1.4 (2014/06/11)
2
14
 
3
15
  Enhancements:
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.0 or later.
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]) ? '' : 'activate' %>"><a href="<%= url_for link_path %>">day・week</a></li>
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.1.4
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: 2014-06-11 00:00:00.000000000 Z
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.2.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