Gemfile in neo4j-8.1.1 vs Gemfile in neo4j-8.1.2

- old
+ new

@@ -3,11 +3,14 @@ gemspec # gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: 'master' if ENV['CI'] if branch = ENV['TRAVIS_BRANCH'] - same_branch_exists = `curl --head https://github.com/neo4jrb/neo4j-core/tree/#{branch} | head -1`.match(/200 OK/) - gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: same_branch_exists ? branch : 'master' + if `curl --head https://github.com/#{ENV['TRAVIS_REPO_SLUG']}-core/tree/#{branch} | head -1` =~ /200 OK/ + gem 'neo4j-core', github: "#{ENV['TRAVIS_REPO_SLUG']}-core", branch: branch + else + gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: 'master' + end elsif ENV['USE_LOCAL_CORE'] gem 'neo4j-core', path: '../neo4j-core' else gem 'neo4j-core' end