Guest User

Untitled

a guest
Apr 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. ## with library doing manipulations
  2. require 'strokedb/stores/skiplist'
  3. require 'strokedb/transactions'
  4.  
  5. ## with a script doing proper manipulations and a proper lib
  6. $LOAD_PATH.unshift('lib') # only needed if you have a drop & use app, if you install the libs e.g. using setup.rb this is not needed
  7. require 'strokedb'
  8.  
  9. ## with a script doing proper manipulations and a proper lib if we only want parts of the lib
  10. $LOAD_PATH.unshift('lib') # only needed if you have a drop & use app, if you install the libs e.g. using setup.rb this is not needed
  11. require 'strokedb/stores/skiplist'
  12. require 'strokedb/transactions'
  13.  
  14. ## with a proper gem
  15. require 'rubygems'
  16. require 'strokedb'
  17.  
  18. ## with script doing really odd manipulations
  19. $LOAD_PATH.unshift(File.join(File.dirname(`gem which strokedb`.split("\n").last), 'lib')).uniq!
  20. require 'strokedb/stores/skiplist'
  21. require 'strokedb/transactions'
Add Comment
Please, Sign In to add comment