Permalink
Browse files

nuke the old bin/test.rb file and update the README slightly

  • Loading branch information...
1 parent 584e76c commit 179b2b49704d791ce6dec12d5c4930a520724d02 @atmos atmos committed Dec 17, 2009
Showing with 3 additions and 76 deletions.
  1. +3 −1 README.markdown
  2. +0 −75 bin/test.rb
View
@@ -1,7 +1,8 @@
dm-salesforce
=============
-A gem that provides a Salesforce Adapter for DataMapper.
+A gem that provides a Salesforce Adapter for DataMapper 0.10.x.
+There are older versions of dm-salesforce specifically for 0.9.x.
The wsdl is automatically converted into Ruby classes upon the first
invocation of the dm-salesforce adapter. The classes in turn get
@@ -88,6 +89,7 @@ Special Thanks to those who helped
* Ben Burkert
* Larry Diehl
* Jordan Ritter
+* Martin Emde
[setup]: http://img.skitch.com/20090204-gaxdfxbi1emfita5dax48ids4m.jpg "Click on Setup"
[getwsdl]: http://img.skitch.com/20090204-nhurnuxwf5g3ufnjk2xkfjc5n4.jpg "Expand and Save"
View
@@ -1,75 +0,0 @@
-#!/usr/bin/env ruby
-#
-# Another quick testing program for working on this library. Makes it
-# easy to get up and running from the gem source and into a debugger.
-# Uses ruby-debug instead of IRB so you can drop indiscriminate
-# debugger lines anywhere. Probably some way to do this with IRB but,
-# well, fuckit.
-#
-
-BEGIN {
- require 'rubygems'
-
- require 'ruby-debug'
- Debugger.start
-
- require 'merb-core' # need this for dependency(..)
- require 'config/dependencies.rb'
- require 'lib/dm-salesforce.rb' # this gem
- require 'dm-aggregates' # optional, for Model.count
-
- db_config = {
- :adapter => 'salesforce',
- :username => 'api-user@example.org',
- :password => 'passwordAPIKEY',
- :path => '/path/to/salesforce.wsdl',
- :apidir => '/tmp',
- :host => '',
- }
-
- DataMapper::Logger.new(STDOUT, :debug)
- DataMapper.setup(:default, db_config)
-} # BEGIN
-
-#
-# Some test classes.
-#
-
-class Account
- include DataMapper::Resource
-
- property :id, String, :key => true, :salesforce_id => true
- property :name, String
- property :description, String
- property :fax, String
- property :phone, String
- property :type, String
- property :website, String
-
- has 0..n, :contacts
-end
-
-class Contact
- include DataMapper::Resource
-
- property :id, String, :serial => true, :salesforce_id => true
- property :first_name, String
- property :last_name, String
- property :email, String
- property :account_id, String, :salesforce_id => true
-
- belongs_to :account
-end
-
-
-#
-# And now we play.
-#
-
-puts Account.first.inspect
-puts Account.count.inspect
-
-debugger
-
-exit
-

0 comments on commit 179b2b4

Please sign in to comment.