Skip to content

Commit

Permalink
Changed gem builder to bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Nov 2, 2010
1 parent bde4ce6 commit 7f39700
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 80 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
pkg/*
*.gem
.bundle
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in devise_paypal.gemspec
gemspec
File renamed without changes.
42 changes: 2 additions & 40 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,40 +1,2 @@
require 'rake' require 'bundler'
require 'rake/testtask' Bundler::GemHelper.install_tasks
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the Devise Paypal plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'spec'
t.libs << 'features'
t.pattern = 'spec/**/*_spec.rb'
t.verbose = true
end

begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "devise_paypal"
gemspec.summary = "Allows login and signup through Paypal's apis"
gemspec.email = "dwilkie@gmail.com"
gemspec.homepage = "http://github.com/dwilkie/devise_paypal"
gemspec.authors = ["David Wilkie"]
gemspec.add_runtime_dependency "devise"
gemspec.add_runtime_dependency "paypal-ipn"
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end

desc 'Generate documentation for the Devise Paypal plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Devise Paypal'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end

1 change: 0 additions & 1 deletion VERSION

This file was deleted.

Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Devise::PaypalPermissionsAuthableController < ApplicationController
def new def new
@permissions ||= {} @permissions ||= {}
callback_url = paypal_permissions_authable_callback_uri callback_url = paypal_permissions_authable_callback_uri
redirect_to setup_paypal_permissions_url(callback_url, @permissions) redirect_to set_paypal_permissions_url(callback_url, @permissions)
end end


# GET /resource/paypal_permissions_authable/callback # GET /resource/paypal_permissions_authable/callback
Expand Down
53 changes: 15 additions & 38 deletions devise_paypal.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -1,45 +1,22 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "devise_paypal/version"


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{devise_paypal} s.name = "devise_paypal"
s.version = "0.0.0" s.version = DevisePaypal::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["David Wilkie"]
s.email = ["dwilkie@gmail.com"]
s.homepage = "http://github.com/dwilkie/devise_paypal"
s.summary = %q{Signup or login using Paypal}
s.description = %q{Signup or login using Paypal's Authorization or Permissions api's}


s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.rubyforge_project = "devise_paypal"
s.authors = ["David Wilkie"]
s.date = %q{2010-10-05}
s.email = %q{dwilkie@gmail.com}
s.extra_rdoc_files = [
"README"
]
s.files = [
"MIT-LICENSE",
"README",
"Rakefile",
"VERSION"
]
s.homepage = %q{http://github.com/dwilkie/devise_paypal}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Allows login and signup through Paypal's apis}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3


if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then s.files = `git ls-files`.split("\n")
s.add_runtime_dependency(%q<devise>, [">= 0"]) s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.add_runtime_dependency(%q<paypal-ipn>, [">= 0"]) s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
else s.require_paths = ["lib"]
s.add_dependency(%q<devise>, [">= 0"])
s.add_dependency(%q<paypal-ipn>, [">= 0"])
end
else
s.add_dependency(%q<devise>, [">= 0"])
s.add_dependency(%q<paypal-ipn>, [">= 0"])
end
end end


3 changes: 3 additions & 0 deletions lib/devise_paypal/version.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
module DevisePaypal
VERSION = "0.0.1"
end

0 comments on commit 7f39700

Please sign in to comment.