Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

Commit

Permalink
Setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwunsch committed Mar 6, 2010
1 parent 2238f6d commit 72947ef
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 27 deletions.
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# A sample Gemfile

gem 'weary','>= 0.7.1'

group :test do
gem 'rake'
gem 'redgreen'
gem 'fakeweb'
gem 'jeweler'
end
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2009 Mark Wunsch
Copyright (c) 2010 Mark Wunsch

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# tumblr

Ruby wrapper and command line tool for the [Tumblr API](http://www.tumblr.com/docs/en/api). In case there wasn't enough of those. This one is powered by the [Weary](http://github.com/mwunsch/weary) gem.

## Copyright

The Tumblr gem is Copyright (c) 2010 Mark Wunsch and is licensed under the [MIT License](http://creativecommons.org/licenses/MIT/).

Tumblr is Copyright (c) Tumblr, Inc. I am in no way affiliated with Tumblr.
17 changes: 0 additions & 17 deletions README.rdoc

This file was deleted.

17 changes: 14 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
require 'rubygems'
begin
# Try to require the preresolved locked set of gems.
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
# Fall back on doing an unlocked resolve at runtime.
require "rubygems"
require "bundler"
Bundler.setup
end

require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "tumblr"
gem.summary = %Q{TODO: one-line summary of your gem}
gem.description = %Q{TODO: longer description of your gem}
gem.summary = "Ruby wrapper and command line interface to the Tumblr API."
gem.description = "Ruby library and command line utility to work with the Tumblr Blogging Platform, powered by Weary."
gem.email = "mark@markwunsch.com"
gem.homepage = "http://github.com/mwunsch/tumblr"
gem.authors = ["Mark Wunsch"]
gem.add_dependency 'weary'
gem.add_development_dependency "bundler", ">= 0.9.7"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
Expand Down
23 changes: 17 additions & 6 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
require 'rubygems'
require 'test/unit'
begin
# Try to require the preresolved locked set of gems.
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
# Fall back on doing an unlocked resolve at runtime.
require "rubygems"
require "bundler"
Bundler.setup
end

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'tumblr'
require 'test/unit'
require 'redgreen'

class Test::Unit::TestCase
begin
require 'tumblr'
rescue LoadError
lib_path = File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
require 'tumblr'
end

0 comments on commit 72947ef

Please sign in to comment.