Skip to content

Commit

Permalink
re-added to_a on InternalResult
Browse files Browse the repository at this point in the history
  • Loading branch information
klobuczek committed Oct 15, 2023
1 parent 686a730 commit 88c1063
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
NEO4J_VERSION: ${{ matrix.neo4j }}
steps:
- name: Start neo4j
run: docker run --name neo4j --env NEO4J_AUTH=neo4j/pass --env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --env NEO4J_dbms_security_auth__minimum__password__length=4 -p7687:7687 -p7474:7474 -v `pwd`/tmp:/var/lib/neo4j/import --rm neo4j:${{ matrix.neo4j }}-enterprise &
run: docker run --name neo4j --env NEO4J_AUTH=neo4j/password --env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes -p7687:7687 -p7474:7474 -v `pwd`/tmp:/var/lib/neo4j/import --rm neo4j:${{ matrix.neo4j }}-enterprise &

- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ HOE = Class.new(Hoe) do
end.spec 'neo4j-ruby-driver' do
developer 'Heinrich Klobuczek', '[email protected]'

dependency 'activesupport', '< 7.1'
dependency 'activesupport', '>= 0'
# dependency 'async-rspec', '>= 0', :dev
dependency 'ffaker', '>= 0', :dev
dependency 'hoe', '>= 0', :dev
Expand Down
4 changes: 4 additions & 0 deletions jruby/neo4j/driver/ext/internal_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ module InternalResult
def each(&block)
check { stream.for_each(&block) }
end

def to_a
check { list.to_a }
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion jruby/neo4j/driver/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Neo4j
module Driver
VERSION = '5.13.0.alpha.2'
VERSION = '5.13.0.alpha.3'
end
end
2 changes: 2 additions & 0 deletions lib/neo4j-ruby-driver_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
require 'active_support/concern'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/isolated_execution_state' if Gem::Requirement.create('>= 7').satisfied_by?(Gem.loaded_specs["activesupport"].version) # TODO: this should not be necessary https://github.com/rails/rails/issues/43851
require 'active_support/deprecator' if Gem::Requirement.create('>= 7.1').satisfied_by?(Gem.loaded_specs["activesupport"].version)
require 'active_support/deprecation'
require 'active_support/core_ext/numeric/time'
require 'active_support/duration'
require 'active_support/time'
Expand Down
3 changes: 2 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
require 'async'
# require 'async/rspec' unless RUBY_PLATFORM == 'java'
# require 'async/rspec/reactor'
require 'neo4j/driver'
require 'active_support/core_ext/object'
require 'active_support/logger'
require 'bigdecimal'
require 'ffaker'
require 'neo4j/driver'
require 'rspec/its'
require 'support/driver_helper'
require 'support/neo4j_cleaner'
Expand Down

0 comments on commit 88c1063

Please sign in to comment.