Permalink
Browse files

Bundler compatibility and bundler gem tasks. Closes #35.

  • Loading branch information...
1 parent aeaf050 commit 72d551945f9577bf5d0e516c673c648791b0e795 @dennisreimann dennisreimann committed Jun 22, 2012
Showing with 43 additions and 13 deletions.
  1. +17 −0 .gitignore
  2. +4 −0 Gemfile
  3. +2 −0 Rakefile
  4. +2 −2 lib/openid.rb
  5. +3 −0 lib/openid/version.rb
  6. +15 −11 ruby-openid.gemspec
View
@@ -0,0 +1,17 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in ruby-openid.gemspec
+gemspec
View
@@ -1,4 +1,6 @@
#!/usr/bin/env rake
+require 'bundler/gem_tasks'
+
require 'rake/testtask'
desc "Run tests"
View
@@ -13,8 +13,8 @@
# permissions and limitations under the License.
module OpenID
- VERSION = "2.1.8"
end
-require "openid/consumer"
+require 'openid/version'
+require 'openid/consumer'
require 'openid/server'
View
@@ -0,0 +1,3 @@
+module OpenID
+ VERSION = "2.1.8"
+end
View
@@ -1,21 +1,25 @@
-require 'rubygems'
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/openid/version', __FILE__)
-SPEC = Gem::Specification.new do |s|
- s.name = `cat admin/library-name`.strip
-# s.version = `darcs changes --tags= | awk '$1 == "tagged" { print $2 }' | head -n 1`.strip
- s.version = '2.1.8'
+Gem::Specification.new do |s|
+ s.name = 'ruby-openid'
s.author = 'JanRain, Inc'
s.email = 'openid@janrain.com'
- s.homepage = 'http://github.com/openid/ruby-openid'
- s.platform = Gem::Platform::RUBY
+ s.homepage = 'https://github.com/openid/ruby-openid'
s.summary = 'A library for consuming and serving OpenID identities.'
+ s.version = OpenID::VERSION
+
+ # Files
files = Dir.glob("{examples,lib,test}/**/*")
files << 'NOTICE' << 'CHANGELOG'
s.files = files.delete_if {|f| f.include?('_darcs') || f.include?('admin')}
- s.require_path = 'lib'
+ s.require_paths = ['lib']
s.autorequire = 'openid'
- s.test_file = 'admin/runtests.rb'
+ s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
+
+ # RDoc
s.has_rdoc = true
- s.extra_rdoc_files = ['README','INSTALL','LICENSE','UPGRADE']
- s.rdoc_options << '--main' << 'README'
+ s.extra_rdoc_files = ['README.md','INSTALL','LICENSE','UPGRADE']
+ s.rdoc_options << '--main' << 'README.md'
end

0 comments on commit 72d5519

Please sign in to comment.