Permalink
Browse files

Switch from jeweler to bundler for building the gem and add appraisal

  • Loading branch information...
1 parent bf36b23 commit 12e60e0794db410affb4ab61f3acd2a87ba951cc @soupmatt soupmatt committed Sep 6, 2012
Showing with 187 additions and 231 deletions.
  1. +2 −0 .gitignore
  2. +0 −7 .infinity_test
  3. +17 −0 Appraisals
  4. +3 −12 Gemfile
  5. +98 −36 Gemfile.lock
  6. +9 −41 Rakefile
  7. +1 −0 gemfiles/.gitignore
  8. +7 −0 gemfiles/rails23.gemfile
  9. +7 −0 gemfiles/rails30.gemfile
  10. +7 −0 gemfiles/rails31.gemfile
  11. +7 −0 gemfiles/rails32.gemfile
  12. +3 −0 lib/rubycas-client/version.rb
  13. +26 −135 rubycas-client.gemspec
View
@@ -23,3 +23,5 @@ pkg
.rvmrc
.project
+
+Gemfile.lock
View
@@ -1,7 +0,0 @@
-infinity_test do
- use :rubies => %w(1.9.2 1.8.7 ree), :gemset => 'rubycas-client'
-
- before(:each_ruby) do |env|
- env.system('bundle install')
- end
-end
View
@@ -0,0 +1,17 @@
+appraise "rails23" do
+ gem "activesupport", "~> 2.3.11"
+end
+
+appraise "rails30" do
+ gem "rails", "~> 3.0.17"
+end
+
+appraise "rails31" do
+ gem "rails", "~> 3.1.8"
+end
+
+appraise "rails32" do
+ gem "rails", "~> 3.2.8"
+end
+
+# vim: filetype=ruby
View
15 Gemfile
@@ -1,17 +1,11 @@
source "http://rubygems.org"
-group :development do
- gem "json"
- gem "rspec"
- gem "bundler", ">= 1.0"
- gem "jeweler"
- gem "actionpack", :require => 'action_pack'
- gem "activerecord", :require => 'active_record'
- gem "rake"
+gemspec
+
+group :tools do
gem "simplecov", :require => false
gem "guard"
gem "guard-rspec"
- gem "database_cleaner"
platforms :ruby do
gem "sqlite3"
@@ -22,6 +16,3 @@ group :development do
gem "activerecord-jdbcsqlite3-adapter"
end
end
-
-gem "activesupport", :require => "active_support"
-
View
@@ -1,40 +1,96 @@
+PATH
+ remote: .
+ specs:
+ rubycas-client (2.3.9)
+ activesupport
+
GEM
remote: http://rubygems.org/
specs:
- actionpack (2.3.11)
- activesupport (= 2.3.11)
- rack (~> 1.1.0)
- activerecord (2.3.11)
- activesupport (= 2.3.11)
- activerecord-jdbc-adapter (1.2.2)
- activerecord-jdbcsqlite3-adapter (1.2.2)
- activerecord-jdbc-adapter (~> 1.2.2)
- jdbc-sqlite3 (~> 3.7.2)
- activesupport (2.3.11)
- bouncy-castle-java (1.5.0146.1)
+ actionmailer (3.2.8)
+ actionpack (= 3.2.8)
+ mail (~> 2.4.4)
+ actionpack (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.3)
+ activemodel (3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ activerecord (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ appraisal (0.4.1)
+ bundler
+ rake
+ arel (3.0.2)
+ builder (3.0.0)
database_cleaner (0.7.1)
diff-lcs (1.1.3)
- ffi (1.0.11)
- ffi (1.0.11-java)
- git (1.2.5)
- guard (1.0.0)
- ffi (>= 0.5.0)
- thor (~> 0.14.6)
- guard-rspec (0.6.0)
- guard (>= 0.10.0)
- jdbc-sqlite3 (3.7.2)
- jeweler (1.8.3)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
- rdoc
- jruby-openssl (0.7.5)
- bouncy-castle-java (>= 1.5.0146.1)
+ erubis (2.7.0)
+ ffi (1.1.4)
+ guard (1.3.0)
+ listen (>= 0.4.2)
+ thor (>= 0.14.6)
+ guard-rspec (1.2.1)
+ guard (>= 1.1)
+ hike (1.2.1)
+ i18n (0.6.1)
+ journey (1.0.4)
json (1.6.5)
- json (1.6.5-java)
+ listen (0.4.7)
+ rb-fchange (~> 0.0.5)
+ rb-fsevent (~> 0.9.1)
+ rb-inotify (~> 0.8.8)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
multi_json (1.0.4)
- rack (1.1.2)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.8)
+ actionmailer (= 3.2.8)
+ actionpack (= 3.2.8)
+ activerecord (= 3.2.8)
+ activeresource (= 3.2.8)
+ activesupport (= 3.2.8)
+ bundler (~> 1.0)
+ railties (= 3.2.8)
+ railties (3.2.8)
+ actionpack (= 3.2.8)
+ activesupport (= 3.2.8)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
rake (0.9.2.2)
+ rb-fchange (0.0.5)
+ ffi
+ rb-fsevent (0.9.1)
+ rb-inotify (0.8.8)
+ ffi (>= 0.5.0)
rdoc (3.12)
json (~> 1.4)
rspec (2.8.0)
@@ -49,26 +105,32 @@ GEM
multi_json (~> 1.0.3)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
- thor (0.14.6)
+ thor (0.16.0)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
PLATFORMS
- java
ruby
DEPENDENCIES
- actionpack
- activerecord
activerecord-jdbcsqlite3-adapter
- activesupport
- bundler (>= 1.0)
+ appraisal
database_cleaner
guard
guard-rspec
- jeweler
jruby-openssl
json
+ rails
rake
rspec
+ rubycas-client!
simplecov
sqlite3
View
@@ -1,46 +1,14 @@
-# encoding: utf-8
-
-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
+#!/usr/bin/env rake
+require 'bundler/setup'
require 'rake'
+require 'bundler/gem_tasks'
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- gem.name = "rubycas-client"
- gem.homepage = "http://github.com/rubycas/rubycas-client"
- gem.license = "MIT"
- gem.summary = "Client library for the Central Authentication Service (CAS) protocol."
- gem.authors = ["Matt Zukowski", "Matt Walker", "Matt Campbell"]
- gem.rdoc_options = ['--main', 'README.rdoc']
- gem.files.exclude '.rvmrc', '.infinity_test', '.rbenv-version', '.rbenv-gemsets'
- # dependencies defined in Gemfile
-end
-Jeweler::RubygemsDotOrgTasks.new
+require 'appraisal'
-begin
- require 'rspec/core/rake_task'
- desc 'Run RSpecs to confirm that all functionality is working as expected'
- RSpec::Core::RakeTask.new('spec') do |t|
- t.pattern = 'spec/**/*_spec.rb'
- end
- task :default => :spec
-rescue LoadError
- puts "Hiding spec tasks because RSpec is not available"
+require 'rspec/core/rake_task'
+desc 'Default: run the specs and features.'
+task :default do
+ system("bundle exec rake -s appraisal spec ;")
end
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "rubycas-client #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+RSpec::Core::RakeTask.new
View
@@ -0,0 +1 @@
+*.lock
View
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "activesupport", "~> 2.3.11"
+
+gemspec :path=>"../"
View
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "rails", "~> 3.0.17"
+
+gemspec :path=>"../"
View
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "rails", "~> 3.1.8"
+
+gemspec :path=>"../"
View
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "rails", "~> 3.2.8"
+
+gemspec :path=>"../"
@@ -0,0 +1,3 @@
+module CasClient
+ VERSION = "2.3.9"
+end
Oops, something went wrong.

0 comments on commit 12e60e0

Please sign in to comment.