Skip to content

Commit

Permalink
Merge pull request ariejan#20 from mguterl/use_bundler
Browse files Browse the repository at this point in the history
replace jeweler with bundler
  • Loading branch information
ariejan committed Sep 6, 2011
2 parents 954c2a0 + b05a1da commit 236185b
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 133 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,2 +1,5 @@
pkg/*
doc/*
*.gem
.bundle
Gemfile.lock
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source :rubygems

gemspec
43 changes: 7 additions & 36 deletions Rakefile
@@ -1,29 +1,7 @@
require 'rubygems'
require 'rake'
load File.expand_path(File.dirname(__FILE__) + "/tasks/fixtures.rake")
require 'bundler'
Bundler::GemHelper.install_tasks

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "imdb"
gem.summary = %Q{Easily access the publicly available information on IMDB.}
gem.description = %Q{Easily use Ruby or the command line to find information on IMDB.com.}
gem.email = "ariejan@ariejan.net"
gem.homepage = "http://github.com/ariejan/imdb"
gem.authors = ["Ariejan de Vroom"]
gem.add_development_dependency "rspec"

# Dependencies
gem.add_dependency('hpricot', '>= 0.8.1')

# Development dependencies
gem.add_development_dependency('fakeweb')
gem.add_development_dependency('rspec')
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
load File.expand_path(File.dirname(__FILE__) + "/tasks/fixtures.rake")

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
Expand All @@ -37,20 +15,13 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.rcov = true
end

task :spec => :check_dependencies

task :default => :spec

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end

require 'imdb/version'
require 'rdoc/task'
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "imdb #{version}"
rdoc.title = "imdb #{Imdb::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

Empty file modified bin/imdb 100644 → 100755
Empty file.
101 changes: 19 additions & 82 deletions imdb.gemspec
@@ -1,90 +1,27 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "imdb/version"

Gem::Specification.new do |s|
s.name = %q{imdb}
s.version = "0.6.5.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ariejan de Vroom"]
s.date = %q{2011-06-15}
s.default_executable = %q{imdb}
s.name = "imdb"
s.version = Imdb::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Ariejan de Vroom"]
s.email = ["ariejan@ariejan.net"]
s.homepage = "http://github.com/ariejan/imdb"
s.summary = %q{Easily access the publicly available information on IMDB.}
s.description = %q{Easily use Ruby or the command line to find information on IMDB.com.}
s.email = %q{ariejan@ariejan.net}
s.executables = ["imdb"]
s.extra_rdoc_files = [
"README.rdoc"
]
s.files = [
"History.txt",
"Manifest.txt",
"README.rdoc",
"Rakefile",
"VERSION",
"bin/imdb",
"config/website.yml",
"imdb.gemspec",
"lib/imdb.rb",
"lib/imdb/cli.rb",
"lib/imdb/movie.rb",
"lib/imdb/movie_list.rb",
"lib/imdb/search.rb",
"lib/imdb/string_extensions.rb",
"lib/imdb/top_250.rb",
"script/console",
"script/destroy",
"script/generate",
"spec/fixtures/search_kannethirey_thondrinal",
"spec/fixtures/search_killed_wife",
"spec/fixtures/search_star_trek",
"spec/fixtures/top_250",
"spec/fixtures/tt0036855",
"spec/fixtures/tt0083987",
"spec/fixtures/tt0095016",
"spec/fixtures/tt0110912",
"spec/fixtures/tt0111161",
"spec/fixtures/tt0117731",
"spec/fixtures/tt0166222",
"spec/fixtures/tt0242653",
"spec/fixtures/tt0330508",
"spec/fixtures/tt1401252",
"spec/imdb/cli_spec.rb",
"spec/imdb/imdb_spec.rb",
"spec/imdb/movie_spec.rb",
"spec/imdb/search_spec.rb",
"spec/imdb/top_250_spec.rb",
"spec/spec.opts",
"spec/spec_helper.rb",
"tasks/fixtures.rake",
"tasks/rspec.rake"
]
s.homepage = %q{http://github.com/ariejan/imdb}

s.rubyforge_project = "imdb"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Easily access the publicly available information on IMDB.}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.add_dependency 'hpricot', '>= 0.8.1'

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<rspec>, [">= 0"])
s.add_runtime_dependency(%q<hpricot>, [">= 0.8.1"])
s.add_development_dependency(%q<fakeweb>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 0"])
else
s.add_dependency(%q<rspec>, [">= 0"])
s.add_dependency(%q<hpricot>, [">= 0.8.1"])
s.add_dependency(%q<fakeweb>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
end
else
s.add_dependency(%q<rspec>, [">= 0"])
s.add_dependency(%q<hpricot>, [">= 0.8.1"])
s.add_dependency(%q<fakeweb>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
end
s.add_development_dependency 'rdoc'
s.add_development_dependency 'rspec', '~> 1.3.2'
s.add_development_dependency 'fakeweb'
end

5 changes: 1 addition & 4 deletions lib/imdb.rb
Expand Up @@ -10,7 +10,4 @@
require 'imdb/search'
require 'imdb/top_250'
require 'imdb/string_extensions'

module Imdb
VERSION = File.open(File.join(File.dirname(__FILE__), '..', 'VERSION'), 'r') { |f| f.read.strip }
end
require 'imdb/version'
3 changes: 3 additions & 0 deletions lib/imdb/version.rb
@@ -0,0 +1,3 @@
module Imdb
VERSION = '0.6.5.1'
end
10 changes: 0 additions & 10 deletions spec/imdb/imdb_spec.rb

This file was deleted.

0 comments on commit 236185b

Please sign in to comment.