Skip to content

Commit

Permalink
upgrading to httparty 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tvongaza committed Jan 25, 2011
1 parent b95afb3 commit 193f938
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -10,7 +10,7 @@ begin
gem.email = "jonathan.markwell@gmail.com"
gem.homepage = "http://github.com/jot/notifo"
gem.authors = ["Jonathan Markwell"]
gem.add_dependency "httparty", "~>0.4.5"
gem.add_dependency "httparty", "~>0.6.1"
gem.add_development_dependency "thoughtbot-shoulda"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Expand Down
1 change: 1 addition & 0 deletions lib/notifo.rb
@@ -1,6 +1,7 @@
require 'httparty'
require 'cgi'
require 'digest/sha1'
require 'active_support/all'

class Notifo
cattr_accessor :username, :secret
Expand Down
2 changes: 1 addition & 1 deletion test/notifo_test.rb
Expand Up @@ -11,7 +11,7 @@ class NotifoTest < Test::Unit::TestCase
end

should "return false if given the wrong API secret" do
bad_notifo = Notifo.new NOTIFO_USERNAME, 'thisisntthesecret'
bad_notifo = Notifo.new({:username => NOTIFO_USERNAME, :secret => 'thisisntthesecret'})
assert !bad_notifo.verify_webhook_signature(WEBHOOK)
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Expand Up @@ -12,6 +12,6 @@ class Test::Unit::TestCase
NOTIFO_USERNAME = 'testing42'
NOTIFO_API_SECRET = 'x96cb52807a33bafc8fd741eeba5e40ff89f05896'

NOTIFO = Notifo.new NOTIFO_USERNAME, NOTIFO_API_SECRET
NOTIFO = Notifo.new({:username => NOTIFO_USERNAME, :secret => NOTIFO_API_SECRET})

WEBHOOK = YAML::load(File.read('test/assets/webhook_params.yaml'))

0 comments on commit 193f938

Please sign in to comment.