Add support for Ruby 2.4

Closes #22
diff --git a/.travis.yml b/.travis.yml
index 24c6234..26971d3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,7 @@
 rvm:
   - 2.1.5
   - 2.2.7
-  - 2.3.4
+  - 2.3.5
+  - 2.4.2
 script:
   - rake
diff --git a/Gemfile b/Gemfile
index 9bb1435..bfb4050 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,12 +2,12 @@
 
 group :test do
   gem 'coveralls', require: false
-  gem 'rspec', '~> 3.1.0'
-  gem 'webmock', '~> 1.20.4'
+  gem 'rspec', '~> 3.6.0'
+  gem 'webmock', '~> 2.3.2'
 end
 
 group :doc do
  gem 'rdoc', '~> 4.0.0'
 end
 
-gem 'activesupport', '~> 4.2'
\ No newline at end of file
+gem 'activesupport', '~> 4.2'
diff --git a/predictionio.gemspec b/predictionio.gemspec
index 4a86f4e..42a3a34 100644
--- a/predictionio.gemspec
+++ b/predictionio.gemspec
@@ -18,5 +18,5 @@
   s.platform = Gem::Platform::RUBY
   s.required_ruby_version = '>= 2.0'
   s.files = Dir[File.join('lib', '**', '**')]
-  s.add_runtime_dependency 'json', '~> 1.8'
+  s.add_runtime_dependency 'json', '>= 1.8'
 end