Permalink
Browse files

added version.rb to mark releases when tagged

  • Loading branch information...
cies committed Jan 4, 2012
1 parent c0ddc18 commit 9ae2e53b6d5f70e5b01e788c415f67f011e96188
Showing with 18 additions and 9 deletions.
  1. +10 −9 config/init.rb
  2. +8 −0 version.rb
View
@@ -2,6 +2,7 @@
# require 'lib/irb.rb'
require 'yaml'
require 'config/dependencies.rb'
+require 'version.rb'
use_orm :datamapper
use_test :rspec
@@ -105,7 +106,7 @@
# This will get executed after your app's classes have been loaded.
# Activate SSL Support
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
-
+
loan_types = Loan.descendants
@@ -161,7 +162,7 @@
Merb.logger.info("Couldn't create the 'admin' user, possibly unable to access the database.")
end
- begin
+ begin
if Currency.all.empty?
curr = Currency.new(:name => 'INR')
if curr.save
@@ -173,14 +174,14 @@
end
end
end
-
+
rescue
Merb.logger.info("Couldn't create the 'INR' currency, Possibly unable to access the database.")
end
-
+
VOUCHERS = ['Payment', 'Receipt', 'Journal']
-
- begin
+
+ begin
if JournalType.all.empty?
VOUCHERS.each do |x|
j = JournalType.new(:name => x )
@@ -197,7 +198,7 @@
rescue
Merb.logger.info("Couldn't create the voucher, Possibly unable to access the database.")
end
-
+
Mfi.activate
if defined?(PhusionPassenger)
@@ -210,11 +211,11 @@
# This is to save all the loan_products as we have changed loan_type ENUM to loan_type_string.
begin
- LoanProduct.all.each{ |l|
+ LoanProduct.all.each{ |l|
if l.loan_type.nil? or l.loan_type_string.nil?
l.save
end
- }
+ }
rescue
end
$holidays_list = []
View
@@ -0,0 +1,8 @@
+# This constant sets our release version.
+# Make sure to update it before tagging a release.
+# The versioning scheme follows the semver.org standard:
+# * when the existing database schema is modified -> public API changed
+
+module Mostfit
+ VERSION = "2.1.0-pre"
+end

0 comments on commit 9ae2e53

Please sign in to comment.