Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
567 lines (360 sloc) 20.2 KB
Tue Aug 17 14:49:49 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
change useragent to something not a total hack
* lib/rets4r.rb: set version before requires
* lib/rets4r/client/requester
(RETS4R::Client::Requester::DEFAULT_USER_AGENT): set to rets4r/n.n.n
Tue Aug 17 14:43:42 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
remove links to dead ci and metric services
Mon Aug 16 11:17:38 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
fix whitespace
Mon Aug 16 11:13:30 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
update manifest
Mon Aug 16 11:13:02 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
clean built gems
* Rakefile (clean): add rets4r-#{version}.gem to list of files to delete
Mon Aug 16 10:58:26 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
ignore test data from quality checks
Mon Aug 16 10:57:58 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
fix whitespace
Mon Aug 16 10:43:44 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
add test for code quality
Mon Aug 2 04:56:12 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
pull out request support
* lib/rets4r/client.rb: remove request operations into RETS4R::Client::Requester
* lib/rets4r/client/requester.rb: add
Mon Aug 2 04:50:18 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
remove old setters and getters
* lib/rets4r/client.rb (Client#set_user_agent, #get_user_agent)
(#set_request_method, #get_request_method, #set_rets_version)
(#get_rets_version): remove, as replacements exist
Mon Aug 2 04:36:03 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
pull out capability links
* lib/rets4r/client.rb: factor urls hash into links object
* lib/rets4r/client/links.rb: add
Mon Aug 2 04:17:47 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
remove exceptions
* lib/rets4r/client.rb: remove exceptions into lib/rets4r/client/exceptions.rb
Mon Aug 2 01:07:59 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
merge gemspec changes
Mon Aug 2 01:03:28 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
make gem without jeweler
* GPL: removed with permission from other authors
* VERSION.yml: remove
* lib/rets4r.rb: add VERSION
* MANIFEST: added
* rets4r.gemspec: remove jeweler, add manifest
* Rakefile: remove jeweler, add manifest
* Gemfile: remove jeweler
Mon Aug 2 00:48:47 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
rename tests to standard test_ form
* test/compact_nokogiri_test.rb -> test/test_compact_nokogiri.rb
* test/listing_mapper_test.rb -> test/test_listing_mapper.rb
* test/loader_test.rb -> test/test_loader.rb
Tue Jul 20 10:30:51 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
merge with briandunnn
Tue Jul 20 10:18:18 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Merge branch 'briandunn' into integration
Tue Jul 13 15:27:12 2010 Brian Dunn <brianpatrickdunn@gmail.com>
fixed misleading parameter name in loader
* lib/rets4r/loader.rb (Loader::load): rename file to io
Tue Jul 13 10:36:34 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
remove threads, use noko parser
* lib/rets4r/client.rb (Client#search): streaming yield through SAX parser
(Client#request): remove semaphores
Tue Jul 13 10:17:36 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
note issue with queryless search
* test/test_client.rb (test_search_without_query_should_not_raise_no_metho_error): comment out
Fri Jul 2 11:43:38 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
add a mapper example
* examples/client_mapper.rb: add
Fri Jul 2 11:30:44 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
update todo
Fri Jul 2 11:25:35 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Add clean task
* Rakefile: add clean task
Fri Jun 25 09:22:07 2010 Brian Dunn <brianpatrickdunn@gmail.com>
narrow a test, clean up get object signature
* lib/rets4r/client.rb (Client#get_object): use true and false for location
* test/test_client.rb (test_search_without_query_should_not_raise_no_metho_error):
just check for that particular exception.
Wed Jun 23 09:33:21 2010 Brian Dunn <brianpatrickdunn@gmail.com>
correctly handle location header in get_object
* lib/rets4r/client.rb (Client#process_header): use webrick header parsing
* lib/rets4r/client/dataobject.rb: case insensitive headers
Tue Jun 22 17:38:58 2010 Brian Dunn <brianpatrickdunn@gmail.com>
new happy fails
* lib/rets4r.rb: require rubygems
* lib/rets4r/client/parsers/compact_nokogiri.rb (CompactNokogiriParser): include Enumerable
* test/compact_nokogiri_test.rb (test_should_not_include_column_elements_in_keys): add
* test/test_client.rb (test_correcly_handles_location_header_url): add
Tue Jun 22 17:04:44 2010 Brian Dunn <brianpatrickdunn@gmail.com>
Merge SAX changes into master
Fri Jun 18 17:48:40 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
fix nil escaping bug
* examples/settings.yml: add wildcard query
* lib/rets4r/client.rb (Client#create_query_string): ignore nil keys and values
Fri Jun 18 17:19:17 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
initialize pre_request_block to shut up warning
* lib/rets4r/client.rb (Client#initialize): set @pre_request_block to nil
Fri Jun 18 17:11:12 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
fix example scripts
* Gemfile: add activesupport
* examples/settings.yml: add environments
* examples/client_get_object.rb, examples/client_login.rb
examples/client_metadata.rb, examples/client_search.rb: use env
ruby. load settings based on LISTING_ENV
Fri Jun 18 15:53:15 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
remove rubygems from here too
* examples/client_parser.rb: remove require
Fri Jun 18 15:50:04 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
remove rubygems requires
* Rakefile, lib/rets4r/client/parsers/compact_nokogiri.rb
test/test_client.rb, test/test_helper.rb: remove require
Fri Jun 18 15:44:47 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
use bundler for less gem headaches in dev
* Gemfile: add
Fri Jun 18 15:42:51 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
fix annotations task
* lib/tasks/annotations.rake: replace require with inline code
Wed Mar 3 16:02:11 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Update gemspec to v1.1.17
* rets4r.gemspec: update
Wed Mar 3 16:01:12 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Version bump to 1.1.17
* VERSION.yml: bump patch
Wed Mar 3 15:59:44 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Update change documentation
Wed Mar 3 12:43:25 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Require mocha before shoulda to fix 'uninitialized constant Test::Unit::TestResult::TestResultFailureSupport'
* test/test_helper.rb: require mocha earlier
Tue Feb 23 07:12:46 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Add ListingMapper to convert listing keys
* lib/rets4r.rb: require listing service, mapper
* lib/rets4r/listing_mapper.rb: new file
* lib/rets4r/listing_service.rb: new file
* test/data/listing_service.yml: new file
* test/listing_mapper_test.rb: new file
* test/test_helper.rb: new file
* lib/rets4r/core_ext/array/extract_options.rb: helper from rails
* lib/rets4r/core_ext/class/attribute_accessors.rb: likewise
* lib/rets4r/core_ext/hash/keys.rb: likewise
* lib/rets4r/core_ext/hash/slice.rb: likewise
Sat Feb 20 05:39:51 2010 Brian Dunn <brianpatrickdunn@gmail.com>
Test that SAX parser yeilds durring read.
* test/compact_nokogiri_test.rb: modified
* test/data/1.5/search_compact_big.xml: new file
Thu Feb 11 06:21:54 2010 Brian Dunn <brianpatrickdunn@gmail.com>
* lib/rets4r/client/parsers/compact_nokogiri.rb
(CompactNokogiriParser#each): new. should yield each row as the stream is
read
(CompactNokogiriParser#to_a): reads the whole stream and returns
rows in an array
* lib/rets4r/loader.rb: uses the each method to yield as the stream
is read
* test/compact_nokogiri_test.rb: uses to_a instead.
Sun Feb 7 19:05:46 2010 Scott Patterson <scott.patterson@digitalaun.com>
Removed unnecessary writing of response to xml file in /tmp dir.
Sun Feb 7 19:11:38 2010 Scott Patterson <scott.patterson@digitalaun.com>
Reversed aliases and accessors to use Ruby-style accessors with the get/set methods aliased.
Sun Feb 7 19:04:17 2010 Scott Patterson <scott.patterson@digitalaun.com>
Added in #data alias to #response for compatibility.
Sun Feb 7 18:57:50 2010 Scott Patterson <scott.patterson@digitalaun.com>
Removed old experiment.
Sun Feb 7 18:56:24 2010 Scott Patterson <scott.patterson@digitalaun.com>
Added compact response with only a count.
Thu Sep 10 23:47:49 2009 Andrew Vit <andrew@avit.ca>
Support response without a delimiter or column names
Mon Sep 14 22:21:35 2009 Andrew Vit <andrew@avit.ca>
requiring needed compact parser
Wed Sep 16 04:06:16 2009 Andrew Vit <andrew@avit.ca>
Handle compact-decoded format using same parser
Wed Sep 16 04:06:35 2009 Andrew Vit <andrew@avit.ca>
Fixed crash with missing response headers
Fri Feb 5 20:37:14 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Version bump to 1.1.16
Fri Feb 5 20:36:39 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Merge branch 'master' of github.com:josephholsten/rets4r
Fri Feb 5 20:34:13 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Make loader accept any IO
* lib/rets4r/client/parsers/compact_nokogiri.rb
(RETS4R::Loader::load): parse from io, not file name. Callers
changed
Fri Jan 22 01:39:23 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Version bump to 1.1.15
Fri Jan 22 01:37:22 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Merge branch 'master' of github.com:josephholsten/rets4r
Fri Jan 22 01:32:47 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Fix bug for parsing long lines
* lib/rets4r/client/parsers/compact_nokogiri.rb
(RETS4R::Client::CompactNokogiriParser::CompactDocument#start_element)
(RETS4R::Client::CompactNokogiriParser::CompactDocument#end_element)
(RETS4R::Client::CompactNokogiriParser::CompactDocument#characters):
defer string handling until the element has ended
* test/compact_nokogiri_test.rb
(CompactNokogiriTest#test_should_handle_big_data): added
* test/data/1.5/bad_compact.xml: new file
Fri Jan 22 00:51:00 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Regenerated gemspec for version 1.1.14
Fri Jan 22 00:50:32 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Version bump to 1.1.14
Fri Jan 22 00:44:04 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Add sax parser
* lib/rets4r.rb: require compact_nokogiri.rb
* lib/rets4r/loader.rb (RETS4R::Loader::load): use sax parser
* lib/rets4r/client/parsers/compact_nokogiri.rb: new file
* test/compact_nokogiri_test.rb: new file
Fri Jan 22 00:38:43 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Run tests that end in _test.rb
* Rakefile: add *_test.rb to test pattern
Thu Jan 21 23:35:34 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Add a batch file loader
* lib/rets4r.rb: require loader
* lib/rets4r/loader.rb: new file
* test/loader_test.rb: new file
Thu Jan 21 23:10:36 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Add parser example
* examples/client_parser.rb: added
Thu Jan 21 23:02:50 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Fix reference to rcov instead of relevance-rcov
* lib/tasks/coverage.rake: say rcov, not relevance-rcov
Thu Jan 21 23:02:04 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Add limit to settings
* examples/client_search.rb: pull limit from settings
* examples/settings.yml: set a sane default
Wed Jan 20 11:58:32 2010 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
use demo rets server
Thu Nov 26 01:06:06 2009 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
fix links list
Thu Nov 26 01:05:26 2009 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
fix indentation
Thu Nov 26 01:04:25 2009 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Link to related sites
* README.rdoc: updated docs
Wed Nov 25 06:37:07 2009 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
Use gemcutter
* Rakefile: include GemcutterTasks
1.1.13
Use gemcutter (Joseph Holsten)
* Rakefile: include GemcutterTasks
Fix rdoc reference (Joseph Holsten)
* README: renamed to README.rdoc
* Rakefile: likewise
* rets4r.gemspec: likewise
* CONTRIBUTORS: added Joseph Holsten
1.1.12
Merge example settings into a config file (Joseph Holsten)
Clean up testing (Joseph Holsten)
1.1.11
Merge many rets4r forks (Joseph Holsten)
1.1.10
ResponseParser#parse_common: should be _not_ equals (Jacob Basham)
1.1.9
(no change)
1.1.8
Client, ResponseParser#parse_common: Parser cleanup (Jacob Basham)
1.1.7
Client, Client#initialize, Client#create_query_string, Client#request:
Cleaned up files to be 80 skinny, added CGI escaping of data (Jacob Basham)
1.1.5
gemspec: fix date error (Jacob Basham)
1.1.3
gemspec: update (Jacob Basham)
1.1.2
ResponseParser#parse_key_value: Accept CARETS response (John Wulff)
1.1.1
ResponseParser#parse_key_value: Handle nils (John Wulff)
1.1.0
Strip key value pairs for CAPABILITY_LIST endpoints (John Wulff)
Add lib/rets4r to default load path (John Wulff)
1.0.0
See changes in 9f7ff731250abc1f73b21cb01d3a6fc3a6617e73 (John Wulff)
Parser#parse_compact_line: simplify split.
Parser#parse_data: remove legacy support.
Auth::authenticate: handle missing www-authenticate header.
Auth::parse_header: strip keys, values.
Client#initialize: method signature changed, removed options, added format.
Client#set_parser_class, Client#get_parser_class,
Client#parser_class, Client#parser_class=, Client#set_output,
Client#get_output, Client#output, Client#output=: removed, callers changed.
Lay groundwork for non-compact format requests
Client::DEFAULT_METHOD: changed to GET
Client::DEFAULT_USER_AGENT: changed to Firefox
Client#login: handle absolute uris
Client#parse: Removed. Changed callers to access parser directly.
Client#get_metadata: method signature changed, format removed. Use format instance variable.
Client#download_metadata: added
Client#get_object: handle text/xml responses
!!! Client#get_object: remove quote support from multipart boundary handling
Client#count: added
Client#basic_encode: added
!!! Client#create_query_string: Remove escaping on request query keys, values
Client#debug: removed, all calls inlined.
Client#RETSTransactionException: added
client/parsers/
0.8.5
Parser#parse_compact_line now once again ignores beginning and ending delimiters. (Scott Patterson)
Parser#parse_data now ignores header fields that are nil or blank when stripped. (Scott Patterson)
Updated test to use the rets client version of the client, not hardcoded for post and get tests. (Scott Patterson)
0.8.4
Fixed auth issue with authenticate headers with spaces after commas. (Ken Wiesner, Scott Patterson)
When an exception is raised in the authentication parsing code, complain by raising
a new exception, but also report anything of interest at the same time: request,
response, response's body. (Franois Beausoleil)
Fixed Client#request to actually respect the specified request method instead of always using GET requests. (Scott Patterson)
Set default request method to POST since some RETS servers seem to have trouble with GET requests. (Scott Patterson)
0.8.3
Added example #set_pre_request_block. (Franois Beausoleil)
Allow a pre request block to be set for RETS4R::Client.
This allows the caller to change the request in any meaningful way, such as adding a
RETS-UA-Authorization header when appropriate. (Franois Beausoleil)
Better response handling of HTTP errors. Response codes > 300 other than 401 now raise an
HTTPError exception that encapsulates the HTTPResponse object.
401 errors raise a LoginError exception. (Scott Patterson)
Added in RETS specification error messages to reference. (Scott Patterson)
New Rakefile. Install the rake gem and do 'rake test' to run the tests. (Franois Beausoleil)
0.8.2
Added missing result parameter to Client#search's yield (Scott Patterson)
Added 1.7 to supported list and default version (Franois Beausoleil)
No longer sends empty (nil) headers (Franois Beausoleil)
Added debugging to HTTP output. (Franois Beausoleil, Scott Patterson)
Added support for multiple set-cookie headers in the server response (Franois Beausoleil)
Added basic search example (Scott Patterson)
Implied default value of \t in RETS4R::Client::Transaction#delimiter (Franois Beausoleil)
#get_metadata now returns the block's value or the results. (Franois Beausoleil)
Made sure #login always calls #logout if called with a block. #login returns the block's value
instead of results. (Franois Beausoleil)
New assertions that require Client to have Ruby-like accessors for attributes, instead of
getters and setters. Applied 'Rename Attribute' on @parser, because #get_parser_class
was returning the class of the parser's class, instead of the parser's class itself. (Franois Beausoleil)
Client#set_rets_version should take care to generate the correct RETS-Version header,
and #get_rets_version should undo the changes that #set_rets_version did before
returning the value. (Franois Beausoleil)
Don't rescue an exception that's not being processed in Parser. (Franois Beausoleil)
RETS4R::Client#get_object extensions: yield or return the array of DataObject instances;
changed the multipart/parallel response boundary processing rules
(include \r\n in the boundary detection); added documentation. (Franois Beausoleil)
Added GetObject example (Scott Patterson)
Changed #get_object now yields each DataObject if a block is given rather
than an array of DataObjects (Scott Patterson)
0.8.1
Added Action-URL support per the specification.
Added a secondary_response accessor to the Transaction object, which is what the Action-URL result is stored in.
Fixed a bug with loggers and parsers
0.8.0
Fixed RParser support, which now means you can use REXML.
RParser now retries XML that produced a parser error after trying to clean it.
Parser support is now more open so that more parsers can be easily added in the future.
Reorganized parser file layout.
CParser will only be loaded if libxml (its dependency) is present. If it is, it is the default
parser.
Added more parser unit tests.
Renamed CParser to XMLParser and RPARSER to REXML, both with the hierarchy RETS4R::Client::Module.
Fixed a bug with the parser output not being set properly.
Fixed a bug with the parser not respecting the DELIMITER value and insisting on tab delimiters.
Added support for using a logger
Added more defaults to the search options (Count => '0', Format => 'COMPACT')
Added some Rubyisms (blocks can now be given to #new, #login, #get_metadata, #get_object, and #search)
0.7.1
Added support for reading the results count for searches.
0.7.0
Initial GEM Version