flareboard 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +12 -8
- data/bin/flareboard +4 -9
- metadata +12 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 83f1f573b1441781d0bb8265a6c98bfff82f7545e2f2ad124199700948a651c2
|
4
|
+
data.tar.gz: 812c660b3563917ae769b5e4085beef65396161c2c8de8dcd3f6011a6e302058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eafa99fb8a467fbedddf8b0b120aa0279abfc0d3bffc307981adda2588c8d0e2c864c4e4ea1cde5be2106d7bed6019e46824bc8e4ae11176de07c5dc0218e68
|
7
|
+
data.tar.gz: 33fbbd3173bc27ab8a09057c9a24fee3700a603ed2ea1890fa402a8ea76ae9c319e8a37a3ff54a32f822716427e05ae3bc6287de779cde39db9bc1a28565aee4
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
##What is Flareboard?
|
2
2
|
|
3
3
|
Flareboard is the way to get your [CloudFlare](http://www.cloudflare.com) stats
|
4
|
-
to display in
|
5
|
-
designed to be very easy to install
|
6
|
-
and can be run on any version of ruby
|
4
|
+
to display in [StatusBoard](http://www.panic.com/statusboard) or
|
5
|
+
[The Dash](https://thedash.com). It has been designed to be very easy to install
|
6
|
+
and use. It requires no third-party gems, and can be run on any version of ruby
|
7
|
+
from 1.9.x to 2.2.x
|
7
8
|
|
8
9
|
Add your credentials and sites to flareboard, and it will hit the CloudFlare API
|
9
10
|
to grab your stats and convert them into the JSON that Statusboard uses for
|
@@ -12,19 +13,22 @@ web server. Unless you are paying for a CloudFlare Pro account, your stats will
|
|
12
13
|
only update every 24 hours, so it's no use running flareboard more often than
|
13
14
|
that.
|
14
15
|
|
15
|
-
**Note**:
|
16
|
-
|
16
|
+
**Note**: It is no longer compatible with Ruby 1.8, as that version is no longer
|
17
|
+
being supported upstream. Please upgrade.
|
17
18
|
|
18
19
|
## Installation
|
19
20
|
|
21
|
+
### Via gem
|
22
|
+
Simply run ```gem install flareboard```
|
23
|
+
|
24
|
+
### Manual
|
20
25
|
Copy the file ```bin/flareboard``` onto your computer. Put it either in a bin
|
21
|
-
directory in your path or somewhere else.
|
22
|
-
you'll have to run ```sudo gem install json``` before it will work.
|
26
|
+
directory in your path or somewhere else.
|
23
27
|
|
24
28
|
## Configuration
|
25
29
|
|
26
30
|
There are three ways of configuring the script. Via the command-line arguments
|
27
|
-
documented in the
|
31
|
+
documented in the Usage section, via a config file (*~/.flareboard.rc*), or
|
28
32
|
by editing the script directly. In order of priority (highest to lowest), it
|
29
33
|
will use command-line options, the config file, and then the hard-coded config
|
30
34
|
hash in the script.
|
data/bin/flareboard
CHANGED
@@ -2,9 +2,6 @@
|
|
2
2
|
# @author David Bishop
|
3
3
|
|
4
4
|
require 'net/http'
|
5
|
-
if RUBY_VERSION < '1.9'
|
6
|
-
require 'net/https'
|
7
|
-
end
|
8
5
|
require 'json'
|
9
6
|
require 'optparse'
|
10
7
|
require 'yaml'
|
@@ -145,9 +142,10 @@ end
|
|
145
142
|
# The graph hash needs to match the JSON object that StatusBoard requires
|
146
143
|
graph = {
|
147
144
|
'graph' => {
|
148
|
-
'title'
|
149
|
-
'type'
|
150
|
-
'
|
145
|
+
'title' => options[:title],
|
146
|
+
'type' => options[:graph],
|
147
|
+
'refreshEveryNSeconds' => 1200,
|
148
|
+
'datasequences' => []
|
151
149
|
}
|
152
150
|
}
|
153
151
|
|
@@ -164,9 +162,6 @@ options[:sites].each_with_index do | site, key |
|
|
164
162
|
)
|
165
163
|
httpreq = Net::HTTP.new(uri.host, uri.port)
|
166
164
|
httpreq.use_ssl = true
|
167
|
-
if RUBY_VERSION < '1.9'
|
168
|
-
httpreq.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
169
|
-
end
|
170
165
|
|
171
166
|
response = httpreq.start do |http|
|
172
167
|
http.request(request)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flareboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Bishop
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: yard
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.9'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.9'
|
55
55
|
description: |-
|
56
56
|
flareboard allows you to display your CloudFlare statistics
|
57
57
|
in the Panic Software's StatusBoard app
|
@@ -67,7 +67,7 @@ homepage: http://github.com/teancom/flareboard
|
|
67
67
|
licenses:
|
68
68
|
- ISC
|
69
69
|
metadata: {}
|
70
|
-
post_install_message:
|
70
|
+
post_install_message:
|
71
71
|
rdoc_options: []
|
72
72
|
require_paths:
|
73
73
|
- lib
|
@@ -82,9 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
|
86
|
-
|
87
|
-
signing_key:
|
85
|
+
rubygems_version: 3.1.2
|
86
|
+
signing_key:
|
88
87
|
specification_version: 4
|
89
88
|
summary: flareboard gets your cloudflare stats into statusboard
|
90
89
|
test_files: []
|