Permalink
Browse files

removed comments. added comments. changed raising an error to abortin…

…g if config file couldnt be found.
  • Loading branch information...
1 parent c6de224 commit 251d321205f8aac918c6e7223105947765120cad Andrew Havens committed Dec 22, 2011
Showing with 4 additions and 6 deletions.
  1. +1 −1 Rakefile
  2. +0 −2 bin/mad_chatter
  3. +2 −2 lib/mad_chatter/config.rb
  4. +1 −1 lib/mad_chatter/version.rb
View
@@ -1 +1 @@
-require "bundler/gem_tasks"
+require "bundler/gem_tasks" # adds 'build', 'install', and 'release' tasks
View
@@ -1,6 +1,4 @@
#!/usr/bin/env ruby
-# lib_dir = File.expand_path('../lib', __FILE__)
-# $:.unshift( lib_dir ) unless $:.include?( lib_dir )
require 'thor'
@@ -21,9 +21,9 @@ def initialize_config
config_file = File.join(Dir.pwd, 'config.yml')
unless File.exist?(config_file)
- raise 'Could not find Mad Chatter config.yml file'
+ abort 'Could not find Mad Chatter config.yml file'
end
-
+
config = YAML::load(File.open(config_file))
defaults = {
'websocket_backend' => 'websocket-rack',
@@ -1,5 +1,5 @@
module MadChatter
- VERSION = '0.1.1'
+ VERSION = '0.1.2'
end

0 comments on commit 251d321

Please sign in to comment.