Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

fix tests #36

Merged
merged 2 commits into from
Dec 14, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ rescue Bundler::BundlerError => e
end
require 'rake'

if defined?(Jeweler)
begin
require 'jeweler'
rescue LoadError
else
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "mustachio"
Expand All @@ -27,9 +29,11 @@ if defined?(Jeweler)
Jeweler::RubygemsDotOrgTasks.new
end

if defined?(RSpec)
begin
require 'rspec/core'
require 'rspec/core/rake_task'
rescue LoadError
else
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end
Expand Down
2 changes: 1 addition & 1 deletion lib/mustachio/rekognition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def data file
end

def json file, jobs = 'face'
conn = Faraday.new :url => 'http://rekognition.com' do |faraday|
conn = Faraday.new :url => 'https://rekognition.com' do |faraday|
faraday.request :multipart
faraday.request :url_encoded
faraday.adapter :excon
Expand Down