Permalink
Browse files

Initial import

  • Loading branch information...
Matt Sanford
Matt Sanford committed Jan 16, 2010
0 parents commit f08960d53ff5f4e3feb93bea8e5fb1fba70f0346
13 LICENSE
@@ -0,0 +1,13 @@
+Copyright 2010 Twitter, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not
+use this file except in compliance with the License. You may obtain a copy of
+the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+License for the specific language governing permissions and limitations under
+the License.
@@ -0,0 +1,3 @@
+== twitter-text
+
+A gem that provides...
@@ -0,0 +1,58 @@
+require 'rubygems' unless ENV['NO_RUBYGEMS']
+require 'rake/gempackagetask'
+require 'rubygems/specification'
+require 'date'
+require 'spec/rake/spectask'
+require 'spec/rake/verify_rcov'
+
+
+spec = Gem::Specification.new do |s|
+ s.name = "twitter-text"
+ s.version = "0.0.1"
+ s.author = "Matt Sanford"
+ s.email = "matt@twitter.com"
+ s.homepage = "http://twitter.com"
+ s.description = s.summary = "A gem that provides text handling for Twitter"
+
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
+ s.summary = "Twitter text handling library"
+
+ s.add_dependency "action_view"
+
+ s.require_path = 'lib'
+ s.autorequire = ''
+ s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
+end
+
+task :default => :spec
+
+desc "Run specs"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts = %w(-fs --color)
+end
+
+desc "Run all examples with RCov"
+Spec::Rake::SpecTask.new('spec:rcov') do |t|
+ t.spec_files = FileList['spec/**/*.rb']
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'spec']
+end
+
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.gem_spec = spec
+end
+
+desc "install the gem locally"
+task :install => [:package] do
+ sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
+end
+
+desc "create a gemspec file"
+task :make_spec do
+ File.open("#{GEM}.gemspec", "w") do |file|
+ file.puts spec.to_ruby
+ end
+end
1 TODO
@@ -0,0 +1 @@
+TODO:
@@ -0,0 +1,146 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
+ <head>
+ <title>
+ C0 code coverage information
+ </title>
+ <style type='text/css'>
+ body { background-color: rgb(240, 240, 245); }
+ </style>
+ <style type='text/css'>
+ span.cross-ref-title { font-size: 140%; } span.cross-ref a {
+ text-decoration: none; } span.cross-ref { background-color:#f3f7fa;
+ border: 1px dashed #333; margin: 1em; padding: 0.5em; overflow: hidden; }
+ a.crossref-toggle { text-decoration: none; } span.marked0 {
+ background-color: rgb(185, 210, 200); display: block; } span.marked1 {
+ background-color: rgb(190, 215, 205); display: block; } span.inferred0 {
+ background-color: rgb(175, 200, 200); display: block; } span.inferred1 {
+ background-color: rgb(180, 205, 205); display: block; } span.uncovered0 {
+ background-color: rgb(225, 110, 110); display: block; } span.uncovered1 {
+ background-color: rgb(235, 120, 120); display: block; } span.overview {
+ border-bottom: 8px solid black; } div.overview { border-bottom: 8px solid
+ black; } body { font-family: verdana, arial, helvetica; } div.footer {
+ font-size: 68%; margin-top: 1.5em; } h1, h2, h3, h4, h5, h6 {
+ margin-bottom: 0.5em; } h5 { margin-top: 0.5em; } .hidden { display: none;
+ } div.separator { height: 10px; } /* Commented out for better readability,
+ esp. on IE */ /* table tr td, table tr th { font-size: 68%; } td.value
+ table tr td { font-size: 11px; } */ table.percent_graph { height: 12px;
+ border: #808080 1px solid; empty-cells: show; } table.percent_graph
+ td.covered { height: 10px; background: #00f000; } table.percent_graph
+ td.uncovered { height: 10px; background: #e00000; } table.percent_graph
+ td.NA { height: 10px; background: #eaeaea; } table.report {
+ border-collapse: collapse; width: 100%; } table.report td.heading {
+ background: #dcecff; border: #d0d0d0 1px solid; font-weight: bold;
+ text-align: center; } table.report td.heading:hover { background: #c0ffc0;
+ } table.report td.text { border: #d0d0d0 1px solid; } table.report
+ td.value, table.report td.lines_total, table.report td.lines_code {
+ text-align: right; border: #d0d0d0 1px solid; } table.report tr.light {
+ background-color: rgb(240, 240, 245); } table.report tr.dark {
+ background-color: rgb(230, 230, 235); }
+ </style>
+ <script type='text/javascript'>
+ // <![CDATA[ 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 cross-references
+ hidden by default document.writeln( "<style
+ type=\"text/css\">span.cross-ref { display: none }</style>" ) // ]]>
+ </script>
+ </head>
+ <body>
+ <h3>
+ C0 code coverage information
+ </h3>
+ <p>
+ Generated on Fri Jan 15 15:54:21 -0800 2010 with
+ <a href='http://eigenclass.org/hiki/rcov'>
+ rcov 0.8.1.2
+ </a>
+ </p>
+ <hr />
+ <table class='report'> <thead> <tr> <td class='heading'> Name </td> <td
+ class='heading'> Total lines </td> <td class='heading'> Lines of code </td>
+ <td class='heading'> Total coverage </td> <td class='heading'> Code coverage
+ </td> </tr> </thead> <tbody> <tr class='light'> <td> TOTAL </td> <td
+ class='lines_total'> <tt> 209 </tt> </td> <td class='lines_code'> <tt> 153
+ </tt> </td> <td> <table cellspacing='0' align='right' cellpadding='0'> <tr>
+ <td> <tt class='coverage_total'> 95.7% </tt> &nbsp; </td> <td> <table
+ class='percent_graph' cellspacing='0' cellpadding='0' width='100'> <tr> <td
+ class='covered' width='96' /> <td class='uncovered' width='4' /> </tr>
+ </table> </td> </tr> </table> </td> <td> <table cellspacing='0'
+ align='right' cellpadding='0'> <tr> <td> <tt class='coverage_code'> 94.1%
+ </tt> &nbsp; </td> <td> <table class='percent_graph' cellspacing='0'
+ cellpadding='0' width='100'> <tr> <td class='covered' width='94' /> <td
+ class='uncovered' width='6' /> </tr> </table> </td> </tr> </table> </td>
+ </tr> <tr class='dark'> <td> <a href='lib-autolink_rb.html'> lib/autolink.rb
+ </a> </td> <td class='lines_total'> <tt> 52 </tt> </td> <td
+ class='lines_code'> <tt> 44 </tt> </td> <td> <table cellspacing='0'
+ align='right' cellpadding='0'> <tr> <td> <tt class='coverage_total'> 98.1%
+ </tt> &nbsp; </td> <td> <table class='percent_graph' cellspacing='0'
+ cellpadding='0' width='100'> <tr> <td class='covered' width='98' /> <td
+ class='uncovered' width='2' /> </tr> </table> </td> </tr> </table> </td>
+ <td> <table cellspacing='0' align='right' cellpadding='0'> <tr> <td> <tt
+ class='coverage_code'> 97.7% </tt> &nbsp; </td> <td> <table
+ class='percent_graph' cellspacing='0' cellpadding='0' width='100'> <tr> <td
+ class='covered' width='98' /> <td class='uncovered' width='2' /> </tr>
+ </table> </td> </tr> </table> </td> </tr> <tr class='light'> <td> <a
+ href='lib-extractor_rb.html'> lib/extractor.rb </a> </td> <td
+ class='lines_total'> <tt> 44 </tt> </td> <td class='lines_code'> <tt> 34
+ </tt> </td> <td> <table cellspacing='0' align='right' cellpadding='0'> <tr>
+ <td> <tt class='coverage_total'> 100.0% </tt> &nbsp; </td> <td> <table
+ class='percent_graph' cellspacing='0' cellpadding='0' width='100'> <tr> <td
+ class='covered' width='100' /> <td class='uncovered' width='0' /> </tr>
+ </table> </td> </tr> </table> </td> <td> <table cellspacing='0'
+ align='right' cellpadding='0'> <tr> <td> <tt class='coverage_code'> 100.0%
+ </tt> &nbsp; </td> <td> <table class='percent_graph' cellspacing='0'
+ cellpadding='0' width='100'> <tr> <td class='covered' width='100' /> <td
+ class='uncovered' width='0' /> </tr> </table> </td> </tr> </table> </td>
+ </tr> <tr class='dark'> <td> <a href='lib-regex_rb.html'> lib/regex.rb </a>
+ </td> <td class='lines_total'> <tt> 74 </tt> </td> <td class='lines_code'>
+ <tt> 56 </tt> </td> <td> <table cellspacing='0' align='right'
+ cellpadding='0'> <tr> <td> <tt class='coverage_total'> 89.2% </tt> &nbsp;
+ </td> <td> <table class='percent_graph' cellspacing='0' cellpadding='0'
+ width='100'> <tr> <td class='covered' width='89' /> <td class='uncovered'
+ width='11' /> </tr> </table> </td> </tr> </table> </td> <td> <table
+ cellspacing='0' align='right' cellpadding='0'> <tr> <td> <tt
+ class='coverage_code'> 85.7% </tt> &nbsp; </td> <td> <table
+ class='percent_graph' cellspacing='0' cellpadding='0' width='100'> <tr> <td
+ class='covered' width='86' /> <td class='uncovered' width='14' /> </tr>
+ </table> </td> </tr> </table> </td> </tr> <tr class='light'> <td> <a
+ href='lib-twitter-text_rb.html'> lib/twitter-text.rb </a> </td> <td
+ class='lines_total'> <tt> 12 </tt> </td> <td class='lines_code'> <tt> 7
+ </tt> </td> <td> <table cellspacing='0' align='right' cellpadding='0'> <tr>
+ <td> <tt class='coverage_total'> 100.0% </tt> &nbsp; </td> <td> <table
+ class='percent_graph' cellspacing='0' cellpadding='0' width='100'> <tr> <td
+ class='covered' width='100' /> <td class='uncovered' width='0' /> </tr>
+ </table> </td> </tr> </table> </td> <td> <table cellspacing='0'
+ align='right' cellpadding='0'> <tr> <td> <tt class='coverage_code'> 100.0%
+ </tt> &nbsp; </td> <td> <table class='percent_graph' cellspacing='0'
+ cellpadding='0' width='100'> <tr> <td class='covered' width='100' /> <td
+ class='uncovered' width='0' /> </tr> </table> </td> </tr> </table> </td>
+ </tr> <tr class='dark'> <td> <a href='lib-unicode_rb.html'> lib/unicode.rb
+ </a> </td> <td class='lines_total'> <tt> 27 </tt> </td> <td
+ class='lines_code'> <tt> 12 </tt> </td> <td> <table cellspacing='0'
+ align='right' cellpadding='0'> <tr> <td> <tt class='coverage_total'> 100.0%
+ </tt> &nbsp; </td> <td> <table class='percent_graph' cellspacing='0'
+ cellpadding='0' width='100'> <tr> <td class='covered' width='100' /> <td
+ class='uncovered' width='0' /> </tr> </table> </td> </tr> </table> </td>
+ <td> <table cellspacing='0' align='right' cellpadding='0'> <tr> <td> <tt
+ class='coverage_code'> 100.0% </tt> &nbsp; </td> <td> <table
+ class='percent_graph' cellspacing='0' cellpadding='0' width='100'> <tr> <td
+ class='covered' width='100' /> <td class='uncovered' width='0' /> </tr>
+ </table> </td> </tr> </table> </td> </tr> </tbody> </table>
+ <hr />
+ <p> Generated using the <a href='http://eigenclass.org/hiki.rb?rcov'> rcov
+ code coverage analysis tool for Ruby </a> version 0.8.1.2. </p>
+ <p>
+ <a href='http://validator.w3.org/check/referer'>
+ <img src='http://www.w3.org/Icons/valid-xhtml11' height='31' alt='Valid XHTML 1.1!' width='88' />
+ </a>
+ <a href='http://jigsaw.w3.org/css-validator/check/referer'>
+ <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Valid CSS!' style='border:0;width:88px;height:31px' />
+ </a>
+ </p>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit f08960d

Please sign in to comment.