flareboard 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +12 -8
  3. data/bin/flareboard +4 -9
  4. metadata +12 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0d2579b252fee593a40c48761c6ac965bab4b39e
4
- data.tar.gz: a9673657a91d16531d9f40fa8555aefa8d6a7706
2
+ SHA256:
3
+ metadata.gz: 83f1f573b1441781d0bb8265a6c98bfff82f7545e2f2ad124199700948a651c2
4
+ data.tar.gz: 812c660b3563917ae769b5e4085beef65396161c2c8de8dcd3f6011a6e302058
5
5
  SHA512:
6
- metadata.gz: d7032d8918a66d9ef8f63cee3fe859a8afb95b6034d1bc138ed0aa77b86410d0f2db1d69ae80d43e44855d98c820639e0ac82be51193de62db12186b5d3f5bc4
7
- data.tar.gz: 5856f2bdf2487914646e2a3de877aa29f0bd32cd5458617438d9c0a66152c00236ed1826f360820563175483d06a38b2a665e4e523993f8c8a21dbb2a24b95d4
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 your [StatusBoard](http://www.panic.com/statusboard). It has been
5
- designed to be very easy to install and use. It requires no third-party gems,
6
- and can be run on any version of ruby from 1.8.7 to 2.1.1.
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**: For compatibility with 1.8.7. you *will* have to install the JSON gem.
16
- Also, you have my sympathies for having to use 1.8.7.
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. If you are using ruby 1.8.7, then
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 previous section, via a config file (*~/.flareboard.rc*), or
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.
@@ -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' => options[:title],
149
- 'type' => options[:graph],
150
- 'datasequences' => []
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.1
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: 2014-07-05 00:00:00.000000000 Z
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: '1.4'
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: '1.4'
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: '10'
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: '10'
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.8'
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.8'
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
- rubyforge_project: flareboard
86
- rubygems_version: 2.2.2
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: []