Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding all sorts of things with jeweler
- Loading branch information
1 parent
67fec3a
commit 25b538d
Showing
42 changed files
with
7,718 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,67 @@ | ||
require 'rubygems' | ||
# require 'rubygems' | ||
# require 'rake' | ||
# require 'echoe' | ||
# require 'lib/version' | ||
# | ||
# Echoe.new('sirb', Sirb::VERSION) do |p| | ||
# p.description = "Generate a unique token with Active Record." | ||
# p.url = "http://github.com/davidrichards/sirb" | ||
# p.author = "David Richards" | ||
# p.email = "drichards@showcase60.com" | ||
# p.ignore_pattern = ["tmp/*", "script/*"] | ||
# p.development_dependencies = [] | ||
# end | ||
# | ||
# Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext } | ||
# | ||
require 'rake' | ||
require 'echoe' | ||
require 'lib/version' | ||
|
||
Echoe.new('sirb', Sirb::VERSION) do |p| | ||
p.description = "Generate a unique token with Active Record." | ||
p.url = "http://github.com/davidrichards/sirb" | ||
p.author = "David Richards" | ||
p.email = "drichards@showcase60.com" | ||
p.ignore_pattern = ["tmp/*", "script/*"] | ||
p.development_dependencies = [] | ||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |s| | ||
s.name = "sirb" | ||
s.summary = "Descriptive statistics + IRB + any other useful numerical library you may have around" | ||
s.email = "davidlamontrichards@gmail.com" | ||
s.homepage = "http://github.com/davidrichards/sirb" | ||
s.description = "A series of useful tools that a console should probably have, if your goal is to crunch a few numbers. It includes all the packages that I use, if you have them. Also incorporates some functional style programming and stored procedures to make your console experience even more delightful." | ||
s.authors = ["David Richards"] | ||
end | ||
rescue LoadError | ||
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" | ||
end | ||
|
||
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext } | ||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = 'sirb' | ||
rdoc.options << '--line-numbers' << '--inline-source' | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
|
||
require 'rake/testtask' | ||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'lib' << 'test' | ||
t.pattern = 'test/**/*_test.rb' | ||
t.verbose = false | ||
end | ||
|
||
begin | ||
require 'rcov/rcovtask' | ||
Rcov::RcovTask.new do |t| | ||
t.libs << 'test' | ||
t.test_files = FileList['test/**/*_test.rb'] | ||
t.verbose = true | ||
end | ||
rescue LoadError | ||
puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" | ||
end | ||
|
||
begin | ||
require 'cucumber/rake/task' | ||
Cucumber::Rake::Task.new(:features) | ||
rescue LoadError | ||
puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber" | ||
end | ||
|
||
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
:major: 0 | ||
:minor: 6 | ||
:patch: 4 | ||
:patch: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Feature: something something | ||
In order to something something | ||
A user something something | ||
something something something | ||
|
||
Scenario: something something | ||
Given inspiration | ||
When I create a sweet new gem | ||
Then everyone should see how awesome I am |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib') | ||
require 'sirbs' | ||
|
||
require 'test/unit/assertions' | ||
|
||
require 'test/unit/assertions' | ||
|
||
World do |world| | ||
|
||
world.extend(Test::Unit::Assertions) | ||
|
||
world | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<?xml version="1.0" encoding="iso-8859-1"?> | ||
<!DOCTYPE html | ||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title>Class: Array</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | ||
<meta http-equiv="Content-Script-Type" content="text/javascript" /> | ||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> | ||
<script type="text/javascript"> | ||
// <![CDATA[ | ||
|
||
function popupCode( url ) { | ||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") | ||
} | ||
|
||
function toggleCode( id ) { | ||
if ( document.getElementById ) | ||
elem = document.getElementById( id ); | ||
else if ( document.all ) | ||
elem = eval( "document.all." + id ); | ||
else | ||
return false; | ||
|
||
elemStyle = elem.style; | ||
|
||
if ( elemStyle.display != "block" ) { | ||
elemStyle.display = "block" | ||
} else { | ||
elemStyle.display = "none" | ||
} | ||
|
||
return true; | ||
} | ||
|
||
// Make codeblocks hidden by default | ||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) | ||
|
||
// ]]> | ||
</script> | ||
|
||
</head> | ||
<body> | ||
|
||
|
||
|
||
<div id="classHeader"> | ||
<table class="header-table"> | ||
<tr class="top-aligned-row"> | ||
<td><strong>Class</strong></td> | ||
<td class="class-name-in-header">Array</td> | ||
</tr> | ||
<tr class="top-aligned-row"> | ||
<td><strong>In:</strong></td> | ||
<td> | ||
<a href="../files/lib/overrides/array_rb.html"> | ||
lib/overrides/array.rb | ||
</a> | ||
<br /> | ||
<a href="../files/lib/sirb_rb.html"> | ||
lib/sirb.rb | ||
</a> | ||
<br /> | ||
</td> | ||
</tr> | ||
|
||
<tr class="top-aligned-row"> | ||
<td><strong>Parent:</strong></td> | ||
<td> | ||
Object | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<!-- banner header --> | ||
|
||
<div id="bodyContent"> | ||
|
||
|
||
|
||
<div id="contextContent"> | ||
|
||
|
||
|
||
</div> | ||
|
||
<div id="method-list"> | ||
<h3 class="section-bar">Methods</h3> | ||
|
||
<div class="name-list"> | ||
<a href="#M000012">include?</a> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
<!-- if includes --> | ||
<div id="includes"> | ||
<h3 class="section-bar">Included Modules</h3> | ||
|
||
<div id="includes-list"> | ||
<span class="include-name"><a href="Sirb/EnumerableStatistics.html">Sirb::EnumerableStatistics</a></span> | ||
</div> | ||
</div> | ||
|
||
<div id="section"> | ||
|
||
|
||
|
||
<div id="aliases-list"> | ||
<h3 class="section-bar">External Aliases</h3> | ||
|
||
<div class="name-list"> | ||
<table summary="aliases"> | ||
<tr class="top-aligned-row context-row"> | ||
<td class="context-item-name">include?</td> | ||
<td>-></td> | ||
<td class="context-item-value">single_include?</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
<!-- if method_list --> | ||
<div id="methods"> | ||
<h3 class="section-bar">Public Instance methods</h3> | ||
|
||
<div id="method-M000012" class="method-detail"> | ||
<a name="M000012"></a> | ||
|
||
<div class="method-heading"> | ||
<a href="#M000012" class="method-signature"> | ||
<span class="method-name">include?</span><span class="method-args">(*args)</span> | ||
</a> | ||
</div> | ||
|
||
<div class="method-description"> | ||
<p><a class="source-toggle" href="#" | ||
onclick="toggleCode('M000012-source');return false;">[Source]</a></p> | ||
<div class="method-source-code" id="M000012-source"> | ||
<pre> | ||
<span class="ruby-comment cmt"># File lib/overrides/array.rb, line 3</span> | ||
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) | ||
4: <span class="ruby-identifier">args</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-keyword kw">true</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">val</span>, <span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">val</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">single_include?</span>(<span class="ruby-identifier">x</span>)} | ||
5: <span class="ruby-keyword kw">end</span> | ||
</pre> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
<div id="validator-badges"> | ||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> | ||
</div> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.