Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial (empty) commit.

  • Loading branch information...
commit 771198dfec65210253690f1696dca005e5cb4f16 0 parents
John Barnette authored
34 README.rdoc
@@ -0,0 +1,34 @@
+= Pastejour
+
+Broadcast standard out.
+
+== Installation
+
+ sudo gem install basis
+
+== Usage
+
+ git diff | pastejour
+
+== License
+
+Copyright (c) 2007 John Barnette
+
+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.
55 Rakefile
@@ -0,0 +1,55 @@
+require "fileutils"
+require "rubygems"
+require "rake/gempackagetask"
+require "spec/rake/spectask"
+
+require "./lib/pastejour/version.rb"
+
+pastejour_gemspec = Gem::Specification.new do |s|
+ s.name = "pastejour"
+ s.version = Pastejour::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README.rdoc"]
+ s.summary = "Broadcast standard out."
+ s.description = s.summary
+ s.author = "John Barnette"
+ s.email = "jbarnette@rubyforge.org"
+ s.homepage = "http://github.com/jbarnette/pastejour"
+ s.require_path = "lib"
+ s.autorequire = "pastejour"
+ s.files = %w(README.rdoc Rakefile) + Dir.glob("{lib,spec}/**/*")
+
+ # Uncomment this to add a dependency
+ # s.add_dependency "foo"
+end
+
+Rake::GemPackageTask.new(pastejour_gemspec) do |pkg|
+ pkg.gem_spec = pastejour_gemspec
+end
+
+namespace :gem do
+ namespace :spec do
+ desc "Update pastejour.gemspec"
+ task :generate do
+ File.open("pastejour.gemspec", "w") do |f|
+ f.puts(pastejour_gemspec.to_ruby)
+ end
+ end
+ end
+end
+
+task :install => :package do
+ sh %{sudo gem install pkg/pastejour-#{Pastejour::VERSION}}
+end
+
+desc "Run all specs"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_files = FileList["spec/**/*_spec.rb"]
+ t.spec_opts = ["--options", "spec/spec.opts"]
+end
+
+task :default => :spec
+
+desc "Remove all generated artifacts"
+task :clean => :clobber_package
1  lib/pastejour.rb
@@ -0,0 +1 @@
+require "pastejour/version"
3  lib/pastejour/version.rb
@@ -0,0 +1,3 @@
+module Pastejour
+ VERSION = "1.0.0".freeze
+end
0  pastejour.gemspec
No changes.
11 spec/helper.rb
@@ -0,0 +1,11 @@
+$LOAD_PATH.unshift(File.expand_path("#{File.dirname(__FILE__)}/../lib"))
+
+require "spec"
+require "pastejour"
+
+module Spec::Expectations::ObjectExpectations
+ alias_method :must, :should
+ alias_method :must_not, :should_not
+ undef_method :should
+ undef_method :should_not
+end
7 spec/pastejour/pastejour_spec.rb
@@ -0,0 +1,7 @@
+require File.expand_path("#{File.dirname(__FILE__)}/../helper")
+
+describe "Pastejour" do
+ it "is awesome" do
+ "awesome".must == "awesome"
+ end
+end
7 spec/spec.opts
@@ -0,0 +1,7 @@
+--colour
+--format
+progress
+--loadby
+mtime
+--reverse
+--backtrace
Please sign in to comment.
Something went wrong with that request. Please try again.