forked from zerohistory/toystore
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated rspec * Moved dev deps to gemfile * Updated gemspec * Removed need for redis, etc.
- Loading branch information
1 parent
00921d7
commit 6166e21
Showing
6 changed files
with
70 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
source :rubygems | ||
gemspec | ||
gem 'adapter', :git => 'git@github.com:newtoy/adapter.git' | ||
|
||
group(:development) do | ||
gem 'rake', '~> 0.8.7' | ||
gem 'rspec', '~> 2.3' | ||
gem 'timecop', '~> 0.3.5' | ||
gem 'tzinfo', '~> 0.3.23' | ||
gem 'log_buddy', '~> 0.5.0' | ||
gem 'adapter-memcached', '~> 0.5.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,7 @@ | ||
require 'rubygems' | ||
require 'bundler/setup' | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'spec/rake/spectask' | ||
require File.expand_path('../lib/toy/version', __FILE__) | ||
require 'bundler' | ||
Bundler::GemHelper.install_tasks | ||
|
||
def gemspec | ||
@gemspec ||= begin | ||
file = File.expand_path('../toy.gemspec', __FILE__) | ||
eval(File.read(file), binding, file) | ||
end | ||
end | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new | ||
|
||
Rake::TestTask.new do |t| | ||
t.ruby_opts << '-rubygems' | ||
t.test_files = ['test/lint_test.rb'] | ||
t.verbose = true | ||
end | ||
|
||
Spec::Rake::SpecTask.new do |t| | ||
t.ruby_opts << '-rubygems' | ||
end | ||
task :default => :spec | ||
task :default => :test | ||
|
||
desc 'Vaildate the gem specification' | ||
task :gemspec do | ||
gemspec.validate | ||
end | ||
|
||
desc 'Builds the gem' | ||
task :build => :gemspec do | ||
sh "gem build toy.gemspec" | ||
end | ||
|
||
desc 'Builds and installs the gem' | ||
task :install => :build do | ||
sh "gem install toy-#{Toy::Version}" | ||
end | ||
|
||
desc 'Tags version, pushes to remote, and pushes gem' | ||
task :release => :build do | ||
sh "git tag v#{Toy::Version}" | ||
sh "git push origin master" | ||
sh "git push origin v#{Toy::Version}" | ||
sh "gem push toy-#{Toy::Version}.gem" | ||
end | ||
task :default => :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters