Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jul 20, 2012
Scott Wheeler scotchi This jar should have been in the dist dir as well df1d429
Commits on Sep 26, 2012
Scott Wheeler scotchi Send the authentication header in the first request 745b179
Scott Wheeler scotchi Netbeans update b67e9e5
Scott Wheeler scotchi This is more of a bug than a TO-DO, but tracking it here anyway dea5fb6
Scott Wheeler scotchi Auth header is sent by default from Java now 73e43d1
Commits on Sep 27, 2012
Scott Wheeler scotchi Don't do an extra auth round trip in Python either 7ccfa0f
Commits on Sep 28, 2012
Scott Wheeler scotchi Switch to accessing items in the /items prefix. 5a1527a
Commits on Oct 02, 2012
Scott Wheeler scotchi Add support for destroying items f14ff3b
Scott Wheeler scotchi Organize imports 161d4b0
Commits on Oct 09, 2012
Scott Wheeler scotchi Consolidate code for URL creation into private methods 918e5f2
Commits on Oct 10, 2012
Scott Wheeler scotchi Rename to 'directededge', bump version e181fd5
Scott Wheeler scotchi Start the rewrite: add XML parser / generator and Link class fe690ba
Scott Wheeler scotchi Start working in a database and item skeleton 0aaa8db
Scott Wheeler scotchi Move most of the tricky logic for Items into the ContainerProxy b1e8069
Scott Wheeler scotchi Start laying down the framework for saving 4a0050b
Scott Wheeler scotchi Add in our own Resource subclass to handle parameter formatting 4290fb8
Scott Wheeler scotchi Get saving working 95488cf
Scott Wheeler scotchi Return self from load f658523
Scott Wheeler scotchi Combine the logic of these two methods into a single private method 60b38c5
Scott Wheeler scotchi Make sure to convert hash values to strings fd98bea
Scott Wheeler scotchi Add in preselected and blacklisted to the working set cc3483a
Scott Wheeler scotchi Add in working UpdateJob
Compared to the old one, this creates temp files automatically without
bothering the API user with such and also has a much more Ruby-ish API.
c08b27c
Scott Wheeler scotchi Formatting 9f6d7da
Scott Wheeler scotchi Update to latest Jeweler, regenerate gem spec
The current version of Jeweler now uses Gemfiles a la Bundler.  One tricky
thing to note for the future is that 'rake gemspec' totally fails if the
gem's root directory isn't the same as the git root directory, so we have to
copy the dir to another place (e.g. /tmp) to create the specfile.
e51f7e5
Scott Wheeler scotchi Just work with the first item instead of a list
This was originally done as a list just in case that was ever useful, but,
well, it seems silly to have code for a case that's never used.
87a8469
Scott Wheeler scotchi Get related and recommended queries working 72525f5
Scott Wheeler scotchi Make it so that you don't have to pass in an object to create a link
Now you can use:

item.links.add 'product5', :weight => 2

Instead of:

item.links.add DirectedEdge::Link.new('product5', :weight => 2)
024501e
Scott Wheeler scotchi Rename file to match class name 985b822
Scott Wheeler scotchi Add a method to import from a file 9592360
Scott Wheeler scotchi Add function to export the database to a file 4dd8866
Scott Wheeler scotchi The export / import methods make more sense as part of the database cbb7301
Scott Wheeler scotchi Extend parsed strings to include attributes available in the XML
This is useful with the :include_properties = true option to
related and recommended.
5cd0808
Scott Wheeler scotchi Add convenience methods for setting / fetching properties a7290db
Scott Wheeler scotchi Make sure that link properties are converted to the right type on the…
… way in
d53845c
Scott Wheeler scotchi Formatting c0e3248
Scott Wheeler scotchi Add group related fed554c
Scott Wheeler scotchi Rename these to simply import and export 65e892d
Scott Wheeler scotchi Convert Items to Links as well 66b60d0
Scott Wheeler scotchi Don't require a block to be passed for creating raw items e1bb9ae
Scott Wheeler scotchi We need to create raw items even if there's no queued data c6cc4c5
Scott Wheeler scotchi The source member was removed in an earlier revision f055673
Scott Wheeler scotchi Make sure that a comparison between links and strings works 1e66f47
Scott Wheeler scotchi Port and get working the Exporter (now UpdateJob) test 2d3a9ad
Scott Wheeler scotchi Port test 6d5ab4a
Scott Wheeler scotchi There's a better test_tags later on 23aada8
Scott Wheeler scotchi We need to be able to compare between Link and Item objects as well e8b2429
Scott Wheeler scotchi Define a 'to_s' method for items 7c03813
Scott Wheeler scotchi Recommended queries should use exclude_linked by default ee01d68
Scott Wheeler scotchi Clear the query cache on save 66dd38f
Scott Wheeler scotchi Add a destroy method 6b96576
Scott Wheeler scotchi Port the item tests to the new bindings 9e0a9ce
Scott Wheeler scotchi Port tags and properties tests f536c6c
Scott Wheeler scotchi Port link types and load test 4066615
Scott Wheeler scotchi 'reset' is a better approximation of the old 'reload' ae367b8
Scott Wheeler scotchi Make it possible to look up links by target / type f76c87f
Scott Wheeler scotchi Leave the error checking for this on the server f13e534
Scott Wheeler scotchi Port ranking test 657d6f2
Scott Wheeler scotchi Port group related test 02bda5c
Scott Wheeler scotchi URI.encode is deprecated and broken; use CGI.escape a7056df
Scott Wheeler scotchi Port bad links and query parameters tests 42c8752
Scott Wheeler scotchi Make it possible to look up list values by value as well 068ec8e
Scott Wheeler scotchi Port properties test 7ed68b5
Scott Wheeler scotchi Port include_tags test 408a685
Scott Wheeler scotchi Fix typo cee9b75
Scott Wheeler scotchi Port preselected test 75e31b4
Scott Wheeler scotchi save calls reset, so doing such explicitly isn't needed e849cb9
Scott Wheeler scotchi Port blacklisted test 820d912
Scott Wheeler scotchi Remove timeout test since it's been unused for ages 63ca48b
Scott Wheeler scotchi Finish porting include_properties test c13fa97
Scott Wheeler scotchi Minor updates to README
This should later probably evolve into more of a tutorial, but this
fixes the syntax errors that are based on the old API
313a58c
Scott Wheeler scotchi Organize imports 17d676f
Scott Wheeler scotchi Don't send over values that == 0 311a370
Scott Wheeler scotchi Add a method to run an import job as a block 00c2eed
Scott Wheeler scotchi Add tests for new UpdateJob methods f197bbc
lucijan lucijan convert method to symbol before looking it up 448b28c
Scott Wheeler scotchi Don't throw exceptions when accessing an item that hasn't been create…
…d yet

This also adds an exists? method for testing if an object exists in the database
already.
a20f218
Scott Wheeler scotchi Don't send (empty) add / remove requests in addition to the main PUT
If we're doing wholesale replacement of a cached item, we don't need to bother
with the POST to add / remove the additional info since the info for the PUT
request should be totally self-contained.
6bafdac
Scott Wheeler scotchi Require Rake 0.8.7 1896173
Scott Wheeler scotchi Add test for 'constness' in things coming out of the ContainerProxy 2720e83
Scott Wheeler scotchi Don't check here unless we're on nginx
We already know that this fails on Apache.  We don't need to be reminded
of such every time we run the tests on localhost.
59bc477
Scott Wheeler scotchi Specify the path in the require
This allows single tests to be run, i.e. not using rake
07b1be6
Scott Wheeler scotchi Formatting 1178849
Scott Wheeler scotchi Get history entries basically working a281d29
Scott Wheeler scotchi Switch to using the /items/ prefix for item IDs 599d30d
Scott Wheeler scotchi Start adding in a History class to manipulate the list of histories 55d4719
Scott Wheeler scotchi Make it possible to add and remove histories 063930b
Scott Wheeler scotchi Make it possible to completely replace the histories list 9b3d8a1
Scott Wheeler scotchi Read these out of the History object 2303eb9
Scott Wheeler scotchi Add an equality operator 23aa796
Scott Wheeler scotchi Add tests for adding and removing histories 380a051
Scott Wheeler scotchi nil.to_i returns 0, which evaluates to true; use a turnery operator i…
…nstead
5c44545
Scott Wheeler scotchi Add test for history entries
Removing individual history entries is still not supported (short of doing
a "set" on the entire set of entries).
5b56a69
Scott Wheeler scotchi Add in support in the bindings for fetching properties of history items.
This slightly changes the API for creating HistoryEntry objects from:

HistoryEntry.new('target', :history => history)

to:

HistoryEntry.new(history, 'target')

Also, now, to trigger loading of history properties, the item must be passed
the :include_properties option, e.g.:

Item.new(db, 'item1', :include_properties => true)
43e059d
Scott Wheeler scotchi We need an accessor for the properties 4eac0db