| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 18 Dec 2025 20:10:33 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100226150653
location: https://web.archive.org/web/20100226150653/https://github.com/technoweenie/sparkplug
server-timing: captures_list;dur=0.924774, exclusion.robots;dur=0.069808, exclusion.robots.policy;dur=0.054937, esindex;dur=0.014949, cdx.remote;dur=30.540617, LoadShardBlock;dur=175.218826, PetaboxLoader3.resolve;dur=43.945526, PetaboxLoader3.datanode;dur=68.325765
x-app-server: wwwb-app223-dc8
x-ts: 302
x-tr: 254
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app223; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 18 Dec 2025 20:10:35 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Fri, 26 Feb 2010 15:06:49 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "4fdb7a5b5c672d6da875f2add5e9284d"
x-archive-orig-x-runtime: 98ms
x-archive-orig-content-length: 26426
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 26 Feb 2010 15:06:53 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_14_20100226115806_crawl102-c/51_14_20100226150313_crawl101.arc.gz
server-timing: captures_list;dur=0.519974, exclusion.robots;dur=0.035369, exclusion.robots.policy;dur=0.026252, esindex;dur=0.010280, cdx.remote;dur=40.571669, LoadShardBlock;dur=1696.958487, PetaboxLoader3.resolve;dur=404.520662, PetaboxLoader3.datanode;dur=1251.809544, load_resource;dur=237.554535
x-app-server: wwwb-app223-dc8
x-ts: 200
x-tr: 2031
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
technoweenie's sparkplug at master - GitHub
This service is courtesy of Pledgie.
technoweenie / sparkplug
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Ruby Rack module for generating sparkline graphs on the fly — Read more
| name | age | message | |
|---|---|---|---|
| |
.document | Fri Oct 09 20:25:29 -0700 2009 | Initial commit to rack-sparklines. [technoweenie] |
| |
.gitignore | Sat Dec 12 14:30:27 -0800 2009 | add sparkplug web view for redis demo [technoweenie] |
| |
LICENSE | Fri Oct 09 20:25:29 -0700 2009 | Initial commit to rack-sparklines. [technoweenie] |
| |
README.rdoc | Sun Nov 01 17:05:09 -0800 2009 | change name from rack-sparklines to sparkplug [technoweenie] |
| |
Rakefile | Sun Nov 01 17:05:09 -0800 2009 | change name from rack-sparklines to sparkplug [technoweenie] |
| |
VERSION | Tue Dec 29 08:32:23 -0800 2009 | Version bump to 2.1.0 [technoweenie] |
| |
demos/ | Tue Dec 29 09:42:22 -0800 2009 | redis handler manually purges pngs [technoweenie] |
| |
lib/ | Sat Dec 12 13:00:34 -0800 2009 | favor Module#autoload [technoweenie] |
| |
sparkplug.gemspec | Tue Dec 29 08:32:44 -0800 2009 | update to 2.1.0 with redis demo [technoweenie] |
| |
test/ | Sat Dec 12 13:00:34 -0800 2009 | favor Module#autoload [technoweenie] |
README.rdoc
sparkplug
Dynamically generates sparkline graphs from a set of numbers. This is done primarily through Handlers and Cachers. Handlers know how to fetch the data, and Cachers know how to cache the generated PNG sparkline for future requests.
pub_dir = File.expand_path(File.join(File.dirname(__FILE__), 'public'))
data_dir = File.join(pub_dir, 'temps')
cache_dir = File.join(pub_dir, 'sparks')
use Sparkplug, :prefix => 'sparks',
:handler => Sparkplug::Handlers::CsvData.new(data_dir),
:cacher => Sparkplug::Cachers::Filesystem.new(cache_dir)
- An incoming request hits your Rack application at "/sparks/foo/stats.csv".
- The CSV Handler gets ‘foo/stats.csv’, and checks for this file in its data directory. It parses the first row of numbers as the set of points to plot.
- The Filesystem Cacher checks for a more recent cache. Failing that, it generates the PNG graph and writes it to the cache directory.
Mix and match your own handlers and cachers with your friends!
Demo
See demo/sparkplug_demo.rb or rack-sparklines.heroku.com/
Codes
gem install sparkplug
github.com/technoweenie/sparkplug
Copyright
Copyright © 2009 rick. See LICENSE for details.
