<commit_before>dm-salesforce
=============

A gem that provides a Salesforce Adapter for DataMapper.

The wsdl is converted into Ruby classes and stored in ~/.salesforce. This automatically
happens the first time you use the salesforce adapter, so you don't need to worry about
generating Ruby code. It just works if you have the wsdl, directions for getting going 
are outlined below.

An example of using the adapter:

    class Account
      include DataMapper::Resource

      def self.default_repository_name
        :salesforce
      end

      def self.salesforce_id_properties
        :id
      end<commit_msg>Update github README for the database.yml/apidir feature.<commit_after>dm-salesforce
=============

A gem that provides a Salesforce Adapter for DataMapper.

The wsdl is automatically converted into Ruby classes upon the first
invocation of the dm-salesforce adapter.  The classes in turn get
cached locally in one of the following locations, in order of
precedence:

    :repositories:salesforce:apidir (see included database.yml-example)
    ENV["SALESFORCE_DIR"]
    ~/.salesforce/

It just works if you have the wsdl, directions for getting going are
outlined below.

An example of using the adapter:

    class Account
      include DataMapper::Resource

      def self.default_repository_name
        :salesforce
      end

      def self.salesforce_id_properties
        :id
      end
{'fraction_non_alphanumeric': 0.058907026259758695, 'fraction_numerical': 0.0, 'mean_word_length': 3.462025316455696, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3986158', 'n_tokens_mistral': 393, 'n_tokens_neox': 358, 'n_words': 162}