Permalink
Browse files

adding bundler rake tasks

  • Loading branch information...
1 parent 2828621 commit d32b3e22957e6045ae6354679acc596fd58fed1b @achamian achamian committed Jan 28, 2011
Showing with 8 additions and 16 deletions.
  1. +3 −0 Rakefile
  2. +1 −1 bin/wrest_shell.rb
  3. +2 −2 examples/twitter/twitter.rb
  4. +1 −12 lib/wrest/version.rb
  5. +1 −1 wrest.gemspec
View
@@ -10,6 +10,9 @@
# Note that some optional libraries/gems that the build (not Wrest itself) uses may not be available on all implementations of Ruby.
puts "Building on Ruby #{RUBY_VERSION}, #{RUBY_RELEASE_DATE}, #{RUBY_PLATFORM}"
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
if Object.const_defined?('RAILS_ROOT') || Object.const_defined?('Rails')
require File.dirname(__FILE__) + '/../../../config/environment'
else
View
@@ -17,5 +17,5 @@
libs << " -r #{entry_point}"
require version
-puts "Loading Wrest #{Wrest::VERSION::STRING}"
+puts "Loading Wrest #{Wrest::VERSION}"
exec "#{options[:irb]} #{libs} --simple-prompt"
@@ -31,7 +31,7 @@ def timeline(which = :friends, options={})
end
def post(text)
- Tweet.new @uri['/statuses/update.json'].post('', {'User-Agent' => "Wrest/#{Wrest::VERSION::STRING}"}, :status => text).deserialise
+ Tweet.new @uri['/statuses/update.json'].post('', {'User-Agent' => "Wrest/#{Wrest::VERSION}"}, :status => text).deserialise
end
end
@@ -60,7 +60,7 @@ class Tweet
twitter = Twitter.new(:username => 'ponnappa', :password => '00g@b00g@')
-pp twitter.post("This tweet via the Twitter example in #wrest #{Wrest::VERSION::STRING}, http://github.com/kaiwren/wrest")
+pp twitter.post("This tweet via the Twitter example in #wrest #{Wrest::VERSION}, http://github.com/kaiwren/wrest")
puts '', '*'*70, ''
View
@@ -8,16 +8,5 @@
# See the License for the specific language governing permissions and limitations under the License.
module Wrest
- module VERSION
- unless defined? MAJOR
- MAJOR = 1
- MINOR = 0
- TINY = 2
- BUILD = nil
-
- STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
-
- SUMMARY = "wrest version #{STRING}"
- end
- end
+ VERSION = "1.1.0"
end
View
@@ -5,7 +5,7 @@ require 'wrest/version'
Gem::Specification.new do |s|
s.name = "wrest"
- s.version = Wrest::VERSION::STRING
+ s.version = Wrest::VERSION
s.authors = ["Sidu Ponnappa", "Niranjan Paranjape"]
s.email = ["sidu@c42.in"]
s.homepage = "http://c42.in/open_source"

0 comments on commit d32b3e2

Please sign in to comment.