Permalink
Browse files

Added browser opening command under linux, bumped to version 1.3.11

  • Loading branch information...
1 parent 2a9bb18 commit d25c5f86f92b874055b2ed33f0083213b3b693d4 @pbosetti committed Jan 5, 2011
Showing with 5 additions and 167 deletions.
  1. +1 −1 examples/sincos.rb
  2. +2 −2 flotr.gemspec
  3. +0 −164 flotr.tmproj
  4. +2 −0 lib/flotr.rb
View
@@ -19,7 +19,7 @@
plot = Flotr::Plot.new("Test plot")
plot.output_file = "SinCos1.html"
plot.comment = "This is a test plot made with Flotr"
-plot.options = {:legend_position => "ne", :points => 'true'}
+plot.options = {:legend_position => "ne", :points => 'false', :lines => 'true'}
plot.height = 480
plot.width = 640
plot.label = {:X => "X"} # :Y label seems not working on Safari
View
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = %q{flotr}
- s.version = "1.3.11"
+ s.version = "1.3.12"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Paolo Bosetti"]
- s.date = %q{2010-07-30}
+ s.date = %q{2011-01-05}
s.description = %q{Flotr (pron. like "plotter") is a Ruby plotter via flot.}
s.email = %q{paolo.bosetti@me.com}
s.files = ["README.markdown", "lib/excanvas.js", "lib/excanvas.pack.js", "lib/flotr.rb", "lib/interacting.rhtml", "lib/jquery.flot.js", "lib/jquery.min.js", "lib/layout.css", "lib/zooming.rhtml", "examples/sincos.rb"]
View
@@ -1,164 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>currentDocument</key>
- <string>examples/sincos.rb</string>
- <key>documents</key>
- <array>
- <dict>
- <key>filename</key>
- <string>flotr.gemspec</string>
- <key>lastUsed</key>
- <date>2009-11-04T11:22:58Z</date>
- </dict>
- <dict>
- <key>filename</key>
- <string>README.markdown</string>
- <key>lastUsed</key>
- <date>2009-11-04T11:22:52Z</date>
- </dict>
- <dict>
- <key>expanded</key>
- <true/>
- <key>name</key>
- <string>examples</string>
- <key>regexFolderFilter</key>
- <string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
- <key>sourceDirectory</key>
- <string>examples</string>
- </dict>
- <dict>
- <key>expanded</key>
- <true/>
- <key>name</key>
- <string>lib</string>
- <key>regexFolderFilter</key>
- <string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
- <key>sourceDirectory</key>
- <string>lib</string>
- </dict>
- <dict>
- <key>filename</key>
- <string>.gitignore</string>
- <key>lastUsed</key>
- <date>2009-11-04T11:22:50Z</date>
- </dict>
- </array>
- <key>fileHierarchyDrawerWidth</key>
- <integer>267</integer>
- <key>metaData</key>
- <dict>
- <key>examples/flotr.html</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>0</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- </dict>
- <key>examples/sincos.rb</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>31</integer>
- <key>line</key>
- <integer>17</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- </dict>
- <key>flotr.gemspec</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>21</integer>
- <key>line</key>
- <integer>8</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- </dict>
- <key>lib/flotr.rb</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>32</integer>
- <key>line</key>
- <integer>94</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>53</integer>
- </dict>
- <key>lib/interacting.rhtml</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>47</integer>
- <key>line</key>
- <integer>42</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>29</integer>
- </dict>
- <key>lib/jquery.flot.js</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>0</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- </dict>
- <key>lib/zooming.rhtml</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>21</integer>
- <key>line</key>
- <integer>11</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>56</integer>
- </dict>
- </dict>
- <key>openDocuments</key>
- <array>
- <string>examples/sincos.rb</string>
- <string>lib/flotr.rb</string>
- <string>lib/zooming.rhtml</string>
- <string>lib/interacting.rhtml</string>
- <string>flotr.gemspec</string>
- </array>
- <key>showFileHierarchyDrawer</key>
- <true/>
- <key>windowFrame</key>
- <string>{{428, 231}, {670, 923}}</string>
-</dict>
-</plist>
View
@@ -145,6 +145,8 @@ def show
system "open \"#{@output_file}\""
when /mswin/
system "start #{@output_file}"
+ when /linux/
+ system "firefox #{@output_file}"
else
puts "open #{@output_file} in your preferred browser"
end

0 comments on commit d25c5f8

Please sign in to comment.