Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace Jeweler by a static .gemspec

  • Loading branch information...
commit df3c0b4ad1e7a3a925496fb9225d68a858566b66 1 parent a1fec41
@rymai authored
View
29 .gitignore
@@ -1,5 +1,25 @@
+pkg/*
+doc/*
+*.gem
+*.rbc
+.*.swp
+*.bak
+.bundle
+.yardoc
+.rbx
+.rvmrc
+Gemfile.lock
+bin/fsevent_watch_guard
+Makefile
+
## MAC OS
.DS_Store
+.Trashes
+.com.apple.timemachine.supported
+.fseventsd
+Desktop DB
+Desktop DF
+.DS_Store
## TEXTMATE
*.tmproj
@@ -12,12 +32,3 @@ tmtags
## VIM
*.swp
-
-## PROJECT::GENERAL
-coverage
-rdoc
-pkg
-*.gemspec
-
-## PROJECT::SPECIFIC
-Gemfile.lock
View
3  Gemfile
@@ -1,8 +1,5 @@
-# A sample Gemfile
source "http://rubygems.org"
-gem "jeweler"
-
group :development, :test do
gem "test-unit"
end
View
21 Rakefile
@@ -1,27 +1,6 @@
require 'rubygems'
require 'rake'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "rescue_me"
- gem.summary = %Q{Retry a block of code that might fail due to temporary errors.}
- gem.description = %Q{Provides a convenience method to retry blocks of code \
-that might fail due to temporary errors, e.g. a network service that becomes \
-temporarily unavailable. The retries are timed to back-off exponentially (2^n \
-seconds), hopefully giving time for the remote server to recover.}
- gem.email = "as4@eshirazi.com"
- gem.homepage = "http://github.com/ashirazi/rescue_me"
- gem.authors = ["Arild Shirazi"]
- # gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
- gem.add_development_dependency "shoulda", ">= 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'
View
1  VERSION
@@ -1 +0,0 @@
-0.1.1
View
3  lib/rescue_me/version.rb
@@ -0,0 +1,3 @@
+module RescueMe
+ VERSION = '0.1.1' unless defined? RescueMe::VERSION
+end
View
25 rescue_me.gemspec
@@ -0,0 +1,25 @@
+# -*- encoding: utf-8 -*-
+Kernel.load File.expand_path('../lib/rescue_me/version.rb', __FILE__)
+
+Gem::Specification.new do |s|
+ s.name = 'rescue_me'
+ s.version = RescueMe::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Arild Shirazi']
+ s.email = ['as4@eshirazi.com']
+ s.homepage = 'https://github.com/ashirazi/rescue_me'
+ s.summary = 'Retry a block of code that might fail due to temporary errors.'
+ s.description = 'Provides a convenience method to retry blocks of code that might fail due to temporary errors, e.g. a network service that becomes temporarily unavailable. The retries are timed to back-off exponentially (2^n seconds), hopefully giving time for the remote server to recover.'
+
+ s.required_rubygems_version = '>= 1.3.6'
+ s.rubyforge_project = 'rescue_me'
+
+ s.add_development_dependency 'bundler'
+ s.add_development_dependency 'test-unit'
+ s.add_development_dependency 'guard-test'
+ s.add_development_dependency 'shoulda'
+
+ s.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.rdoc]
+ s.require_path = 'lib'
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.