forked from nicksieger/neo4j-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (35 loc) · 1.22 KB
/
Rakefile
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
require 'rubygems'
require 'date'
require './lib/neo4j-rails/version'
gemspec = Gem::Specification.new do |s|
s.name = %q{neo4j-rails}
s.version = Neo4jRails::VERSION
s.authors = ["Nick Sieger", "Ben Jackson"]
s.date = Date.today.to_s
s.description = %{Adapts Neo4j for Rails 3 apps using ActiveModel}
s.summary = %q{Neo4j adapter for Rails 3}
s.email = ["[email protected]"]
s.files = FileList["lib/**/*", "spec/**/*",
*%w(Gemfile neo4j-rails.gemspec History.txt LICENSE.txt Rakefile README.markdown)
].select {|f| File.file?(f) }
s.homepage = %q{http://jruby.org}
s.has_rdoc = false
s.add_dependency('rails', ">= 3.0.0.beta2")
s.add_dependency('neo4j', ">= 0.4.3")
end
task :gemspec do
File.open("neo4j-rails.gemspec", "w") {|f| f << gemspec.to_ruby }
end
require 'rake/gempackagetask'
Rake::GemPackageTask.new(gemspec) do |pkg|
end
task :package => :spec
task :release => :package do
if Neo4jRails::VERSION != ENV['VERSION']
abort "Versions do not match: #{Neo4jRails::VERSION.inspect} != #{ENV['VERSION'].inspect}"
end
sh "gem push pkg/neo4j-rails-#{Neo4jRails::VERSION}.gem"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
task :default => :spec