From c93b43853896a75d9a1410aba6fb677e033783d3 Mon Sep 17 00:00:00 2001 From: Saurabh Bhatia Date: Tue, 21 Jan 2014 17:05:26 +0800 Subject: [PATCH] Loading Built in modules and downloaded modules from different files --- Gemfile | 6 +++++- orbit_extensions.rb => built_in_extensions.rb | 6 ------ downloaded_extensions.rb | 6 ++++++ 3 files changed, 11 insertions(+), 7 deletions(-) rename orbit_extensions.rb => built_in_extensions.rb (77%) create mode 100644 downloaded_extensions.rb diff --git a/Gemfile b/Gemfile index e75266b..dea4e5d 100644 --- a/Gemfile +++ b/Gemfile @@ -29,7 +29,11 @@ gem "mongo_session_store-rails3", '3.0.6' gem 'nokogiri' gem 'tire' -eval(File.read(File.dirname(__FILE__) + '/orbit_extensions.rb')) +#built in modules +eval(File.read(File.dirname(__FILE__) + '/built_in_extensions.rb')) +#modules installed from the store +eval(File.read(File.dirname(__FILE__) + '/downloaded_extensions.rb')) + gem 'fb_graph' gem 'rack-gridfs' diff --git a/orbit_extensions.rb b/built_in_extensions.rb similarity index 77% rename from orbit_extensions.rb rename to built_in_extensions.rb index 9e562fb..f0703d4 100644 --- a/orbit_extensions.rb +++ b/built_in_extensions.rb @@ -1,11 +1,6 @@ #built-in-modules gem 'announcement', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-announcement.git' -gem 'archive', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-archive.git' -gem 'ask', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-ask.git' -gem 'calendar', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-calendar.git' -gem 'faq', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-faq.git' gem 'gallery', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-gallery.git' -gem 'location', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-location.git' gem 'member', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-member.git' gem 'member_staff', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-memberstaff.git' gem 'page_content', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-pagecontent.git' @@ -20,6 +15,5 @@ gem 'personal_patent', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit- gem 'personal_project', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-personalproject.git' gem 'personal_research', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-personalresearch.git' gem 'survey', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-survey.git' -gem 'video', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-video.git' gem 'web_resource', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-webresource.git' gem 'dynamic_form', '1.0.0', :git => 'git@github.com:rails/dynamic_form.git' \ No newline at end of file diff --git a/downloaded_extensions.rb b/downloaded_extensions.rb new file mode 100644 index 0000000..d071428 --- /dev/null +++ b/downloaded_extensions.rb @@ -0,0 +1,6 @@ +gem 'archive', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-archive.git' +gem 'calendar', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-calendar.git' +gem 'location', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-location.git' +gem 'ask', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-ask.git' +gem 'video', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-video.git' +gem 'faq', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-faq.git'