Permalink
Browse files

Version bump to 0.1.0

  • Loading branch information...
1 parent a55ea9a commit 7b764bbfd27bb5f880a762b7cfb5e2573fa316f8 Michael Bleigh committed Mar 20, 2009
Showing with 21 additions and 2 deletions.
  1. +15 −0 Rakefile
  2. +1 −1 VERSION.yml
  3. +5 −1 spec/twitter_auth/dispatcher/basic_spec.rb
View
@@ -9,3 +9,18 @@ Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
t.spec_files = FileList['spec/**/*_spec.rb']
end
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = "the-perfect-gem"
+ s.summary = "TODO"
+ s.email = "josh@technicalpickles.com"
+ s.homepage = "http://github.com/technicalpickles/the-perfect-gem"
+ s.description = "TODO"
+ s.authors = ["Josh Nichols"]
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
+
View
@@ -1,4 +1,4 @@
---
-:minor: 0
+:minor: 1
:patch: 0
:major: 0
@@ -52,7 +52,11 @@
%w(get post delete put).each do |method|
it "should have a ##{method} method that calls request(:#{method})" do
dispatcher = TwitterAuth::Dispatcher::Basic.new(@user)
- dispatcher.should_receive(:request).with(method.to_sym, '/fake.json')
+ if %w(get delete).include?(method)
+ dispatcher.should_receive(:request).with(method.to_sym, '/fake.json')
+ else
+ dispatcher.should_receive(:request).with(method.to_sym, '/fake.json', '')
+ end
dispatcher.send(method, '/fake.json')
end
end

0 comments on commit 7b764bb

Please sign in to comment.