Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed gem builder to bundler

  • Loading branch information...
commit 7f397002c2975f5b6926758691098072eea7c825 1 parent bde4ce6
@dwilkie authored
View
3  .gitignore
@@ -0,0 +1,3 @@
+pkg/*
+*.gem
+.bundle
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in devise_paypal.gemspec
+gemspec
View
0  README → README.markdown
File renamed without changes
View
42 Rakefile
@@ -1,40 +1,2 @@
-require 'rake'
-require 'rake/testtask'
-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
-
+require 'bundler'
+Bundler::GemHelper.install_tasks
View
1  VERSION
@@ -1 +0,0 @@
-0.0.0
View
2  app/controllers/devise/paypal_permissions_authable_controller.rb
@@ -8,7 +8,7 @@ class Devise::PaypalPermissionsAuthableController < ApplicationController
def new
@permissions ||= {}
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
# GET /resource/paypal_permissions_authable/callback
View
53 devise_paypal.gemspec
@@ -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 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "devise_paypal/version"
Gem::Specification.new do |s|
- s.name = %q{devise_paypal}
- s.version = "0.0.0"
+ s.name = "devise_paypal"
+ 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.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
+ s.rubyforge_project = "devise_paypal"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<devise>, [">= 0"])
- s.add_runtime_dependency(%q<paypal-ipn>, [">= 0"])
- else
- 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
+ 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
View
3  lib/devise_paypal/version.rb
@@ -0,0 +1,3 @@
+module DevisePaypal
+ VERSION = "0.0.1"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.