From 7b764bbfd27bb5f880a762b7cfb5e2573fa316f8 Mon Sep 17 00:00:00 2001 From: Michael Bleigh Date: Fri, 20 Mar 2009 02:33:54 -0400 Subject: [PATCH] Version bump to 0.1.0 --- Rakefile | 15 +++++++++++++++ VERSION.yml | 2 +- spec/twitter_auth/dispatcher/basic_spec.rb | 6 +++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 7e1954b..0231389 100644 --- a/Rakefile +++ b/Rakefile @@ -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 + diff --git a/VERSION.yml b/VERSION.yml index bf64db8..02314bb 100644 --- a/VERSION.yml +++ b/VERSION.yml @@ -1,4 +1,4 @@ --- -:minor: 0 +:minor: 1 :patch: 0 :major: 0 diff --git a/spec/twitter_auth/dispatcher/basic_spec.rb b/spec/twitter_auth/dispatcher/basic_spec.rb index 19b5c84..f51bc8d 100644 --- a/spec/twitter_auth/dispatcher/basic_spec.rb +++ b/spec/twitter_auth/dispatcher/basic_spec.rb @@ -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