Skip to content

Commit

Permalink
* Added a bit of Bundler stuff
Browse files Browse the repository at this point in the history
* Added MIT License
  • Loading branch information
donv committed Oct 16, 2012
1 parent 791bb19 commit f9542c9
Show file tree
Hide file tree
Showing 9 changed files with 125 additions and 29 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,5 +1,6 @@
/.idea/ /.idea/
/pkg/ /pkg/
.DS_Store .DS_Store
test/output/* /test/output
.bundle
.yardoc .yardoc
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in gruff.gemspec
gemspec
14 changes: 14 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,14 @@
PATH
remote: .
specs:
gruff (0.3.7)

GEM
remote: https://rubygems.org/
specs:

PLATFORMS
java

DEPENDENCIES
gruff!
22 changes: 22 additions & 0 deletions LICENSE.txt
@@ -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.
49 changes: 49 additions & 0 deletions README.md
@@ -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
28 changes: 15 additions & 13 deletions Rakefile
@@ -1,15 +1,17 @@
require 'fileutils' require "rubygems"
require "bundler/gem_tasks"
require 'rake/testtask'

require 'rake/clean' require 'rake/clean'
$:.unshift(File.dirname(__FILE__) + "/lib") $:.unshift(File.dirname(__FILE__) + "/lib")
require 'gruff/version'


CLEAN << ['pkg', 'test/output/*'] CLEAN << ['pkg', 'test/output/*']


desc "Build the gem" desc "Run tests"
task :gem do task :default => :test
sh 'gem build gruff.gemspec'
FileUtils.mkdir_p 'pkg' Rake::TestTask.new do |t|
FileUtils.mv "gruff-#{Gruff::VERSION}.gem", 'pkg/' t.libs << 'test'
end end


namespace :test do namespace :test do
Expand All @@ -28,9 +30,9 @@ end
# rake pie # rake pie
# #
# To run the +test/test_pie+ and +test/test_mini_pie+ files. # To run the +test/test_pie+ and +test/test_mini_pie+ files.
rule '' do |t| #rule '' do |t|
# Rake::Task["clean"].invoke # # Rake::Task["clean"].invoke
Dir["test/test_*#{t.name}*.rb"].each do |filename| # Dir["test/test_*#{t.name}*.rb"].each do |filename|
system "ruby #{filename}" # system "ruby #{filename}"
end # end
end #end
28 changes: 17 additions & 11 deletions gruff.gemspec
@@ -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' require 'gruff/version'


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{gruff} s.name = %q{gruff}
s.version = Gruff::VERSION 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.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.description = %q{Beautiful graphs for one or multiple datasets. Can be used on websites or in documents.}
s.email = %q{boss@topfunky.com} s.email = %q{boss@topfunky.com}
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"] # 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 = ["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.files = `git ls-files`.split($/)
# s.has_rdoc = true
s.homepage = %q{http://nubyonrails.com/pages/gruff} 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.require_paths = ["lib"]
s.rubyforge_project = %q{gruff} # s.rubyforge_project = %q{gruff}
s.rubygems_version = %q{1.3.1} # s.rubygems_version = %q{1.3.1}
s.summary = %q{Beautiful graphs for one or multiple datasets.} 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.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 = 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.specification_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
# s.add_development_dependency(%q<hoe>, [">= 1.8.2"]) # s.add_development_dependency(%q<hoe>, [">= 1.8.2"])
# s.add_dependency(%q<rmagick>, [">= 2.12.2"])
end end
2 changes: 2 additions & 0 deletions lib/gruff.rb
@@ -1,3 +1,5 @@
require "gruff/version"

# Extra full path added to fix loading errors on some installations. # Extra full path added to fix loading errors on some installations.


%w( %w(
Expand Down
4 changes: 0 additions & 4 deletions lib/gruff/base.rb
Expand Up @@ -19,10 +19,6 @@
# See Gruff::Base#theme= for setting themes. # See Gruff::Base#theme= for setting themes.


module Gruff module Gruff

# This is the version of Gruff you are using.
VERSION = '0.3.6'

class Base class Base


include Magick include Magick
Expand Down

0 comments on commit f9542c9

Please sign in to comment.