1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 07:33:05 +00:00

add relative path for development and test

This commit is contained in:
nishiki 2016-05-05 23:07:37 +02:00
parent 408ee95bcc
commit b86e095a60
3 changed files with 12 additions and 6 deletions

View file

@ -8,9 +8,6 @@ require 'pathname'
require 'locale'
require 'set'
require 'i18n'
require 'mpw/mpw'
require 'mpw/config'
require 'mpw/cli'
# --------------------------------------------------------- #
# Set local
@ -24,6 +21,11 @@ end
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
# TODO
require "#{APP_ROOT}/../lib/mpw/mpw.rb"
require "#{APP_ROOT}/../lib/mpw/config.rb"
require "#{APP_ROOT}/../lib/mpw/ui/cli.rb"
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
I18n.load_path = Dir["#{APP_ROOT}/../i18n/cli/*.yml"]
I18n.default_locale = :en

View file

@ -7,7 +7,9 @@ require 'gpgme'
require 'i18n'
require 'fileutils'
require 'yaml'
require 'mpw/item'
#TODO
require "#{APP_ROOT}/../lib/mpw/item.rb"
module MPW
class MPW

View file

@ -6,8 +6,10 @@ require 'readline'
require 'i18n'
require 'colorize'
require 'highline/import'
require 'mpw/mpw'
require 'mpw/item'
#TODO
require "#{APP_ROOT}/../lib/mpw/item.rb"
require "#{APP_ROOT}/../lib/mpw/mpw.rb"
class Cli