1. Chad Perrin
  2. persona

Commits

Chad Perrin  committed 70cac3f

moved personaconf.rb and added it to gemspec

  • Participants
  • Parent commits 4e08b1b
  • Branches default

Comments (0)

Files changed (3)

File lib/personaconf.rb

View file
  • Ignore whitespace
+module PersonaConf
+  ### CONSTANTS for avoiding the mess of manually specifying paths ###
+
+  BASEDIR = File.join( ENV['HOME'], '.persona'  )
+  DATADIR = File.join( BASEDIR,     'data'      )
+  MODULES = File.join( BASEDIR,     'mods'      )
+
+=begin
+  Ideally, some kind of single statement for each of these would be best,
+  rather than needing both requires and includes.  Specifying class methods
+  separately from instance stuff is probably still desirable, though.
+=end
+
+  require File.join( MODULES,   'five_stats.rb' )
+  require File.join( MODULES,   'hyper_mark.rb' )
+  require File.join( MODULES,   'description.rb')
+  require File.join( MODULES,   'skills.rb'     )
+  require File.join( MODULES,   'data_yaml.rb'  )
+  require File.join( MODULES,   'king_maker.rb' )
+  require File.join( MODULES,   'generator.rb'  )
+
+  module ClassMethods
+    include DataYAML::ClassMethods
+    include Description::ClassMethods
+  end
+
+  include FiveStats
+  include Description
+  include Skills
+  include DataYAML
+end

File persona.gemspec

View file
  • Ignore whitespace
     'bin/pertracker',
     'data/Average.yaml',
     'lib/persona.rb',
+    'lib/personaconf.rb',
     'lib/persona/description.rb',
     'lib/persona/five_stats.rb',
     'lib/persona/generator.rb',

File personaconf.rb

  • Ignore whitespace
-module PersonaConf
-  ### CONSTANTS for avoiding the mess of manually specifying paths ###
-
-  BASEDIR = File.join( ENV['HOME'], '.persona'  )
-  DATADIR = File.join( BASEDIR,     'data'      )
-  MODULES = File.join( BASEDIR,     'mods'      )
-
-=begin
-  Ideally, some kind of single statement for each of these would be best,
-  rather than needing both requires and includes.  Specifying class methods
-  separately from instance stuff is probably still desirable, though.
-=end
-
-  require File.join( MODULES,   'five_stats.rb' )
-  require File.join( MODULES,   'hyper_mark.rb' )
-  require File.join( MODULES,   'description.rb')
-  require File.join( MODULES,   'skills.rb'     )
-  require File.join( MODULES,   'data_yaml.rb'  )
-  require File.join( MODULES,   'king_maker.rb' )
-  require File.join( MODULES,   'generator.rb'  )
-
-  module ClassMethods
-    include DataYAML::ClassMethods
-    include Description::ClassMethods
-  end
-
-  include FiveStats
-  include Description
-  include Skills
-  include DataYAML
-end