Sha256: 3517d689bdef269f372251c9551e3aacc29893bae8dba4c73c6baddde72f757e
Contents?: true
Size: 897 Bytes
Versions: 3
Compression:
Stored size: 897 Bytes
Contents
# Require forgeries at the bottom of the file so Forgery works as a gem both # within rails and outside of it. current_path = File.expand_path(File.dirname(__FILE__)) + '/' # Loading forgery helpers. require 'forgery/file_reader' require 'forgery/dictionaries' require 'forgery/formats' # Loading class extensions Dir[current_path + 'forgery/extensions/**/*.rb'].uniq.each do |file| require file end # Load the forgery base class require 'forgery/forgery' # Load the forgery version require 'forgery/version' # Load the forgery api method require 'forgery/forgery_api' # Loading the other forgeries AFTER the initial forgery class is defined. Dir[current_path + 'forgery/forgery/**/*.rb'].uniq.each do |file| require file end # Loading rails forgeries to override current forgery methods and add new # forgeries Forgery.load_from! "#{Forgery.rails_root}/lib/forgery" if Forgery.rails?
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
forgery-0.3.4 | lib/forgery.rb |
forgery-0.3.3 | lib/forgery.rb |
forgery-0.3.2 | lib/forgery.rb |