Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

starting to use jeweler for easier gem deployments

  • Loading branch information...
commit 0c94634089ca85499817e7e45996918d2ac8dfb3 1 parent cb7a2ca
Andrew Havens authored
View
11 Gemfile
@@ -1,5 +1,14 @@
source :rubygems
+# Gem dependencies
gem 'thor'
gem 'eventmachine', '0.12.10'
-gem 'em-websocket'
+gem 'em-websocket'
+
+# Development dependencies
+group :development do
+ gem "shoulda", ">= 0"
+ gem "bundler", "~> 1.0.0"
+ gem "jeweler", "~> 1.6.4"
+ gem "rcov", ">= 0"
+end
View
12 Gemfile.lock
@@ -6,12 +6,24 @@ GEM
addressable (>= 2.1.1)
eventmachine (>= 0.12.9)
eventmachine (0.12.10)
+ git (1.2.5)
+ jeweler (1.6.4)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ rake (0.9.2.2)
+ rcov (0.9.11)
+ shoulda (2.11.3)
thor (0.14.6)
PLATFORMS
ruby
DEPENDENCIES
+ bundler (~> 1.0.0)
em-websocket
eventmachine (= 0.12.10)
+ jeweler (~> 1.6.4)
+ rcov
+ shoulda
thor
View
0  LICENSE → LICENSE.txt
File renamed without changes
View
4 README.md
@@ -72,3 +72,7 @@ Please fork and send pull requests! Or submit issues if you have suggestions on
- Come up with a better approach to configuration/extension
- Switch from em-websocket to Juggernaut, Socket.io, or Cramp and web-socket-js for better cross-browser support
- Add tests!
+
+##Copyright
+
+Copyright (c) 2011 Andrew Havens. See LICENSE.txt for further details.
View
53 Rakefile
@@ -0,0 +1,53 @@
+# encoding: utf-8
+
+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 = "mad_chatter"
+ gem.homepage = "http://github.com/andrewhavens/mad_chatter"
+ gem.license = "MIT"
+ gem.summary = %Q{Mad Chatter is a fun, easy to customize chat server, utilizing HTML 5 Web Sockets}
+ gem.description = %Q{Mad Chatter is a fun, easy to customize chat server, utilizing HTML 5 Web Sockets}
+ gem.email = "email@andrewhavens.com"
+ gem.authors = ["Andrew Havens"]
+ # dependencies defined in Gemfile
+end
+Jeweler::RubygemsDotOrgTasks.new
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+require 'rcov/rcovtask'
+Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ test.rcov_opts << '--exclude "gems/*"'
+end
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "mad_chatter #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
1  VERSION
@@ -0,0 +1 @@
+0.1.0
View
2  mad_chatter.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'mad_chatter'
- s.version = '0.0.8'
+ s.version = '0.1.0'
s.date = '2011-11-11'
s.summary = "Mad Chatter is a fun, easy to customize chat server, utilizing HTML 5 Web Sockets"
s.description = "Mad Chatter is a fun, easy to customize chat server, utilizing HTML 5 Web Sockets"
View
18 test/helper.rb
@@ -0,0 +1,18 @@
+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 'test/unit'
+require 'shoulda'
+
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'mad_chatter'
+
+class Test::Unit::TestCase
+end
View
7 test/test_mad_chatter.rb
@@ -0,0 +1,7 @@
+require 'helper'
+
+class TestMadChatter < Test::Unit::TestCase
+ should "probably rename this file and start testing for real" do
+ flunk "hey buddy, you should probably rename this file and start testing for real"
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.