-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
70 additions
and
58 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
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 |
---|---|---|
|
@@ -7,53 +7,28 @@ rescue LoadError | |
end | ||
|
||
begin | ||
require 'rack-debug/tasks' | ||
rescue LoadError | ||
|
||
end | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "yogo-db" | ||
gem.summary = "Yogo DB Rest components" | ||
gem.description = "Restful interface to yogo data components" | ||
gem.email = "[email protected]" | ||
gem.homepage = "http://github.com/yogo/yogo-db" | ||
gem.authors = ["Ryan Heimbuch"] | ||
gem.add_bundler_dependencies | ||
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
desc 'Run all examples using rcov' | ||
RSpec::Core::RakeTask.new(:rcov) do |spec| | ||
spec.rcov = true | ||
spec.rcov_opts = %[-Ilib -Ispec --exclude "mocks,expectations,gems/*,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*"] | ||
spec.rcov_opts << %[--no-html --aggregate coverage.data] | ||
end | ||
Jeweler::GemcutterTasks.new | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" | ||
puts "RSpec not installed. Install with: bundle install" | ||
end | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
desc 'Run all examples using rcov' | ||
RSpec::Core::RakeTask.new(:rcov) do |spec| | ||
spec.rcov = true | ||
spec.rcov_opts = %[-Ilib -Ispec --exclude "mocks,expectations,gems/*,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*"] | ||
spec.rcov_opts << %[--no-html --aggregate coverage.data] | ||
end | ||
|
||
# task :spec => :check_dependencies | ||
|
||
begin | ||
require 'cucumber/rake/task' | ||
Cucumber::Rake::Task.new(:features) | ||
|
||
task :features => :check_dependencies | ||
rescue LoadError | ||
task :features do | ||
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber" | ||
end | ||
end | ||
|
||
task :default => :spec | ||
|
||
begin | ||
require 'yard' | ||
YARD::Rake::YardocTask.new | ||
|
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,2 @@ | ||
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib') | ||
require 'yogo-db' | ||
require 'spec/expectations' |
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,7 +1,5 @@ | ||
# Defining a schema factory | ||
|
||
Factory.define(:schema) do |u| | ||
u.sequence(:name) {|n| "yogo_#{n}"} | ||
u.sequence(:name) { |n| "yogo_#{n}" } | ||
u.operations [['add/property', :name, 'String']] | ||
|
||
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