diff --git a/wkhtmltopdf-binary.gemspec b/wkhtmltopdf-binary.gemspec
index 05c95cb..07c5180 100644
--- a/wkhtmltopdf-binary.gemspec
+++ b/wkhtmltopdf-binary.gemspec
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
s.require_path = '.'
s.homepage = 'https://github.com/zakird/wkhtmltopdf_binary_gem'
- spec.metadata['source_code_uri'] = spec.homepage
- spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
+ s.metadata['source_code_uri'] = s.homepage
+ s.metadata['changelog_uri'] = "#{s.homepage}/blob/master/CHANGELOG.md"
s.add_development_dependency "minitest"
s.add_development_dependency "rake"