Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move from hoe to bundler's build tools

  • Loading branch information...
commit a1525890f88a14587b2ff48939a5abe838b02cfb 1 parent 4a460d8
@drnic authored
View
21 .gitignore
@@ -1,8 +1,17 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
pkg
-doc
-.DS_Store
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
tmp
-*.log
-.test-result
-email.txt
-*.gemspec
View
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Dr Nic Williams
+
+MIT License
+
+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
29 README.md
@@ -0,0 +1,29 @@
+# Rubigen
+
+TODO: Write a gem description
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'rubigen'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install rubigen
+
+## Usage
+
+TODO: Write usage instructions here
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
View
45 Rakefile
@@ -1,30 +1,25 @@
-require 'rubygems'
-require 'hoe'
-require './lib/rubigen'
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
-Hoe.plugin :newgem
-Hoe.plugin :website
-Hoe.plugin :cucumberfeatures
-Hoe.plugin :git
+require './lib/rubigen'
-# Generate all the Rake tasks
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
-Hoe.spec 'rubigen' do
- developer 'Dr Nic Williams', 'drnicwilliams@gmail.com'
- developer 'Jeremy Kemper', 'jeremy@bitsweat.net'
- developer 'Ben Klang', 'bklang@mojolingo.com'
- extra_deps << ['activesupport','>= 2.3.5', "< 3.2.0"]
- # Needed when loading active_support/all
- extra_deps << ['i18n']
- extra_dev_deps << ['rspec','~>1.3']
- extra_dev_deps << ['mocha','>= 0.9.8']
- extra_dev_deps << ['cucumber','>= 0.6.2']
- extra_dev_deps << ['shoulda','>= 2.10.3']
- extra_dev_deps << ['hoe']
- extra_dev_deps << ['hoe-git']
- extra_dev_deps << ['newgem']
+namespace :cucumber do
+ require 'cucumber/rake/task'
+ Cucumber::Rake::Task.new(:wip, 'Run features that are being worked on') do |t|
+ t.cucumber_opts = "--tags @wip"
+ end
+ Cucumber::Rake::Task.new(:ok, 'Run features that should be working') do |t|
+ t.cucumber_opts = "--tags ~@wip"
+ end
+ task :all => [:ok, :wip]
end
-require 'newgem/tasks' rescue nil # load /tasks/*.rake
+desc "Go to TravisCI status page"
+task :travis do
+ require "launchy"
+ Launchy.open("http://travis-ci.org/#!/drnic/rubigen")
+end
+desc 'Alias for cucumber:ok'
+task :cucumber => 'cucumber:ok'
-task :default => :features
+task :default => ["test", "cucumber"]
View
0  bin/rubigen 100644 → 100755
File mode changed
View
13 features/development.feature
@@ -1,13 +0,0 @@
-Feature: Development processes of newgem itself (rake tasks)
-
- As a Newgem maintainer or contributor
- I want rake tasks to maintain and release the gem
- So that I can spend time on the tests and code, and not excessive time on maintenance processes
-
- Scenario: Generate RubyGem
- Given this project is active project folder
- And "pkg" folder is deleted
- When I invoke task "rake gem"
- Then folder "pkg" is created
- And file with name matching "pkg/*.gem" is created else you should run "rake manifest" to fix this
- And gem spec key "rdoc_options" contains /(--mainREADME.rdoc|\[\"--main\", \"README.rdoc\"\])/
View
3  lib/rubigen/version.rb
@@ -0,0 +1,3 @@
+module Rubigen
+ VERSION = "0.0.1"
+end
View
26 rubigen.gemspec
@@ -0,0 +1,26 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/rubigen/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ["Dr Nic Williams", 'Jeremy Kemper', 'Ben Klang']
+ gem.email = ["drnicwilliams@gmail.com"]
+ gem.description = %q{TODO: Write a gem description}
+ gem.summary = %q{TODO: Write a gem summary}
+ gem.homepage = ""
+
+ gem.files = `git ls-files`.split($\)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.name = "rubigen"
+ gem.require_paths = ["lib"]
+ gem.version = Rubigen::VERSION
+
+ gem.add_dependency 'activesupport', '>= 2.3.5', "< 3.2.0"
+ gem.add_development_dependency 'rake'
+ gem.add_development_dependency 'i18n'
+ gem.add_development_dependency 'rspec','~>1.3'
+ gem.add_development_dependency 'mocha','>= 0.9.8'
+ gem.add_development_dependency 'cucumber','>= 0.6.2'
+ gem.add_development_dependency 'shoulda','>= 2.10.3'
+ gem.add_development_dependency 'launchy'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.