Permalink
Browse files

gem management: remove jeweler, just use bundler template

  • Loading branch information...
1 parent 984e919 commit 13d824c62e0c16792a88de9c81c3420358106a2f @nruth committed Apr 29, 2011
View
16 .gitignore
@@ -1,18 +1,6 @@
-# rcov generated
-coverage
-
-# rdoc generated
-rdoc
-
-# yard generated
-doc
-.yardoc
-
-# bundler
+pkg/*
+*.gem
.bundle
-# jeweler generated
-pkg
-
# don't vc this, http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
Gemfile.lock
View
12 Gemfile
@@ -1,12 +1,4 @@
source "http://rubygems.org"
-# Add dependencies required to use your gem here.
-# Example:
-# gem "activesupport", ">= 2.3.5"
-# Add dependencies to develop your gem here.
-# Include everything needed to run rake, tests, features, etc.
-group :development do
- gem "cucumber", ">= 0"
- gem "bundler", "~> 1.0.0"
- gem "jeweler", "~> 1.5.2"
-end
+# Specify your gem's dependencies in show_me_the_cookies.gemspec
+gemspec
View
42 Rakefile
@@ -1,42 +1,2 @@
-require 'rubygems'
require 'bundler'
-begin
- Bundler.setup(:default, :development)
-rescue Bundler::BundlerError => e
- $stderr.puts e.message
- $stderr.puts "Run `bundle install` to install missing gems"
- exit e.status_code
-end
-require 'rake'
-
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "show_me_the_cookies"
- gem.homepage = "http://github.com/nruth/show_me_the_cookies"
- gem.license = "MIT"
- gem.summary = %Q{Cookie manipulation for Capybara drivers}
- gem.description = %Q{Cookie manipulation for Capybara drivers -- viewing, deleting, ...}
- gem.email = "nick.rutherford@gmail.com"
- gem.authors = ["Nicholas Rutherford"]
- # Include your dependencies below. Runtime dependencies are required when using your gem,
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
- # gem.add_development_dependency 'rspec', '> 1.2.3'
-end
-Jeweler::RubygemsDotOrgTasks.new
-
-require 'cucumber/rake/task'
-Cucumber::Rake::Task.new(:features)
-
-task :default => :spec
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "show_me_the_cookies #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+Bundler::GemHelper.install_tasks
View
9 features/show_me_the_cookies.feature
@@ -1,9 +0,0 @@
-Feature: something something
- In order to something something
- A user something something
- something something something
-
- Scenario: something something
- Given inspiration
- When I create a sweet new gem
- Then everyone should see how awesome I am
View
0 features/step_definitions/show_me_the_cookies_steps.rb
No changes.
View
13 features/support/env.rb
@@ -1,13 +0,0 @@
-require 'bundler'
-begin
- Bundler.setup(:default, :development)
-rescue Bundler::BundlerError => e
- $stderr.puts e.message
- $stderr.puts "Run `bundle install` to install missing gems"
- exit e.status_code
-end
-
-$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
-require 'show_me_the_cookies'
-
-require 'rspec/expectations'
View
3 lib/show_me_the_cookies/version.rb
@@ -0,0 +1,3 @@
+module ShowMeTheCookies
+ VERSION = "0.2.1"
+end
View
66 show_me_the_cookies.gemspec
@@ -1,60 +1,20 @@
-# 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 "show_me_the_cookies/version"
Gem::Specification.new do |s|
- s.name = %q{show_me_the_cookies}
- s.version = "0.2.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Nicholas Rutherford"]
- s.date = %q{2011-01-07}
+ s.name = "show_me_the_cookies"
+ s.version = ShowMeTheCookies::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Nicholas Rutherford"]
+ s.email = ["nick.rutherford@gmail.com"]
+ s.homepage = "https://github.com/nruth/show_me_the_cookies"
+ s.summary = %q{Cookie manipulation for Capybara drivers}
s.description = %q{Cookie manipulation for Capybara drivers -- viewing, deleting, ...}
- s.email = %q{nick.rutherford@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.md"
- ]
- s.files = [
- ".document",
- ".rspec",
- "Gemfile",
- "LICENSE.txt",
- "README.md",
- "Rakefile",
- "VERSION",
- "features/show_me_the_cookies.feature",
- "features/step_definitions/show_me_the_cookies_steps.rb",
- "features/support/env.rb",
- "lib/show_me_the_cookies.rb",
- "lib/show_me_the_cookies/culerity.rb",
- "lib/show_me_the_cookies/rack_test.rb",
- "lib/show_me_the_cookies/selenium.rb",
- "show_me_the_cookies.gemspec"
- ]
- s.homepage = %q{http://github.com/nruth/show_me_the_cookies}
s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.4.2}
- s.summary = %q{Cookie manipulation for Capybara drivers}
-
- if s.respond_to? :specification_version then
- s.specification_version = 3
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<cucumber>, [">= 0"])
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
- else
- s.add_dependency(%q<cucumber>, [">= 0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
- end
- else
- s.add_dependency(%q<cucumber>, [">= 0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
- end
+ 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"]
end
-

0 comments on commit 13d824c

Please sign in to comment.