Browse files

generated rakefile using jeweler

  • Loading branch information...
1 parent 8a9b5d3 commit e76e727f608955dbf1d9c2fa59f9a1112e80e11e @geelen committed Jan 4, 2011
Showing with 123 additions and 3 deletions.
  1. +14 −0 .gitignore
  2. +5 −2 Gemfile
  3. +19 −1 Gemfile.lock
  4. +20 −0 LICENSE.txt
  5. +14 −0 README.md
  6. +50 −0 Rakefile
  7. +1 −0 spec/spec_helper.rb
View
14 .gitignore
@@ -1 +1,15 @@
+# rcov generated
+coverage
+
+# rdoc generated
+rdoc
+
+# yard generated
+doc
+.yardoc
+
+# bundler
.bundle
+
+# jeweler generated
+pkg
View
7 Gemfile
@@ -2,7 +2,10 @@ source :rubygems
gem 'colorize'
-group :test do
- gem 'rspec', '>= 2.3.0'
+group :development do
+ gem "rspec", "~> 2.3.0"
+ gem "rcov", ">= 0"
gem 'ruby-debug'
+ gem "bundler", "~> 1.0.0"
+ gem "jeweler", "~> 1.5.2"
end
View
20 Gemfile.lock
@@ -2,7 +2,16 @@ GEM
remote: http://rubygems.org/
specs:
colorize (0.5.8)
+ columnize (0.3.2)
diff-lcs (1.1.2)
+ git (1.2.5)
+ jeweler (1.5.2)
+ bundler (~> 1.0.0)
+ git (>= 1.2.5)
+ rake
+ linecache (0.43)
+ rake (0.8.7)
+ rcov (0.9.8)
rspec (2.3.0)
rspec-core (~> 2.3.0)
rspec-expectations (~> 2.3.0)
@@ -11,10 +20,19 @@ GEM
rspec-expectations (2.3.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.3.0)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
PLATFORMS
ruby
DEPENDENCIES
+ bundler (~> 1.0.0)
colorize
- rspec (>= 2.3.0)
+ jeweler (~> 1.5.2)
+ rcov
+ rspec (~> 2.3.0)
+ ruby-debug
View
20 LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Glen Maddern
+
+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.
View
14 README.md
@@ -28,3 +28,17 @@ This is how it works:
0. Output a summary of what just happened, as well as any new or updated branches that came down with the last fetch.
0. Output a big, green GIT UP GOOD or red GIT UP BAD, depending on how things went.
+# Contributing to git-smart
+
+* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
+* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
+* Fork the project
+* Start a feature/bugfix branch
+* Commit and push until you are happy with your contribution
+* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
+* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
+
+# Copyright
+
+Copyright (c) 2011 Glen Maddern. See LICENSE.txt for
+further details.
View
50 Rakefile
@@ -0,0 +1,50 @@
+require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
+require 'rake'
+
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "git-smart"
+ gem.homepage = "http://github.com/geelen/git-smart"
+ gem.license = "MIT"
+ gem.summary = %Q{TODO: one-line summary of your gem}
+ gem.description = %Q{TODO: longer description of your gem}
+ gem.email = "glenmaddern@gmail.com"
+ gem.authors = ["Glen Maddern"]
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
+end
+Jeweler::RubygemsDotOrgTasks.new
+
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
+end
+
+RSpec::Core::RakeTask.new(:rcov) do |spec|
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
+end
+
+task :default => :spec
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "git-smart #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
1 spec/spec_helper.rb
@@ -1,4 +1,5 @@
require 'ruby-debug'
+require 'rspec'
require File.dirname(__FILE__) + '/../lib/git-smart'

0 comments on commit e76e727

Please sign in to comment.