Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
activesupport (3.2.3) | ||
i18n (~> 0.6) | ||
multi_json (~> 1.0) | ||
amee (4.1.7) | ||
activesupport (~> 3.0) | ||
json | ||
log4r | ||
nokogiri (~> 1.4.4) | ||
builder (3.0.0) | ||
coderay (1.0.6) | ||
diff-lcs (1.1.3) | ||
flexmock (0.9.0) | ||
git (1.2.5) | ||
i18n (0.6.0) | ||
jeweler (1.6.4) | ||
bundler (~> 1.0) | ||
git (>= 1.2.5) | ||
rake | ||
json (1.7.0) | ||
log4r (1.1.10) | ||
method_source (0.7.1) | ||
multi_json (1.3.4) | ||
nokogiri (1.4.7) | ||
pry (0.9.9.4) | ||
coderay (~> 1.0.5) | ||
method_source (~> 0.7.1) | ||
slop (>= 2.4.4, < 3) | ||
quantify (3.1.2) | ||
activesupport (~> 3.0) | ||
i18n | ||
rake (0.9.2.2) | ||
rdoc (3.12) | ||
json (~> 1.4) | ||
rspec (2.6.0) | ||
rspec-core (~> 2.6.0) | ||
rspec-expectations (~> 2.6.0) | ||
rspec-mocks (~> 2.6.0) | ||
rspec-core (2.6.4) | ||
rspec-expectations (2.6.0) | ||
diff-lcs (~> 1.1.2) | ||
rspec-mocks (2.6.0) | ||
slop (2.4.4) | ||
uuidtools (2.1.2) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
amee (~> 4.1.5) | ||
builder | ||
bundler (~> 1.1.0) | ||
flexmock (> 0.8.6) | ||
jeweler (~> 1.6.4) | ||
pry | ||
quantify (~> 3.1.2) | ||
rdoc | ||
rspec (= 2.6.0) | ||
uuidtools (= 2.1.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'amee-data-abstraction' | ||
require 'rails' | ||
|
||
module AMEE::DataAbstraction | ||
|
||
class Railtie < Rails::Railtie | ||
|
||
rake_tasks do | ||
load File.join(File.dirname(__FILE__), '..', "tasks", "amee_data_abstraction.rake") | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (C) 2008-2012 AMEE UK Ltd. - http://www.amee.com | ||
# Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details. | ||
|
||
namespace :amee do | ||
|
||
namespace :calculations do | ||
|
||
# Performs application setup | ||
desc 'Regenerates a lock file for a specified calculations config file. Run as: rake "amee:calculations:lock[<file>]"' | ||
task :lock, [:file] => [:environment] do |t, args| | ||
AMEE::DataAbstraction::CalculationSet.regenerate_lock_file(args[:file]) | ||
end | ||
|
||
# Performs application setup | ||
desc 'Regenerates all locks files. Run as: rake "amee:calculations:lock_all"' | ||
task :lock_all => [:environment] do |t, args| | ||
$sheet_types.each_key do |key| | ||
AMEE::DataAbstraction::CalculationSet.regenerate_lock_file(key.to_s) | ||
end | ||
end | ||
|
||
end | ||
|
||
end |