Skip to content

Commit

Permalink
Add Bundler. Remove Jeweler.
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Sep 22, 2010
1 parent af8304c commit ebcb1d2
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 29 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pkg
*.gem
.DS_Store
log
.bundle
doc
twitter-*.gem
log
pkg/*
rdoc
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "http://rubygems.org"

gemspec
40 changes: 40 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
PATH
remote: .
specs:
twitter (0.9.9)
hashie (~> 0.4.0)
httparty (~> 0.6.1)
oauth (~> 0.4.3)
yajl-ruby (~> 0.7.7)

GEM
remote: http://rubygems.org/
specs:
crack (0.1.8)
fakeweb (1.3.0)
hashie (0.4.0)
httparty (0.6.1)
crack (= 0.1.8)
jnunemaker-matchy (0.4.0)
mocha (0.9.8)
rake
oauth (0.4.3)
rake (0.8.7)
redgreen (1.2.2)
shoulda (2.11.3)
yajl-ruby (0.7.7)

PLATFORMS
ruby

DEPENDENCIES
fakeweb (~> 1.3.0)
hashie (~> 0.4.0)
httparty (~> 0.6.1)
jnunemaker-matchy (~> 0.4.0)
mocha (~> 0.9.8)
oauth (~> 0.4.3)
redgreen (~> 1.2.2)
shoulda (~> 2.11.3)
twitter!
yajl-ruby (~> 0.7.7)
31 changes: 5 additions & 26 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,38 +1,17 @@
require "rake"
require "jeweler"
require 'rake'
require 'rake/testtask'
require 'bundler'

Jeweler::Tasks.new do |gem|
gem.name = "twitter"
gem.summary = %Q{wrapper for the twitter api}
gem.email = "[email protected]"
gem.homepage = "http://github.com/jnunemaker/twitter"
gem.authors = ["John Nunemaker", "Wynn Netherland"]
gem.files = FileList["[A-Z]*", "{examples,lib,test}/**/*"]
Bundler::GemHelper.install_tasks

gem.add_dependency("oauth", "~> 0.4.3")
gem.add_dependency("hashie", "~> 0.4.0")
gem.add_dependency("httparty", "~> 0.6.1")
gem.add_dependency("yajl-ruby", "~> 0.7.7")

gem.add_development_dependency("shoulda", "~> 2.11.3")
gem.add_development_dependency("jnunemaker-matchy", "~> 0.4.0")
gem.add_development_dependency("mocha", "~> 0.9.8")
gem.add_development_dependency("fakeweb", "~> 1.3.0")
gem.add_development_dependency("redgreen", "~> 1.2.2")
end

Jeweler::GemcutterTasks.new

require "rake/testtask"
Rake::TestTask.new(:test) do |test|
test.libs << "test"
test.ruby_opts << "-rubygems"
test.pattern = "test/**/*_test.rb"
test.verbose = true
end

task :default => :test
task :test => :check_dependencies
task :default => :test

desc "Upload website files to rubyforge"
task :website do
Expand Down
3 changes: 3 additions & 0 deletions lib/twitter/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Twitter
VERSION = "0.9.9"
end
30 changes: 30 additions & 0 deletions twitter.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- encoding: utf-8 -*-
require File.expand_path("../lib/twitter/version", __FILE__)

Gem::Specification.new do |s|
s.add_development_dependency("fakeweb", ["~> 1.3.0"])
s.add_development_dependency("jnunemaker-matchy", ["~> 0.4.0"])
s.add_development_dependency("mocha", ["~> 0.9.8"])
s.add_development_dependency("redgreen", ["~> 1.2.2"])
s.add_development_dependency("shoulda", ["~> 2.11.3"])
s.add_runtime_dependency("hashie", ["~> 0.4.0"])
s.add_runtime_dependency("httparty", ["~> 0.6.1"])
s.add_runtime_dependency("oauth", ["~> 0.4.3"])
s.add_runtime_dependency("yajl-ruby", ["~> 0.7.7"])
s.authors = ["John Nunemaker", "Wynn Netherland", "Erik Michaels-Ober"]
s.description = %q{Ruby wrapper for the Twitter API}
s.email = ["[email protected]"]
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.extra_rdoc_files = ["README.rdoc"]
s.files = `git ls-files`.split("\n")
s.homepage = "http://rubygems.org/gems/twitter"
s.name = "twitter"
s.platform = Gem::Platform::RUBY
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "twitter"
s.summary = %q{Ruby wrapper for the Twitter API}
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.version = Twitter::VERSION
end

0 comments on commit ebcb1d2

Please sign in to comment.