diff options
Diffstat (limited to 'billing')
-rw-r--r-- | billing/Gemfile | 23 | ||||
-rw-r--r-- | billing/Rakefile | 38 | ||||
-rw-r--r-- | billing/leap_web_billing.gemspec | 20 | ||||
-rw-r--r-- | billing/lib/leap_web_billing/engine.rb | 11 |
4 files changed, 92 insertions, 0 deletions
diff --git a/billing/Gemfile b/billing/Gemfile new file mode 100644 index 0000000..68ea51b --- /dev/null +++ b/billing/Gemfile @@ -0,0 +1,23 @@ +source "http://rubygems.org" + +eval(File.read(File.dirname(__FILE__) + '/../common_dependencies.rb')) +eval(File.read(File.dirname(__FILE__) + '/../ui_dependencies.rb')) + +# We require leap_web_core from here so we can use the path option. +gem "leap_web_core", :path => '../core' + +# Declare your gem's dependencies in billing.gemspec. +# Bundler will treat runtime dependencies like base dependencies, and +# development dependencies will be added by default to the :development group. +gemspec + +# jquery-rails is used by the dummy application +#gem "jquery-rails" + +# Declare any dependencies that are still in development here instead of in +# your gemspec. These might include edge Rails or gems from your path or +# Git. Remember to move these dependencies to your gemspec before releasing +# your gem to rubygems.org. + +# To use debugger +# gem 'debugger' diff --git a/billing/Rakefile b/billing/Rakefile new file mode 100644 index 0000000..1dcfb25 --- /dev/null +++ b/billing/Rakefile @@ -0,0 +1,38 @@ +#!/usr/bin/env rake +begin + require 'bundler/setup' +rescue LoadError + puts 'You must `gem install bundler` and `bundle install` to run rake tasks' +end +begin + require 'rdoc/task' +rescue LoadError + require 'rdoc/rdoc' + require 'rake/rdoctask' + RDoc::Task = Rake::RDocTask +end + +RDoc::Task.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'Billing' + rdoc.options << '--line-numbers' + rdoc.rdoc_files.include('README.rdoc') + rdoc.rdoc_files.include('lib/**/*.rb') +end + + + + +Bundler::GemHelper.install_tasks + +require 'rake/testtask' + +Rake::TestTask.new(:test) do |t| + t.libs << 'lib' + t.libs << 'test' + t.pattern = 'test/**/*_test.rb' + t.verbose = false +end + + +task :default => :test diff --git a/billing/leap_web_billing.gemspec b/billing/leap_web_billing.gemspec new file mode 100644 index 0000000..c3b4bdd --- /dev/null +++ b/billing/leap_web_billing.gemspec @@ -0,0 +1,20 @@ +$:.push File.expand_path("../lib", __FILE__) + +require File.expand_path('../../lib/leap_web/version.rb', __FILE__) + +# Describe your gem and declare its dependencies: +Gem::Specification.new do |s| + s.name = "leap_web_billing" + s.version = LeapWeb::VERSION + s.authors = ["Jessib"] + s.email = ["jessib@leap.se"] + s.homepage = "http://www.leap.se" + s.summary = "Billing for LeapWeb" + s.description = "Billing System for a Leap provider" + + s.files = Dir["{app,config,db,lib}/**/*"] + ["Rakefile", "Readme.md"] + s.test_files = Dir["test/**/*"] + + s.add_dependency "leap_web_core", LeapWeb::VERSION + s.add_dependency "braintree-rails", "~> 0.4.5" +end diff --git a/billing/lib/leap_web_billing/engine.rb b/billing/lib/leap_web_billing/engine.rb new file mode 100644 index 0000000..acf63b0 --- /dev/null +++ b/billing/lib/leap_web_billing/engine.rb @@ -0,0 +1,11 @@ +# thou shall require all your dependencies in an engine. +require "leap_web_core" +require "leap_web_core/ui_dependencies" + +require "braintree-rails" + +module LeapWebBilling + class Engine < ::Rails::Engine + + end +end |