pill_chart 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pill_chart.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c061822a954d3dcc457d6ee90e0795ce5a542c76
4
- data.tar.gz: 5e42a9ff3fd2c601b9f7cb2a30550b5be873d27a
3
+ metadata.gz: 212a2c789ba45b7a3b2a0cf216be87385cece228
4
+ data.tar.gz: 3a99e4f3c282b0801f54305ad20eb6e051f9679d
5
5
  SHA512:
6
- metadata.gz: b9fb01566736261f094166010537cf6a296c30871845baa6b7a2c61edd85d33b3fb49414e2d2f85a5926644dbb72f9ea3b33ce4bd2745e5b5f09e63447c40241
7
- data.tar.gz: ce1d7e005b274689eab049f88d39e45455d75ec74cd90c7b4d625dfe814354712ab40d075641105e28ba09f0985e770a0714b5081cc0518a7521a1c62cec7894
6
+ metadata.gz: 3daa35c13141a2cd1ef5a85e46c63447578f7e814312b42c666c059fca73e4b055b2ec6e85c825f0ea89e263015cf70f3b5a36f5358bf6636df6d3c0281451f5
7
+ data.tar.gz: 3747d6daaff74a1e1b52ead34019f2b6dcdb3f896b2eb5d986ebb8a04852cdca02f469bd7e32b9db130a63378080f3e01a8982984e4f5c0496c3fbcb133d20b2
data/lib/pill_chart.rb CHANGED
@@ -1,6 +1,12 @@
1
1
  module PillChart
2
2
  autoload :SimplePillChart, "simple/simple_pill_chart"
3
3
 
4
+ def PillChart.draw_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {
5
+ "background" => "#eee",
6
+ "foreground" => "#999"})
7
+ elt = SimplePillChart.new(height, width, value, max, colors)
8
+ elt.pill
9
+ end
4
10
  end
5
11
 
6
12
  ActionView::Base.send :include, PillChart if defined?(ActionView)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pill_chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aubin