Permalink
Browse files

Update the Rakefile, add Gemfiles and .rvmrc, .rspec

Bringing the development files up to date.
  • Loading branch information...
1 parent a81ffd4 commit 2d52e93bbcfb089f22e4631b10ee8de1a82fdc1f @miketierney committed Jan 5, 2012
Showing with 67 additions and 26 deletions.
  1. +1 −0 .rspec
  2. +1 −0 .rvmrc
  3. +8 −0 Gemfile
  4. +28 −0 Gemfile.lock
  5. +29 −26 Rakefile
View
@@ -0,0 +1 @@
+--color
View
@@ -0,0 +1 @@
+rvm --create ruby-1.9.2@artii
View
@@ -0,0 +1,8 @@
+source "http://rubygems.org"
+
+group :development do
+ gem "rspec", "~> 2.3.0"
+ gem "bundler", "~> 1.0.0"
+ gem "jeweler", "~> 1.6.4"
+ gem "rcov", ">= 0"
+end
View
@@ -0,0 +1,28 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ 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)
+ rspec (2.3.0)
+ rspec-core (~> 2.3.0)
+ rspec-expectations (~> 2.3.0)
+ rspec-mocks (~> 2.3.0)
+ rspec-core (2.3.1)
+ rspec-expectations (2.3.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.3.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (~> 1.0.0)
+ jeweler (~> 1.6.4)
+ rcov
+ rspec (~> 2.3.0)
View
@@ -1,40 +1,43 @@
# -*- ruby -*-
+# encoding: utf-8
require 'rubygems'
-require 'rake'
-require './lib/artii.rb'
+require 'bundler'
begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "artii"
- gem.executables = ["artii"]
- gem.summary = "A little Figlet-based ASCII art generator."
- gem.description = "A Figlet-based ASCII art generator, useful for command-line based ASCII Art Generation."
- gem.email = "mike@panpainter.com"
- gem.homepage = "http://github.com/miketierney/artii"
- gem.authors = ["Mike Tierney"]
- gem.add_development_dependency "rspec", ">= 1.2.9"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+ 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 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
+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 = "artii"
+ gem.executables = ["artii"]
+ gem.summary = "A little Figlet-based ASCII art generator."
+ gem.description = "A Figlet-based ASCII art generator, useful for comand-line based ASCII Art Generation."
+ gem.email = "mike@panpainter.com"
+ gem.homepage = "http://github.com/miketierney/artii"
+ gem.authors = ["Mike Tierney"]
+ gem.license = "MIT"
+ # dependencies defined in Gemfile
end
+Jeweler::RubygemsDotOrgTasks.new
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList["spec/**/*_spec.rb"]
end
-task :spec => :check_dependencies
+RSpec::Core::RakeTask.new(:rcov) do |spec|
+ spec.pattern = "spec/**/*_spec.rb"
+ spec.rcov = true
+end
task :default => :spec

0 comments on commit 2d52e93

Please sign in to comment.