Skip to content

Commit

Permalink
Switch from jeweler to bundler gem tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzes committed Jan 31, 2012
1 parent 03237a6 commit 6f73a20
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 75 deletions.
26 changes: 5 additions & 21 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,21 +1,5 @@
## MAC OS *.gem
.DS_Store .bundle

Gemfile.lock
## TEXTMATE pkg/*
*.tmproj .idea
tmtags

## EMACS
*~
\#*
.\#*

## VIM
*.swp

## PROJECT::GENERAL
coverage
rdoc
pkg

## PROJECT::SPECIFIC
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in akamai.gemspec
gemspec
54 changes: 1 addition & 53 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,53 +1 @@
require 'rubygems' require "bundler/gem_tasks"
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "akamai"
gem.summary = %Q{Simple library for interacting with Akamai NetStorage and EdgeSuite caches}
gem.description = %Q{Simple library for interacting with Akamai NetStorage and EdgeSuite caches}
gem.email = "jay.zeschin@factorylabs.com"
gem.homepage = "http://github.com/jayzes/akamai"
gem.authors = ["Jay Zeschin"]
gem.add_dependency "soap4r", ">= 0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end

task :test => :check_dependencies

task :default => :test

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

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "akamai #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

22 changes: 22 additions & 0 deletions akamai.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "akamai/version"

Gem::Specification.new do |s|
s.name = "akamai"
s.version = Akamai::VERSION
s.authors = ["Jay Zeschin"]
s.email = ["jay@zeschin.org"]
s.homepage = "https://github.com/jayzes/akamai"
s.summary = %Q{Simple library for interacting with Akamai NetStorage and EdgeSuite caches}
s.description = %Q{Simple library for interacting with Akamai NetStorage and EdgeSuite caches}

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"]

# specify any dependencies here; for example:
# s.add_development_dependency "rspec"
# s.add_runtime_dependency "rest-client"
end
1 change: 1 addition & 0 deletions lib/akamai.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'tempfile' require 'tempfile'
require 'net/ftp' require 'net/ftp'
require 'soap/wsdlDriver' require 'soap/wsdlDriver'
require 'akamai/version'


module Akamai module Akamai
class << self class << self
Expand Down
3 changes: 3 additions & 0 deletions lib/akamai/version.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
module Akamai
VERSION = "0.2"
end

0 comments on commit 6f73a20

Please sign in to comment.