Permalink
Browse files

* Added a bit of Bundler stuff

* Added MIT License
  • Loading branch information...
1 parent 791bb19 commit f9542c9e7c53cc6367e6434acb4a8300b3682b4a @donv donv committed Oct 16, 2012
Showing with 125 additions and 29 deletions.
  1. +2 −1 .gitignore
  2. +4 −0 Gemfile
  3. +14 −0 Gemfile.lock
  4. +22 −0 LICENSE.txt
  5. +49 −0 README.md
  6. +15 −13 Rakefile
  7. +17 −11 gruff.gemspec
  8. +2 −0 lib/gruff.rb
  9. +0 −4 lib/gruff/base.rb
View
@@ -1,5 +1,6 @@
/.idea/
/pkg/
.DS_Store
-test/output/*
+/test/output
+.bundle
.yardoc
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in gruff.gemspec
+gemspec
View
@@ -0,0 +1,14 @@
+PATH
+ remote: .
+ specs:
+ gruff (0.3.7)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+
+PLATFORMS
+ java
+
+DEPENDENCIES
+ gruff!
View
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Uwe Kubosch
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,49 @@
+# Gruff Graphs
+
+A library for making beautiful graphs.
+
+## WARNING
+
+This is beta-quality software. It works well according to our tests,
+but the API may change and other features will be added.
+We are working to make Gruff production quality software.
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'gruff'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install gruff
+
+## Usage
+
+See the test suite in test/line_test.rb for examples.
+
+## Samples
+
+http://nubyonrails.com/pages/gruff
+
+## Documentation
+
+http://gruff.rubyforge.org
+
+## Contributing
+
+== Source
+
+The source for this project is now kept at GitHub:
+
+http://github.com/topfunky/gruff/tree/master
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Add some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
View
@@ -1,15 +1,17 @@
-require 'fileutils'
+require "rubygems"
+require "bundler/gem_tasks"
+require 'rake/testtask'
+
require 'rake/clean'
$:.unshift(File.dirname(__FILE__) + "/lib")
-require 'gruff/version'
CLEAN << ['pkg', 'test/output/*']
-desc "Build the gem"
-task :gem do
- sh 'gem build gruff.gemspec'
- FileUtils.mkdir_p 'pkg'
- FileUtils.mv "gruff-#{Gruff::VERSION}.gem", 'pkg/'
+desc "Run tests"
+task :default => :test
+
+Rake::TestTask.new do |t|
+ t.libs << 'test'
end
namespace :test do
@@ -28,9 +30,9 @@ end
# rake pie
#
# To run the +test/test_pie+ and +test/test_mini_pie+ files.
-rule '' do |t|
- # Rake::Task["clean"].invoke
- Dir["test/test_*#{t.name}*.rb"].each do |filename|
- system "ruby #{filename}"
- end
-end
+#rule '' do |t|
+# # Rake::Task["clean"].invoke
+# Dir["test/test_*#{t.name}*.rb"].each do |filename|
+# system "ruby #{filename}"
+# end
+#end
View
@@ -1,27 +1,33 @@
-$:.unshift(File.dirname(__FILE__) + "/lib")
+# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'gruff/version'
Gem::Specification.new do |s|
s.name = %q{gruff}
s.version = Gruff::VERSION
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ # s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ['Geoffrey Grosenbach', 'Uwe Kubosch']
- s.date = Date.today.to_s
+ # s.date = Date.today.to_s
s.description = %q{Beautiful graphs for one or multiple datasets. Can be used on websites or in documents.}
s.email = %q{boss@topfunky.com}
- s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
- s.files = ["History.txt", "MIT-LICENSE", "Manifest.txt", "README.txt", "Rakefile", "assets/bubble.png", "assets/city_scene/background/0000.png", "assets/city_scene/background/0600.png", "assets/city_scene/background/2000.png", "assets/city_scene/clouds/cloudy.png", "assets/city_scene/clouds/partly_cloudy.png", "assets/city_scene/clouds/stormy.png", "assets/city_scene/grass/default.png", "assets/city_scene/haze/true.png", "assets/city_scene/number_sample/1.png", "assets/city_scene/number_sample/2.png", "assets/city_scene/number_sample/default.png", "assets/city_scene/sky/0000.png", "assets/city_scene/sky/0200.png", "assets/city_scene/sky/0400.png", "assets/city_scene/sky/0600.png", "assets/city_scene/sky/0800.png", "assets/city_scene/sky/1000.png", "assets/city_scene/sky/1200.png", "assets/city_scene/sky/1400.png", "assets/city_scene/sky/1500.png", "assets/city_scene/sky/1700.png", "assets/city_scene/sky/2000.png", "assets/pc306715.jpg", "assets/plastik/blue.png", "assets/plastik/green.png", "assets/plastik/red.png", "init.rb", "lib/gruff.rb", "lib/gruff/accumulator_bar.rb", "lib/gruff/area.rb", "lib/gruff/bar.rb", "lib/gruff/bar_conversion.rb", "lib/gruff/base.rb", "lib/gruff/bullet.rb", "lib/gruff/deprecated.rb", "lib/gruff/dot.rb", "lib/gruff/line.rb", "lib/gruff/mini/bar.rb", "lib/gruff/mini/legend.rb", "lib/gruff/mini/pie.rb", "lib/gruff/mini/side_bar.rb", "lib/gruff/net.rb", "lib/gruff/photo_bar.rb", "lib/gruff/pie.rb", "lib/gruff/scene.rb", "lib/gruff/side_bar.rb", "lib/gruff/side_stacked_bar.rb", "lib/gruff/spider.rb", "lib/gruff/stacked_area.rb", "lib/gruff/stacked_bar.rb", "lib/gruff/stacked_mixin.rb", "rails_generators/gruff/gruff_generator.rb", "rails_generators/gruff/templates/controller.rb", "rails_generators/gruff/templates/functional_test.rb", "test/gruff_test_case.rb", "test/test_accumulator_bar.rb", "test/test_area.rb", "test/test_bar.rb", "test/test_base.rb", "test/test_bullet.rb", "test/test_dot.rb", "test/test_legend.rb", "test/test_line.rb", "test/test_mini_bar.rb", "test/test_mini_pie.rb", "test/test_mini_side_bar.rb", "test/test_net.rb", "test/test_photo.rb", "test/test_pie.rb", "test/test_scene.rb", "test/test_side_bar.rb", "test/test_sidestacked_bar.rb", "test/test_spider.rb", "test/test_stacked_area.rb", "test/test_stacked_bar.rb"]
- s.has_rdoc = true
+ # s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
+ # s.files = ["History.txt", "MIT-LICENSE", "Manifest.txt", "README.txt", "Rakefile", "assets/bubble.png", "assets/city_scene/background/0000.png", "assets/city_scene/background/0600.png", "assets/city_scene/background/2000.png", "assets/city_scene/clouds/cloudy.png", "assets/city_scene/clouds/partly_cloudy.png", "assets/city_scene/clouds/stormy.png", "assets/city_scene/grass/default.png", "assets/city_scene/haze/true.png", "assets/city_scene/number_sample/1.png", "assets/city_scene/number_sample/2.png", "assets/city_scene/number_sample/default.png", "assets/city_scene/sky/0000.png", "assets/city_scene/sky/0200.png", "assets/city_scene/sky/0400.png", "assets/city_scene/sky/0600.png", "assets/city_scene/sky/0800.png", "assets/city_scene/sky/1000.png", "assets/city_scene/sky/1200.png", "assets/city_scene/sky/1400.png", "assets/city_scene/sky/1500.png", "assets/city_scene/sky/1700.png", "assets/city_scene/sky/2000.png", "assets/pc306715.jpg", "assets/plastik/blue.png", "assets/plastik/green.png", "assets/plastik/red.png", "init.rb", "lib/gruff.rb", "lib/gruff/accumulator_bar.rb", "lib/gruff/area.rb", "lib/gruff/bar.rb", "lib/gruff/bar_conversion.rb", "lib/gruff/base.rb", "lib/gruff/bullet.rb", "lib/gruff/deprecated.rb", "lib/gruff/dot.rb", "lib/gruff/line.rb", "lib/gruff/mini/bar.rb", "lib/gruff/mini/legend.rb", "lib/gruff/mini/pie.rb", "lib/gruff/mini/side_bar.rb", "lib/gruff/net.rb", "lib/gruff/photo_bar.rb", "lib/gruff/pie.rb", "lib/gruff/scene.rb", "lib/gruff/side_bar.rb", "lib/gruff/side_stacked_bar.rb", "lib/gruff/spider.rb", "lib/gruff/stacked_area.rb", "lib/gruff/stacked_bar.rb", "lib/gruff/stacked_mixin.rb", "rails_generators/gruff/gruff_generator.rb", "rails_generators/gruff/templates/controller.rb", "rails_generators/gruff/templates/functional_test.rb", "test/gruff_test_case.rb", "test/test_accumulator_bar.rb", "test/test_area.rb", "test/test_bar.rb", "test/test_base.rb", "test/test_bullet.rb", "test/test_dot.rb", "test/test_legend.rb", "test/test_line.rb", "test/test_mini_bar.rb", "test/test_mini_pie.rb", "test/test_mini_side_bar.rb", "test/test_net.rb", "test/test_photo.rb", "test/test_pie.rb", "test/test_scene.rb", "test/test_side_bar.rb", "test/test_sidestacked_bar.rb", "test/test_spider.rb", "test/test_stacked_area.rb", "test/test_stacked_bar.rb"]
+ s.files = `git ls-files`.split($/)
+ # s.has_rdoc = true
s.homepage = %q{http://nubyonrails.com/pages/gruff}
- s.rdoc_options = ["--main", "README.txt"]
+ # s.rdoc_options = ["--main", "README.txt"]
s.require_paths = ["lib"]
- s.rubyforge_project = %q{gruff}
- s.rubygems_version = %q{1.3.1}
+ # s.rubyforge_project = %q{gruff}
+ # s.rubygems_version = %q{1.3.1}
s.summary = %q{Beautiful graphs for one or multiple datasets.}
- s.test_files = ["test/test_accumulator_bar.rb", "test/test_area.rb", "test/test_bar.rb", "test/test_base.rb", "test/test_bullet.rb", "test/test_dot.rb", "test/test_legend.rb", "test/test_line.rb", "test/test_mini_bar.rb", "test/test_mini_pie.rb", "test/test_mini_side_bar.rb", "test/test_net.rb", "test/test_photo.rb", "test/test_pie.rb", "test/test_scene.rb", "test/test_side_bar.rb", "test/test_sidestacked_bar.rb", "test/test_spider.rb", "test/test_stacked_area.rb", "test/test_stacked_bar.rb"]
- s.add_dependency(%q<rmagick>, [">= 2.12.2"])
+ # s.test_files = ["test/test_accumulator_bar.rb", "test/test_area.rb", "test/test_bar.rb", "test/test_base.rb", "test/test_bullet.rb", "test/test_dot.rb", "test/test_legend.rb", "test/test_line.rb", "test/test_mini_bar.rb", "test/test_mini_pie.rb", "test/test_mini_side_bar.rb", "test/test_net.rb", "test/test_photo.rb", "test/test_pie.rb", "test/test_scene.rb", "test/test_side_bar.rb", "test/test_sidestacked_bar.rb", "test/test_spider.rb", "test/test_stacked_area.rb", "test/test_stacked_bar.rb"]
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
+
+ s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
# s.specification_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
# s.add_development_dependency(%q<hoe>, [">= 1.8.2"])
+ # s.add_dependency(%q<rmagick>, [">= 2.12.2"])
end
View
@@ -1,3 +1,5 @@
+require "gruff/version"
+
# Extra full path added to fix loading errors on some installations.
%w(
View
@@ -19,10 +19,6 @@
# See Gruff::Base#theme= for setting themes.
module Gruff
-
- # This is the version of Gruff you are using.
- VERSION = '0.3.6'
-
class Base
include Magick

0 comments on commit f9542c9

Please sign in to comment.