diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..088af20 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pkg/* diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..45213bc --- /dev/null +++ b/Rakefile @@ -0,0 +1,34 @@ +require 'rake' +require 'spec/rake/spectask' + +desc 'Default: run specs.' +task :default => :spec + +desc 'Run the specs' +Spec::Rake::SpecTask.new(:spec) do |t| + t.spec_opts = ['--colour --format progress --loadby mtime --reverse'] + t.spec_files = FileList['spec/**/*_spec.rb'] +end + +PKG_FILES = FileList[ + '[a-zA-Z]*', + 'lib/**/*', + 'rails/**/*' +] + +begin + require 'jeweler' + Jeweler::Tasks.new do |gemspec| + gemspec.name = "realex" + gemspec.summary = "Ruby interface to http://realexpayments.com" + gemspec.description = "A Ruby library to make use of the payments API at http://realexpayments.com" + gemspec.email = "paul@rslw.com" + gemspec.homepage = "http://github.com/paulca/realex" + gemspec.authors = ["Paul Campbell"] + gemspec.version = "0.1.0" + end +rescue LoadError + puts "Jeweler not available. Install it with: gem install jeweler" +end + +Jeweler::GemcutterTasks.new \ No newline at end of file diff --git a/lib/real_ex/realex.rb b/lib/real_ex/realex.rb new file mode 100644 index 0000000..2344349 --- /dev/null +++ b/lib/real_ex/realex.rb @@ -0,0 +1 @@ +require 'real_ex' \ No newline at end of file diff --git a/realex.gemspec b/realex.gemspec new file mode 100644 index 0000000..03c9a46 --- /dev/null +++ b/realex.gemspec @@ -0,0 +1,65 @@ +# Generated by jeweler +# DO NOT EDIT THIS FILE DIRECTLY +# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{realex} + s.version = "0.1.0" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Paul Campbell"] + s.date = %q{2010-02-24} + s.description = %q{A Ruby library to make use of the payments API at http://realexpayments.com} + s.email = %q{paul@rslw.com} + s.extra_rdoc_files = [ + "README.md" + ] + s.files = [ + "README.md", + "lib/real_ex.rb", + "lib/real_ex/address.rb", + "lib/real_ex/card.rb", + "lib/real_ex/client.rb", + "lib/real_ex/config.rb", + "lib/real_ex/initializer.rb", + "lib/real_ex/recurring.rb", + "lib/real_ex/response.rb", + "lib/real_ex/transaction.rb", + "spec/address_spec.rb", + "spec/card_spec.rb", + "spec/config_spec.rb", + "spec/real_ex_spec.rb", + "spec/recurring_spec.rb", + "spec/response_spec.rb", + "spec/spec.opts", + "spec/spec_helper.rb", + "spec/transaction_spec.rb" + ] + s.homepage = %q{http://github.com/paulca/realex} + s.rdoc_options = ["--charset=UTF-8"] + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.5} + s.summary = %q{Ruby interface to http://realexpayments.com} + s.test_files = [ + "spec/address_spec.rb", + "spec/card_spec.rb", + "spec/config_spec.rb", + "spec/real_ex_spec.rb", + "spec/recurring_spec.rb", + "spec/response_spec.rb", + "spec/spec_helper.rb", + "spec/transaction_spec.rb" + ] + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 3 + + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + else + end + else + end +end +