Permalink
Browse files

Update README and add build_gem task

  • Loading branch information...
Austin on Cygwin
Austin on Cygwin committed Dec 13, 2012
1 parent c2b78f8 commit 69f992dacf2056ff19c08b36d32f8e3a1cdc262c
Showing with 59 additions and 29 deletions.
  1. +0 −29 README.md
  2. +43 −0 README.rdoc
  3. +16 −0 Rakefile
View
@@ -1,29 +0,0 @@
-# AbstractGraph
-
-TODO: Write a gem description
-
-## Installation
-
-Add this line to your application's Gemfile:
-
- gem 'abstract_graph'
-
-And then execute:
-
- $ bundle
-
-Or install it yourself as:
-
- $ gem install abstract_graph
-
-## Usage
-
-TODO: Write usage instructions here
-
-## Contributing
-
-1. Fork it
-2. Create your feature branch (`git checkout -b my-new-feature`)
-3. Commit your changes (`git commit -am 'Added some feature'`)
-4. Push to the branch (`git push origin my-new-feature`)
-5. Create new Pull Request
View
@@ -0,0 +1,43 @@
+= This is AbstractGraph.
+
+-n a graph is an abstract representation of a set of objects where pairs of objects are connected. Not to be confused with the 2 dimensional plane that plots correlation
+
+== How to Install
+
+Add this line to your application's Gemfile:
+
+ gem 'abstract_graph'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install abstract_graph
+
+Or you can compile the project yourself:
+
+ $ git clone https://github.com/D4L/abstractGraph.git
+ $ rake build_gem
+
+== Usage
+
+TODO: Write usage instructions here
+
+== Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
+
+== Authors
+
+Austin.L <b>~D4L<\b>
+
+
+
+---
+noli umquam oblivisci: cogito ergo sum
View
@@ -9,3 +9,19 @@ RSpec::Core::RakeTask.new do |t|
end
task :default => :spec
+
+desc "Builds gem"
+task :build_gem do
+ puts %s{gem build abstract_graph.gemspec}
+ output = `gem build abstract_graph.gemspec`
+ p output
+ print %s{Do you want to install the gem (y|n)? }
+ while !%w{y n}.include?(inputs = STDIN.gets[0])
+ print %s{Please use either y or n: }
+ end
+ if inputs == 'y'
+ sh %s{gem install }.to_s + output.split.last
+ else
+ p %s{Alright, peace out.}
+ end
+end

0 comments on commit 69f992d

Please sign in to comment.