Skip to content

Commit

Permalink
New rakefile of doom
Browse files Browse the repository at this point in the history
  • Loading branch information
Sutto committed Sep 16, 2009
1 parent 869dda4 commit 8dff0a8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 114 deletions.
15 changes: 11 additions & 4 deletions Rakefile
Expand Up @@ -52,10 +52,6 @@ task :install_dependencies do
end

task :check_dirty do
if `git rev-parse HEAD` != `git rev-parse origin/master`
puts "You have unpushed changes. Please push them first"
exit!
end
if `git status`.include? 'added to commit'
puts "You have uncommited changes. Please commit them first"
exit!
Expand All @@ -69,3 +65,14 @@ task :tag => :check_dirty do
system command
end

task :commit_gemspec => [:check_dirty, :gemspec] do
command = "git commit -am 'Generate gemspec for v#{Marvin.version(ENV['RELEASE'].blank?)}'"
puts ">> #{command}"
system command
end

task :release => [:commit_gemspec, :tag] do
puts ">> git push"
system "git push"
puts "New version released."
end
122 changes: 12 additions & 110 deletions marvin.gemspec
@@ -1,133 +1,35 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{marvin}
s.version = "0.4.0"
s.version = "0.8.0.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Darcy Laycock"]
s.date = %q{2009-08-22}
s.default_executable = %q{marvin}
s.description = %q{Marvin is a Ruby IRC library / framework for ultimate awesomeness and with an evented design.}
s.date = %q{2009-09-16}
s.email = %q{sutto@sutto.net}
s.executables = ["marvin"]
s.extra_rdoc_files = [
"README.textile"
]
s.files = [
"README.textile",
"TUTORIAL.textile",
"VERSION.yml",
"bin/marvin",
"config/boot.rb",
"config/connections.yml.sample",
"config/settings.yml.sample",
"config/setup.rb",
"handlers/debug_handler.rb",
"handlers/hello_world.rb",
"handlers/logging_handler.rb",
"handlers/simple_logger.rb",
"handlers/tweet_tweet.rb",
"lib/marvin.rb",
"lib/marvin/abstract_client.rb",
"lib/marvin/abstract_parser.rb",
"lib/marvin/base.rb",
"lib/marvin/command_handler.rb",
"lib/marvin/console.rb",
"lib/marvin/core_commands.rb",
"lib/marvin/core_ext.rb",
"lib/marvin/daemon.rb",
"lib/marvin/data_store.rb",
"lib/marvin/dispatchable.rb",
"lib/marvin/distributed.rb",
"lib/marvin/distributed/dispatch_handler.rb",
"lib/marvin/distributed/drb_client.rb",
"lib/marvin/distributed/ring_server.rb",
"lib/marvin/exception_tracker.rb",
"lib/marvin/exceptions.rb",
"lib/marvin/handler.rb",
"lib/marvin/irc.rb",
"lib/marvin/irc/client.rb",
"lib/marvin/irc/event.rb",
"lib/marvin/irc/replies.rb",
"lib/marvin/irc/server.rb",
"lib/marvin/irc/server/abstract_connection.rb",
"lib/marvin/irc/server/base_connection.rb",
"lib/marvin/irc/server/channel.rb",
"lib/marvin/irc/server/named_store.rb",
"lib/marvin/irc/server/remote_interface.rb",
"lib/marvin/irc/server/user.rb",
"lib/marvin/irc/server/user/handle_mixin.rb",
"lib/marvin/irc/server/user_connection.rb",
"lib/marvin/irc/server/virtual_user_connection.rb",
"lib/marvin/loader.rb",
"lib/marvin/logger.rb",
"lib/marvin/logging_handler.rb",
"lib/marvin/middle_man.rb",
"lib/marvin/options.rb",
"lib/marvin/parsers.rb",
"lib/marvin/parsers/command.rb",
"lib/marvin/parsers/prefixes.rb",
"lib/marvin/parsers/prefixes/host_mask.rb",
"lib/marvin/parsers/prefixes/server.rb",
"lib/marvin/parsers/ragel_parser.rb",
"lib/marvin/parsers/ragel_parser.rl",
"lib/marvin/parsers/regexp_parser.rb",
"lib/marvin/parsers/simple_parser.rb",
"lib/marvin/settings.rb",
"lib/marvin/status.rb",
"lib/marvin/test_client.rb",
"lib/marvin/util.rb",
"script/client",
"script/console",
"script/distributed_client",
"script/install",
"script/ring_server",
"script/server",
"script/status",
"spec/marvin/abstract_client_test.rb",
"spec/spec_helper.rb",
"test/parser_comparison.rb",
"test/parser_test.rb",
"test/test_helper.rb",
"test/util_test.rb"
]
s.homepage = %q{http://blog.ninjahideout.com/}
s.rdoc_options = ["--charset=UTF-8"]
s.files = ["bin/marvin", "lib/marvin", "lib/marvin/abstract_client.rb", "lib/marvin/abstract_parser.rb", "lib/marvin/base.rb", "lib/marvin/client", "lib/marvin/client/actions.rb", "lib/marvin/client/default_handlers.rb", "lib/marvin/command_handler.rb", "lib/marvin/console.rb", "lib/marvin/core_commands.rb", "lib/marvin/distributed", "lib/marvin/distributed/client.rb", "lib/marvin/distributed/handler.rb", "lib/marvin/distributed/protocol.rb", "lib/marvin/distributed/server.rb", "lib/marvin/distributed.rb", "lib/marvin/dsl.rb", "lib/marvin/exception_tracker.rb", "lib/marvin/exceptions.rb", "lib/marvin/irc", "lib/marvin/irc/client.rb", "lib/marvin/irc/event.rb", "lib/marvin/irc/replies.rb", "lib/marvin/irc.rb", "lib/marvin/logging_handler.rb", "lib/marvin/middle_man.rb", "lib/marvin/parsers", "lib/marvin/parsers/command.rb", "lib/marvin/parsers/prefixes", "lib/marvin/parsers/prefixes/host_mask.rb", "lib/marvin/parsers/prefixes/server.rb", "lib/marvin/parsers/prefixes.rb", "lib/marvin/parsers/ragel_parser.rb", "lib/marvin/parsers/ragel_parser.rl", "lib/marvin/parsers/simple_parser.rb", "lib/marvin/parsers.rb", "lib/marvin/settings.rb", "lib/marvin/test_client.rb", "lib/marvin/util.rb", "lib/marvin.rb", "templates/boot.erb", "templates/connections.yml.erb", "templates/debug_handler.erb", "templates/hello_world.erb", "templates/rakefile.erb", "templates/settings.yml.erb", "templates/setup.erb", "templates/test_helper.erb", "test/abstract_client_test.rb", "test/parser_comparison.rb", "test/parser_test.rb", "test/test_helper.rb", "test/util_test.rb", "handlers/debug_handler.rb", "handlers/hello_world.rb", "handlers/keiki_thwopper.rb", "handlers/simple_logger.rb", "handlers/tweet_tweet.rb"]
s.homepage = %q{http://sutto.net/}
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{Ruby IRC Library / Framework}
s.test_files = [
"spec/marvin/abstract_client_test.rb",
"spec/spec_helper.rb",
"test/parser_comparison.rb",
"test/parser_test.rb",
"test/test_helper.rb",
"test/util_test.rb"
]
s.rubygems_version = %q{1.3.2}
s.summary = %q{Evented IRC Library of Doom}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<Sutto-perennial>, [">= 0.2.4.6"])
s.add_runtime_dependency(%q<eventmachine-eventmachine>, [">= 0.12.9"])
s.add_runtime_dependency(%q<json>, [">= 0"])
s.add_runtime_dependency(%q<activesupport>, [">= 2.1.0"])
s.add_runtime_dependency(%q<eventmachine>, [">= 0.12.0"])
s.add_runtime_dependency(%q<thor>, [">= 0.9.7"])
else
s.add_dependency(%q<Sutto-perennial>, [">= 0.2.4.6"])
s.add_dependency(%q<eventmachine-eventmachine>, [">= 0.12.9"])
s.add_dependency(%q<json>, [">= 0"])
s.add_dependency(%q<activesupport>, [">= 2.1.0"])
s.add_dependency(%q<eventmachine>, [">= 0.12.0"])
s.add_dependency(%q<thor>, [">= 0.9.7"])
end
else
s.add_dependency(%q<Sutto-perennial>, [">= 0.2.4.6"])
s.add_dependency(%q<eventmachine-eventmachine>, [">= 0.12.9"])
s.add_dependency(%q<json>, [">= 0"])
s.add_dependency(%q<activesupport>, [">= 2.1.0"])
s.add_dependency(%q<eventmachine>, [">= 0.12.0"])
s.add_dependency(%q<thor>, [">= 0.9.7"])
end
end

0 comments on commit 8dff0a8

Please sign in to comment.