Skip to content

Commit

Permalink
Gem infrastructure changes
Browse files Browse the repository at this point in the history
* Remove references to RubyForge as it will die soon
* Require Ruby >= 1.9.3 and build on newer rubies
* Remove bundler_stubis from gitignore as Google knows nothing about it
* Remove references to RDoc as project uses YARD
* Remove rubygems_version as it shouldn't be specified (http://guides.rubygems.org/specification-reference/#rubygems_version)
  • Loading branch information
abotalov committed Mar 15, 2014
1 parent 3fc9243 commit 0821b18
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -5,5 +5,4 @@
.yardoc
doc
Gemfile.lock
bundler_stubis
gem-private_key.pem
7 changes: 2 additions & 5 deletions .travis.yml
@@ -1,9 +1,6 @@
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- ruby-head
- ree
- rbx-18mode
- 2.1.1
- jruby
- rbx
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -3,6 +3,7 @@
XPath is a Ruby DSL around a subset of XPath 1.0. Its primary purpose is to
facilitate writing complex XPath queries from Ruby code.

[![Gem Version](https://badge.fury.io/rb/xpath.png)](http://badge.fury.io/rb/xpath)
[![Build Status](https://secure.travis-ci.org/jnicklas/xpath.png?branch=master)](http://travis-ci.org/jnicklas/xpath)

## Generating expressions
Expand Down
3 changes: 1 addition & 2 deletions Rakefile
@@ -1,4 +1,3 @@
require 'rubygems'
require 'rspec/core/rake_task'
require 'yard'

Expand All @@ -9,7 +8,7 @@ RSpec::Core::RakeTask.new(:spec) do |t|
end

YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'README.rdoc']
t.files = ['lib/**/*.rb', 'README.md']
#t.options = ['--any', '--extra', '--opts'] # optional
end

Expand Down
12 changes: 3 additions & 9 deletions xpath.gemspec
@@ -1,31 +1,25 @@
# -*- encoding: utf-8 -*-
lib = File.expand_path('lib', File.dirname(__FILE__))
$:.unshift lib unless $:.include?(lib)

require 'xpath/version'

Gem::Specification.new do |s|
s.name = "xpath"
s.rubyforge_project = "xpath"
s.version = XPath::VERSION
s.required_ruby_version = ">= 1.9.3"

s.authors = ["Jonas Nicklas"]
s.email = ["jonas.nicklas@gmail.com"]
s.description = "XPath is a Ruby DSL for generating XPath expressions"
s.license = "MIT"

s.files = Dir.glob("{lib,spec}/**/*") + %w(README.md)
s.extra_rdoc_files = ["README.md"]

s.homepage = "http://github.com/jnicklas/xpath"
s.rdoc_options = ["--main", "README.md"]
s.require_paths = ["lib"]
s.rubygems_version = "1.3.6"
s.homepage = "https://github.com/jnicklas/xpath"
s.summary = "Generate XPath expressions from Ruby"

s.add_dependency("nokogiri", ["~> 1.3"])

s.add_development_dependency("rspec", ["~> 2.0"])
s.add_development_dependency("rspec", [">= 2.0"])
s.add_development_dependency("yard", [">= 0.5.8"])
s.add_development_dependency("rake")

Expand Down

0 comments on commit 0821b18

Please sign in to comment.