-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakeFile.rb
44 lines (37 loc) · 1.09 KB
/
RakeFile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "neo_rest"
gem.summary = %Q{a rest wrapper for the Neo4j rest API}
gem.description = %Q{a rest wrapper for the Neo4j rest API}
gem.email = "[email protected]"
gem.homepage = "http://github.com/MarkNijhof/NeoRest"
gem.authors = ["Mark Nijhof"]
gem.add_development_dependency "rspec", '2.6.0'
gem.add_dependency "json", '1.5.1'
gem.add_dependency "rest-client", '1.6.1'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
task :test => [:set_test_environment] do
sh "bundle exec watchr"
end
task :neo_stop do
sh "~/neo4j-server-dev/bin/neo4j stop"
sh "~/neo4j-server/bin/neo4j stop"
end
task :neo_start do
sh "~/neo4j-server-dev/bin/neo4j start"
sh "~/neo4j-server/bin/neo4j start"
end
task :set_test_environment do
ENV['AUTOFEATURE'] = "true"
ENV['RSPEC'] = "true"
ENV['NEO4J_HOST'] = 'localhost'
ENV['NEO4J_PORT'] = '7474'
end
task :default => :test