Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some debug options

  • Loading branch information...
commit ea0a048cb4bdd4280e5040316a9a6444eddcc3ea 1 parent 5c6a5a3
@LeipeLeon authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 create_image.rb
View
9 create_image.rb
@@ -7,7 +7,8 @@
class CreateImage
def initialize(data, info, image_file, input_type)
- g = Gruff::Line.new("800x150", false)
+ size = ENV['DEBUG'] ? 800 : "800x150"
+ g = Gruff::Line.new(size, false)
# g.theme = {
# :colors => ['#cccccc', 'white'],
# :background_colors => ['black', 'black']
@@ -20,8 +21,10 @@ def initialize(data, info, image_file, input_type)
# g.theme_greyscale
g.hide_dots = true
g.hide_line_markers = true
- g.hide_legend = true
- g.hide_title = true
+ unless ENV['DEBUG']
+ g.hide_legend = true
+ g.hide_title = true
+ end
g.hide_line_numbers = true
g.margins = 0
g.top_margin = 0
Please sign in to comment.
Something went wrong with that request. Please try again.