Skip to content
This repository
Browse code

Update README and add build_gem task

  • Loading branch information...
commit 69f992dacf2056ff19c08b36d32f8e3a1cdc262c 1 parent c2b78f8
authored December 13, 2012
29  README.md
Source Rendered
... ...
@@ -1,29 +0,0 @@
1  
-# AbstractGraph
2  
-
3  
-TODO: Write a gem description
4  
-
5  
-## Installation
6  
-
7  
-Add this line to your application's Gemfile:
8  
-
9  
-    gem 'abstract_graph'
10  
-
11  
-And then execute:
12  
-
13  
-    $ bundle
14  
-
15  
-Or install it yourself as:
16  
-
17  
-    $ gem install abstract_graph
18  
-
19  
-## Usage
20  
-
21  
-TODO: Write usage instructions here
22  
-
23  
-## Contributing
24  
-
25  
-1. Fork it
26  
-2. Create your feature branch (`git checkout -b my-new-feature`)
27  
-3. Commit your changes (`git commit -am 'Added some feature'`)
28  
-4. Push to the branch (`git push origin my-new-feature`)
29  
-5. Create new Pull Request
43  README.rdoc
Source Rendered
... ...
@@ -0,0 +1,43 @@
  1
+= This is AbstractGraph.
  2
+
  3
+-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
  4
+
  5
+== How to Install
  6
+
  7
+Add this line to your application's Gemfile:
  8
+
  9
+    gem 'abstract_graph'
  10
+
  11
+And then execute:
  12
+
  13
+    $ bundle
  14
+
  15
+Or install it yourself as:
  16
+
  17
+    $ gem install abstract_graph
  18
+
  19
+Or you can compile the project yourself:
  20
+    
  21
+    $ git clone https://github.com/D4L/abstractGraph.git
  22
+    $ rake build_gem
  23
+
  24
+== Usage
  25
+
  26
+TODO: Write usage instructions here
  27
+
  28
+== Contributing
  29
+
  30
+1. Fork it
  31
+2. Create your feature branch (`git checkout -b my-new-feature`)
  32
+3. Commit your changes (`git commit -am 'Added some feature'`)
  33
+4. Push to the branch (`git push origin my-new-feature`)
  34
+5. Create new Pull Request
  35
+
  36
+== Authors
  37
+
  38
+Austin.L <b>~D4L<\b>
  39
+
  40
+ 
  41
+
  42
+---
  43
+noli umquam oblivisci: cogito ergo sum
16  Rakefile
@@ -9,3 +9,19 @@ RSpec::Core::RakeTask.new do |t|
9 9
 end
10 10
 
11 11
 task :default => :spec
  12
+
  13
+desc "Builds gem"
  14
+task :build_gem do
  15
+  puts %s{gem build abstract_graph.gemspec}
  16
+  output = `gem build abstract_graph.gemspec`
  17
+  p output
  18
+  print %s{Do you want to install the gem (y|n)? }
  19
+  while !%w{y n}.include?(inputs = STDIN.gets[0])
  20
+    print %s{Please use either y or n: }
  21
+  end
  22
+  if inputs == 'y'
  23
+    sh %s{gem install }.to_s + output.split.last
  24
+  else
  25
+    p %s{Alright, peace out.}
  26
+  end
  27
+end

0 notes on commit 69f992d

Please sign in to comment.
Something went wrong with that request. Please try again.