Skip to content
Browse files

Switch from jeweler to bundler gem tasks

  • Loading branch information...
1 parent 03237a6 commit 6f73a207b38f1d71422e4ef96bec4c64ec5996bb @jayzes committed Jan 30, 2012
Showing with 36 additions and 75 deletions.
  1. +5 −21 .gitignore
  2. +4 −0 Gemfile
  3. +1 −53 Rakefile
  4. +0 −1 VERSION
  5. +22 −0 akamai.gemspec
  6. +1 −0 lib/akamai.rb
  7. +3 −0 lib/akamai/version.rb
View
26 .gitignore
@@ -1,21 +1,5 @@
-## MAC OS
-.DS_Store
-
-## TEXTMATE
-*.tmproj
-tmtags
-
-## EMACS
-*~
-\#*
-.\#*
-
-## VIM
-*.swp
-
-## PROJECT::GENERAL
-coverage
-rdoc
-pkg
-
-## PROJECT::SPECIFIC
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
+.idea
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in akamai.gemspec
+gemspec
View
54 Rakefile
@@ -1,53 +1 @@
-require 'rubygems'
-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
+require "bundler/gem_tasks"
View
1 VERSION
@@ -1 +0,0 @@
-0.0.5
View
22 akamai.gemspec
@@ -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
View
1 lib/akamai.rb
@@ -1,6 +1,7 @@
require 'tempfile'
require 'net/ftp'
require 'soap/wsdlDriver'
+require 'akamai/version'
module Akamai
class << self
View
3 lib/akamai/version.rb
@@ -0,0 +1,3 @@
+module Akamai
+ VERSION = "0.2"
+end

0 comments on commit 6f73a20

Please sign in to comment.
Something went wrong with that request. Please try again.