Skip to content

Commit

Permalink
Update webmock to ~> 2.3.
Browse files Browse the repository at this point in the history
Use `Solution#to_h` instead of `#to_hash`.
  • Loading branch information
gkellogg committed Dec 31, 2016
1 parent 1ab8f58 commit 9f8986b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -4,8 +4,9 @@ script: "bundle exec rspec spec"
env:
- CI=true
rvm:
- 2.2.5
- 2.3.1
- 2.2.6
- 2.3.3
- 2.4.0
- jruby
- rbx
gemfile:
Expand Down
2 changes: 1 addition & 1 deletion lib/sparql/client/repository.rb
Expand Up @@ -176,7 +176,7 @@ def has_statement?(statement)
# @see RDF::Repository#count?
def count
begin
binding = client.query("SELECT (COUNT(*) AS ?count) WHERE { ?s ?p ?o }").first.to_hash
binding = client.query("SELECT (COUNT(*) AS ?count) WHERE { ?s ?p ?o }").first.to_h
binding[:count].value.to_i rescue 0
rescue SPARQL::Client::MalformedQuery => e
# SPARQL 1.0 does not include support for aggregate functions:
Expand Down
2 changes: 1 addition & 1 deletion sparql-client.gemspec
Expand Up @@ -36,7 +36,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rdf-spec', '~> 2.0'
gem.add_development_dependency 'rspec', '~> 3.4'
gem.add_development_dependency 'rspec-its', '~> 1.2'
gem.add_development_dependency 'webmock', '~> 1.15'
gem.add_development_dependency 'webmock', '~> 2.3'
gem.add_development_dependency 'yard' , '~> 0.8'

# Rubinius has it's own dependencies
Expand Down

0 comments on commit 9f8986b

Please sign in to comment.