sinatra-charter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +6 -6
  2. data/VERSION +1 -1
  3. data/lib/sinatra-charter.rb +2 -2
  4. metadata +2 -2
data/Rakefile CHANGED
@@ -4,12 +4,12 @@ require 'rake'
4
4
  begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
- gem.name = "sinatra-charter"
8
- gem.summary = %Q{Static charts server using Sinatra and Gruff}
9
- gem.description = %Q{Static charts server using Sinatra and Gruff}
10
- gem.email = "lplanas@qindio.com"
11
- gem.homepage = "http://github.com/lplanas/sinatra-charter"
12
- gem.authors = ["Lorenzo Planas"]
7
+ gem.name = "sinatra-charter"
8
+ gem.summary = %Q{Static charts server using Sinatra and Gruff}
9
+ gem.description = %Q{TODO: longer description of your gem}
10
+ gem.email = "lplanas@qindio.com"
11
+ gem.homepage = "http://github.com/lplanas/sinatra-charter"
12
+ gem.authors = ["Lorenzo Planas"]
13
13
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14
14
  end
15
15
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -7,7 +7,7 @@ module Sinatra
7
7
  module Charter
8
8
  module Helpers
9
9
  def send_chart_url(options = {})
10
- content :json
10
+ content_type :json
11
11
 
12
12
  if options[:from] == 'json'
13
13
  @chart = JSON.parse request.body.read.to_s
@@ -46,7 +46,7 @@ module Sinatra
46
46
  end
47
47
 
48
48
  def render_bar_chart
49
- g = Gruff::Bar.new(@chart['size'].to_i)
49
+ g = Gruff::Bar.new(@chart['size'])
50
50
  g.theme = chart_theme
51
51
  g.title = @chart['title']
52
52
  g.labels = @chart['labels']
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lorenzo Planas