bruce-bumpspark 1.0.3 → 1.0.4

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.
@@ -1,26 +1,38 @@
1
1
  # Bumpspark
2
2
 
3
- A modified copy of _why's `bumpspark' code, originally discussed and
4
- collaborated on at [RedHanded] [1], built out a gem suitable for
5
- inclusion in Rails projects (and standalone Ruby code).
6
-
7
- This version of the library generates a transparent PNG.
3
+ Generate "bumpspark"-style sparklines from Ruby & Rails.
8
4
 
9
- Many thanks to the various collaborators:
5
+ Note: This library is based on _why's `bumpspark' code, originally discussed and
6
+ collaborated on at [RedHanded] [1]. It has been refactored and built out as
7
+ a gem suitable for inclusion in Rails projects (and standalone Ruby code).
8
+
9
+ Bumpsparks are sparklines which show discrete data points and highlight
10
+ extremes. If you like Tufte and _why, you'll probably like these.
11
+
12
+ ## Credits
13
+
14
+ Thanks to the various collaborators on _why's original post:
10
15
 
11
16
  * _why (concept, BMP implementation)
12
17
  * jzp (png)
13
18
  * MenTaLguY (transparency)
14
19
 
20
+ ## Installation
21
+
22
+ sudo gem install bruce-bumpspark --source http://gems.github.com
23
+
15
24
  ## Usage
16
25
 
17
26
  ### From Rails
18
27
 
19
- 1. Include the gem as a dependency.
28
+ 1. Include the gem as a dependency in `config/environment.rb`
29
+
30
+ config.gem 'bruce-bumpspark', :lib => 'bumpspark', :source => 'http://gems.github.com'
31
+
20
32
  2. Use `bumpspark_tag` from your views or helpers, passing it the data points
21
33
  you'd like graphed.
22
34
 
23
- <%= bumpspark_tag [12, 34, 12, 42, 12, 23] %>
35
+ <%= bumpspark_tag [12, 34, 12, 42, 12, 23] %>
24
36
 
25
37
  ## From Ruby
26
38
 
@@ -3,6 +3,7 @@
3
3
  ## Useful
4
4
 
5
5
  * Configuration of colors
6
+ * Support specific, value-based color thresholds
6
7
 
7
8
  ## Pedantic
8
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bumpspark}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bruce Williams"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bruce-bumpspark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruce Williams