Skip to content

Commit

Permalink
remove jeweler dependency and manage own gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay committed Apr 20, 2012
1 parent feaadc4 commit 63b8797
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 92 deletions.
49 changes: 0 additions & 49 deletions Rakefile
Expand Up @@ -5,28 +5,6 @@ require 'rake/clean'

require './lib/calais.rb'

begin
gem 'jeweler', '>= 1.0.1'
require 'jeweler'

Jeweler::Tasks.new do |s|
s.name = 'calais'
s.summary = 'A Ruby interface to the Calais Web Service'
s.email = 'info@opensynapse.net'
s.homepage = 'http://github.com/abhay/calais'
s.description = 'A Ruby interface to the Calais Web Service'
s.authors = ['Abhay Kumar']
s.files = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*"]
s.rubyforge_project = 'calais'
s.add_dependency 'nokogiri', '>= 1.3.3'
s.add_dependency 'json', '>= 1.1.3'
s.add_dependency 'curb', '>= 0.1.4'
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Please install it."
exit(1)
end

begin
require 'rspec/core/rake_task'

Expand Down Expand Up @@ -55,31 +33,4 @@ rescue LoadError
exit(1)
end

begin
require 'rake/contrib/sshpublisher'
namespace :rubyforge do

desc "Release gem and RDoc documentation to RubyForge"
task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]

namespace :release do
desc "Publish RDoc to RubyForge."
task :docs => [:yardoc] do
config = YAML.load(
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
)

host = "#{config['username']}@rubyforge.org"
remote_dir = "/var/www/gforge-projects/calais/"
local_dir = 'doc'

Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
end
end
end
rescue LoadError
puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
exit(1)
end

# vim: syntax=Ruby
5 changes: 0 additions & 5 deletions VERSION.yml

This file was deleted.

59 changes: 21 additions & 38 deletions calais.gemspec
@@ -1,47 +1,30 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{calais}
s.version = "0.0.11"
require File.expand_path("../lib/calais/version", __FILE__)

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Abhay Kumar"]
s.date = %q{2010-08-02}
s.description = %q{A Ruby interface to the Calais Web Service}
s.email = %q{info@opensynapse.net}
s.extra_rdoc_files = [
"README.markdown"
]
s.files = [
Gem::Specification.new do |gem|
gem.name = 'calais'
gem.version = Calais::VERSION
gem.date = Date.today.to_s

gem.summary = 'A Ruby interface to the Calais Web Service'
gem.description = 'A Ruby interface to the Calais Web Service'

gem.authors = ['Abhay Kumar']
gem.email = 'info@opensynapse.net'
gem.homepage = 'http://github.com/abhay/calais'

gem.add_dependency("nokogiri", ">= 1.3.3")
gem.add_dependency("json", ">= 1.1.3")

gem.add_development_dependency("rspec", ">= 2.0.0")

gem.files = Dir[
"CHANGELOG.markdown",
"Gemfile",
"MIT-LICENSE",
"README.markdown",
"Rakefile",
"VERSION.yml",
"lib/calais.rb",
"lib/calais/client.rb",
"lib/calais/error.rb",
"lib/calais/response.rb"
]
s.homepage = %q{http://github.com/abhay/calais}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{calais}
s.rubygems_version = %q{1.3.7}
s.summary = %q{A Ruby interface to the Calais Web Service}
s.test_files = [
"spec/calais/client_spec.rb",
"spec/calais/response_spec.rb",
"spec/helper.rb"
]

s.add_dependency("nokogiri", ">= 1.3.3")
s.add_dependency("json", ">= 1.1.3")

s.add_development_dependency("rspec", ">= 2.0.0")
"{bin,lib,man,test,spec}/**/*"
] & `git ls-files`.split("\n")
end

3 changes: 3 additions & 0 deletions lib/calais/version.rb
@@ -0,0 +1,3 @@
module Calais
VERSION = "0.0.11"
end

0 comments on commit 63b8797

Please sign in to comment.