Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

setup dev environment

* add changelog
* add Guardfile
* update Gemfile
* update Rakefile
  • Loading branch information...
commit 3bee7a99ed86ac90845b50103d017053863a51d8 1 parent 2fffb05
@cpjolicoeur cpjolicoeur authored
View
7 CHANGELOG
@@ -0,0 +1,7 @@
+== 0.1.0
+
+* First working version of gem
+
+== 0.0.1
+
+* Non-Working gem, just a stub file
View
11 Gemfile
@@ -2,3 +2,14 @@ source "http://rubygems.org"
# Specify your gem's dependencies in guard-annotate.gemspec
gemspec
+
+require 'rbconfig'
+
+if Config::CONFIG['target_os'] =~ /darwin/i
+ gem 'rb-fsevent', '>= 0.3.2'
+ gem 'growl', '~> 1.0.3'
+end
+if Config::CONFIG['target_os'] =~ /linux/i
+ gem 'rb-inotify', '>= 0.5.1'
+ gem 'libnotify', '~> 0.1.3'
+end
View
5 Guardfile
@@ -0,0 +1,5 @@
+guard 'rspec', :version => 2 do
+ watch( %r{^spec/(.*)_spec.rb} )
+ watch( %r{^lib/(.*).rb} ) { |m| "spec/#{m[1]}_spec.rb" }
+ watch( 'spec/spec_helper.rb' ) { "spec" }
+end
View
19 Rakefile
@@ -1,2 +1,21 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new( :spec )
+task :default => :spec
+
+namespace( :spec ) do
+ desc "Run all specs on multiple ruby versions (requires rvm)"
+ task( :portability ) do
+ %w{1.8.7 1.9.2}.each do |version|
+ system <<-BASH
+ bash -c 'source ~/.rvm/scripts/rvm;
+ rvm #{version};
+ echo "--------- version #{version} ---------\n";
+ bundle install;
+ rake spec'
+ BASH
+ end
+ end
+end
View
2  lib/guard/guard-annotate/version.rb
@@ -1,5 +1,5 @@
module Guard
module Annotate
- VERSION = "0.0.1"
+ VERSION = "0.1.0"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.