-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 613f23a
Showing
65 changed files
with
5,385 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
= Shorty | ||
|
||
shorty makes interfacing with url shortening services easy, so far the following are supported: | ||
- bit.ly | ||
- tr.im | ||
|
||
== Install | ||
|
||
sudo gem install drcapulet-shorty | ||
|
||
== Usage | ||
|
||
|
||
== License | ||
|
||
Copyright (c) 2008 Alex Coomans | ||
|
||
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. |
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,29 @@ | ||
|
||
|
||
begin | ||
require 'cucumber/rake/task' | ||
|
||
Cucumber::Rake::Task.new(:features) do |t| | ||
t.fork = true | ||
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')] | ||
end | ||
rescue LoadError | ||
desc 'Cucumber rake task not available' | ||
task :features do | ||
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin' | ||
end | ||
end | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gemspec| | ||
gemspec.name = "shorty" | ||
gemspec.summary = "API for shortening urls" | ||
gemspec.description = "Describe your gem" | ||
gemspec.email = "[email protected]" | ||
gemspec.homepage = "http://github.com/drcapulet/shorty" | ||
gemspec.authors = ["Alex Coomans"] | ||
end | ||
rescue LoadError | ||
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" | ||
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,191 @@ | ||
<?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>Module: CommonHelpers</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>Module</strong></td> | ||
<td class="class-name-in-header">CommonHelpers</td> | ||
</tr> | ||
<tr class="top-aligned-row"> | ||
<td><strong>In:</strong></td> | ||
<td> | ||
<a href="../files/features/support/common_rb.html"> | ||
features/support/common.rb | ||
</a> | ||
<br /> | ||
</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="#M000004">force_local_lib_override</a> | ||
<a href="#M000003">in_home_folder</a> | ||
<a href="#M000002">in_project_folder</a> | ||
<a href="#M000001">in_tmp_folder</a> | ||
<a href="#M000005">setup_active_project_folder</a> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
<!-- if includes --> | ||
|
||
<div id="section"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!-- if method_list --> | ||
<div id="methods"> | ||
<h3 class="section-bar">Public Instance methods</h3> | ||
|
||
<div id="method-M000004" class="method-detail"> | ||
<a name="M000004"></a> | ||
|
||
<div class="method-heading"> | ||
<a href="CommonHelpers.src/M000004.html" target="Code" class="method-signature" | ||
onclick="popupCode('CommonHelpers.src/M000004.html');return false;"> | ||
<span class="method-name">force_local_lib_override</span><span class="method-args">(project_name = @project_name)</span> | ||
</a> | ||
</div> | ||
|
||
<div class="method-description"> | ||
</div> | ||
</div> | ||
|
||
<div id="method-M000003" class="method-detail"> | ||
<a name="M000003"></a> | ||
|
||
<div class="method-heading"> | ||
<a href="CommonHelpers.src/M000003.html" target="Code" class="method-signature" | ||
onclick="popupCode('CommonHelpers.src/M000003.html');return false;"> | ||
<span class="method-name">in_home_folder</span><span class="method-args">(&block)</span> | ||
</a> | ||
</div> | ||
|
||
<div class="method-description"> | ||
</div> | ||
</div> | ||
|
||
<div id="method-M000002" class="method-detail"> | ||
<a name="M000002"></a> | ||
|
||
<div class="method-heading"> | ||
<a href="CommonHelpers.src/M000002.html" target="Code" class="method-signature" | ||
onclick="popupCode('CommonHelpers.src/M000002.html');return false;"> | ||
<span class="method-name">in_project_folder</span><span class="method-args">(&block)</span> | ||
</a> | ||
</div> | ||
|
||
<div class="method-description"> | ||
</div> | ||
</div> | ||
|
||
<div id="method-M000001" class="method-detail"> | ||
<a name="M000001"></a> | ||
|
||
<div class="method-heading"> | ||
<a href="CommonHelpers.src/M000001.html" target="Code" class="method-signature" | ||
onclick="popupCode('CommonHelpers.src/M000001.html');return false;"> | ||
<span class="method-name">in_tmp_folder</span><span class="method-args">(&block)</span> | ||
</a> | ||
</div> | ||
|
||
<div class="method-description"> | ||
</div> | ||
</div> | ||
|
||
<div id="method-M000005" class="method-detail"> | ||
<a name="M000005"></a> | ||
|
||
<div class="method-heading"> | ||
<a href="CommonHelpers.src/M000005.html" target="Code" class="method-signature" | ||
onclick="popupCode('CommonHelpers.src/M000005.html');return false;"> | ||
<span class="method-name">setup_active_project_folder</span><span class="method-args">(project_name)</span> | ||
</a> | ||
</div> | ||
|
||
<div class="method-description"> | ||
</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> |
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,18 @@ | ||
<?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> | ||
<head> | ||
<title>in_tmp_folder (CommonHelpers)</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | ||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> | ||
</head> | ||
<body class="standalone-code"> | ||
<pre><span class="ruby-comment cmt"># File features/support/common.rb, line 2</span> | ||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in_tmp_folder</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) | ||
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-ivar">@tmp_root</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) | ||
<span class="ruby-keyword kw">end</span></pre> | ||
</body> | ||
</html> |
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,19 @@ | ||
<?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> | ||
<head> | ||
<title>in_project_folder (CommonHelpers)</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | ||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> | ||
</head> | ||
<body class="standalone-code"> | ||
<pre><span class="ruby-comment cmt"># File features/support/common.rb, line 6</span> | ||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in_project_folder</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) | ||
<span class="ruby-identifier">project_folder</span> = <span class="ruby-ivar">@active_project_folder</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@tmp_root</span> | ||
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">project_folder</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) | ||
<span class="ruby-keyword kw">end</span></pre> | ||
</body> | ||
</html> |
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,18 @@ | ||
<?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> | ||
<head> | ||
<title>in_home_folder (CommonHelpers)</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | ||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> | ||
</head> | ||
<body class="standalone-code"> | ||
<pre><span class="ruby-comment cmt"># File features/support/common.rb, line 11</span> | ||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in_home_folder</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) | ||
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-ivar">@home_path</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) | ||
<span class="ruby-keyword kw">end</span></pre> | ||
</body> | ||
</html> |
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,22 @@ | ||
<?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> | ||
<head> | ||
<title>force_local_lib_override (CommonHelpers)</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | ||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> | ||
</head> | ||
<body class="standalone-code"> | ||
<pre><span class="ruby-comment cmt"># File features/support/common.rb, line 15</span> | ||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">force_local_lib_override</span>(<span class="ruby-identifier">project_name</span> = <span class="ruby-ivar">@project_name</span>) | ||
<span class="ruby-identifier">rakefile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">project_name</span>, <span class="ruby-value str">'Rakefile'</span>)) | ||
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">project_name</span>, <span class="ruby-value str">'Rakefile'</span>), <span class="ruby-value str">"w+"</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> | ||
<span class="ruby-identifier">f</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"$:.unshift('#{@lib_path}')\n"</span> | ||
<span class="ruby-identifier">f</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">rakefile</span> | ||
<span class="ruby-keyword kw">end</span> | ||
<span class="ruby-keyword kw">end</span></pre> | ||
</body> | ||
</html> |
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,19 @@ | ||
<?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> | ||
<head> | ||
<title>setup_active_project_folder (CommonHelpers)</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | ||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> | ||
</head> | ||
<body class="standalone-code"> | ||
<pre><span class="ruby-comment cmt"># File features/support/common.rb, line 23</span> | ||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_active_project_folder</span> <span class="ruby-identifier">project_name</span> | ||
<span class="ruby-ivar">@active_project_folder</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@tmp_root</span>, <span class="ruby-identifier">project_name</span>) | ||
<span class="ruby-ivar">@project_name</span> = <span class="ruby-identifier">project_name</span> | ||
<span class="ruby-keyword kw">end</span></pre> | ||
</body> | ||
</html> |
Oops, something went wrong.