refs 7044 EnjuTrunkのGem化

EnjuTrunkをGem化

利用方法は以下の通りです。

rails new foobar --skip-bundle -m template.txt -d postgresql
cd foobar
vi config/database.yml
bundle
bundle exec rails g enju_trunk:install
bundle exec rake db:create db:migrate
bundle exec rake db:seed
bundle binstubs enju_trunk (現状ndl_statisticsのbinstubのみ作成されます)

template.txtは以下のようなものです。
-----------------------------------------------------
gem 'therubyracer', platforms: :ruby, group: :assets

gem 'enju_trunk', path: '../enju_trunk'

gem 'thinreports', git: 'git://github.com/emiko/thinreports-generator.git'
gem 'select2-rails', :git => 'git@github.com:MiraitSystems/select2-rails.git'
gem 'enju_trunk_event', git: 'git://github.com/MiraitSystems/enju_trunk_event.git', require: 'enju_event'
gem 'enju_ndl', git: 'git://github.com/MiraitSystems/enju_trunk_ndl.git'
gem 'enju_trunk_frbr', git: 'git://github.com/emiko/enju_trunk_frbr.git'

gem 'enju_trunk_circulation', git: 'git://github.com/MiraitSystems/enju_trunk_circulation.git'
gem 'enju_trunk_ill', git: 'git://github.com/MiraitSystems/enju_trunk_ill.git'
gem 'enju_trunk_statistics', git: 'git://github.com/MiraitSystems/enju_trunk_statistics.git'

gem 'enju_book_jacket', '0.1.0.pre2'
gem 'enju_message', :git => 'git://github.com/MiraitSystems/enju_trunk_message.git'

gem 'sunspot_solr', '~> 2.0.0', group: :development
-----------------------------------------------------
update version name