-
Notifications
You must be signed in to change notification settings - Fork 0
merge_from_oacis
Takeshi Uchitane edited this page Apr 17, 2014
·
1 revision
- oacis リポジトリからlib/samples以下のコミットをoacis-moduleにコピー
cd ~
git clone [email protected]:crest-cassia/oacis.git oacis_tmp
cd oacis_tmp
git filter-branch -f --subdirectory-filter lib/samples HEAD #lib/samples以下に関するコミットのみ残す
cd ~
git clone [email protected]:crest-cassia/oacis-module.git
cd oacis-module
git remote add oacis_tmp file:///home/usrname/oacis_tmp
git fetch oacis_tmp
git merge oacis_tmp/Development
- module用のGemfileを用意
vim Gemfile
# load oacis Gemfile
require 'pathname'
oacis_gemfile = Pathname("#{ENV["OACIS_HOME"]}/Gemfile")
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(oacis_gemfile)
# Load module's Gemfiles
Dir.glob File.expand_path("plugins/*/Gemfile", __FILE__) do |file|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(file)
end
# define oacid-module gems
source 'https://rubygems.org'
# utility tool
gem 'rspec'
gem 'pry'