-
Notifications
You must be signed in to change notification settings - Fork 29
/
Rakefile
54 lines (44 loc) · 1.64 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
42
43
44
45
46
47
48
49
50
51
52
53
54
# frozen_string_literal: true
require 'rubygems'
require 'hoe'
Hoe.plugin :bundler
Hoe.plugin :gemspec
def jruby?
RUBY_PLATFORM == 'java'
end
HOE = Class.new(Hoe) do
def read_manifest
Dir[*%w[README.md LICENSE.txt lib/neo4j-ruby-driver.rb lib/neo4j_ruby_driver.rb lib/neo4j-ruby-driver_loader.rb]] +
Dir['lib/neo4j/**/*.rb'] +
Dir["#{jruby? ? 'jruby' : 'ruby'}/**/*.rb"]
end
end.spec 'neo4j-ruby-driver' do
developer 'Heinrich Klobuczek', '[email protected]'
active_support_version = ENV['ACTIVE_SUPPORT_VERSION']
dependency 'activesupport', active_support_version&.length&.positive? ? "~> #{active_support_version}" : '>= 5.2.0'
# dependency 'async-rspec', '>= 0', :dev
dependency 'ffaker', '>= 0', :dev
dependency 'hoe', '>= 0', :dev
dependency 'hoe-bundler', '>= 0', :dev
dependency 'hoe-gemspec', '>= 0', :dev
dependency 'rake', '>= 0', :dev
dependency 'rspec-its', '>= 0', :dev
dependency 'rspec-mocks', '>= 0', :dev
dependency 'zeitwerk', '>= 2.1.10'
spec_extras[:require_paths] = ['lib', jruby? ? 'jruby' : 'ruby']
self.clean_globs += %w[Gemfile Gemfile.lock *.gemspec lib/org lib/*_jars.rb]
if jruby?
require_ruby_version '>= 2.6'
dependency 'async', '< 2', :dev
dependency 'concurrent-ruby-edge', '>= 0.6.0'
dependency 'jar-dependencies', '= 0.4.1'
dependency 'ruby-maven', '>= 0', :dev
spec_extras[:requirements] = ->(requirements) { requirements << 'jar org.neo4j.driver, neo4j-java-driver, 4.4.17' }
spec_extras[:platform] = 'java'
else
require_ruby_version '>= 3.1'
dependency 'async-io', '>= 0'
dependency 'connection_pool', '>= 0'
end
end
# task default: :spec