Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
Commits on Jul 20, 2012
@scotchi scotchi This jar should have been in the dist dir as well df1d429
Commits on Sep 26, 2012
@scotchi scotchi Send the authentication header in the first request 745b179
@scotchi scotchi Netbeans update b67e9e5
@scotchi scotchi This is more of a bug than a TO-DO, but tracking it here anyway dea5fb6
@scotchi scotchi Auth header is sent by default from Java now 73e43d1
Commits on Sep 27, 2012
@scotchi scotchi Don't do an extra auth round trip in Python either 7ccfa0f
Commits on Sep 28, 2012
@scotchi scotchi Switch to accessing items in the /items prefix. 5a1527a
Commits on Oct 02, 2012
@scotchi scotchi Add support for destroying items f14ff3b
@scotchi scotchi Organize imports 161d4b0
Commits on Oct 09, 2012
@scotchi scotchi Consolidate code for URL creation into private methods 918e5f2
Commits on Oct 10, 2012
@scotchi scotchi Rename to 'directededge', bump version e181fd5
@scotchi scotchi Start the rewrite: add XML parser / generator and Link class fe690ba
@scotchi scotchi Start working in a database and item skeleton 0aaa8db
@scotchi scotchi Move most of the tricky logic for Items into the ContainerProxy b1e8069
@scotchi scotchi Start laying down the framework for saving 4a0050b
@scotchi scotchi Add in our own Resource subclass to handle parameter formatting 4290fb8
@scotchi scotchi Get saving working 95488cf
@scotchi scotchi Return self from load f658523
@scotchi scotchi Combine the logic of these two methods into a single private method 60b38c5
@scotchi scotchi Make sure to convert hash values to strings fd98bea
@scotchi scotchi Add in preselected and blacklisted to the working set cc3483a
@scotchi 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.
@scotchi scotchi Formatting 9f6d7da
@scotchi 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.
@scotchi 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.
@scotchi scotchi Get related and recommended queries working 72525f5
@scotchi 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'product5', :weight => 2)
@scotchi scotchi Rename file to match class name 985b822
@scotchi scotchi Add a method to import from a file 9592360
@scotchi scotchi Add function to export the database to a file 4dd8866
@scotchi scotchi The export / import methods make more sense as part of the database cbb7301
@scotchi scotchi Extend parsed strings to include attributes available in the XML
This is useful with the :include_properties = true option to
related and recommended.
@scotchi scotchi Add convenience methods for setting / fetching properties a7290db
@scotchi scotchi Make sure that link properties are converted to the right type on the…
… way in
@scotchi scotchi Formatting c0e3248
@scotchi scotchi Add group related fed554c
@scotchi scotchi Rename these to simply import and export 65e892d
@scotchi scotchi Convert Items to Links as well 66b60d0
@scotchi scotchi Don't require a block to be passed for creating raw items e1bb9ae
@scotchi scotchi We need to create raw items even if there's no queued data c6cc4c5
@scotchi scotchi The source member was removed in an earlier revision f055673
@scotchi scotchi Make sure that a comparison between links and strings works 1e66f47
@scotchi scotchi Port and get working the Exporter (now UpdateJob) test 2d3a9ad
@scotchi scotchi Port test 6d5ab4a
@scotchi scotchi There's a better test_tags later on 23aada8
@scotchi scotchi We need to be able to compare between Link and Item objects as well e8b2429
@scotchi scotchi Define a 'to_s' method for items 7c03813
@scotchi scotchi Recommended queries should use exclude_linked by default ee01d68
@scotchi scotchi Clear the query cache on save 66dd38f
@scotchi scotchi Add a destroy method 6b96576
@scotchi scotchi Port the item tests to the new bindings 9e0a9ce
@scotchi scotchi Port tags and properties tests f536c6c
@scotchi scotchi Port link types and load test 4066615
@scotchi scotchi 'reset' is a better approximation of the old 'reload' ae367b8
@scotchi scotchi Make it possible to look up links by target / type f76c87f
@scotchi scotchi Leave the error checking for this on the server f13e534
@scotchi scotchi Port ranking test 657d6f2
@scotchi scotchi Port group related test 02bda5c
@scotchi scotchi URI.encode is deprecated and broken; use CGI.escape a7056df
@scotchi scotchi Port bad links and query parameters tests 42c8752
@scotchi scotchi Make it possible to look up list values by value as well 068ec8e
@scotchi scotchi Port properties test 7ed68b5
@scotchi scotchi Port include_tags test 408a685
@scotchi scotchi Fix typo cee9b75
@scotchi scotchi Port preselected test 75e31b4
@scotchi scotchi save calls reset, so doing such explicitly isn't needed e849cb9
@scotchi scotchi Port blacklisted test 820d912
@scotchi scotchi Remove timeout test since it's been unused for ages 63ca48b
@scotchi scotchi Finish porting include_properties test c13fa97
@scotchi 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
@scotchi scotchi Organize imports 17d676f
@scotchi scotchi Don't send over values that == 0 311a370
@scotchi scotchi Add a method to run an import job as a block 00c2eed
@scotchi scotchi Add tests for new UpdateJob methods f197bbc
@lucijan lucijan convert method to symbol before looking it up 448b28c
@scotchi 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
@scotchi 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.
@scotchi scotchi Require Rake 0.8.7 1896173
@scotchi scotchi Add test for 'constness' in things coming out of the ContainerProxy 2720e83
@scotchi 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.
@scotchi scotchi Specify the path in the require
This allows single tests to be run, i.e. not using rake
@scotchi scotchi Formatting 1178849
@scotchi scotchi Get history entries basically working a281d29
@scotchi scotchi Switch to using the /items/ prefix for item IDs 599d30d
@scotchi scotchi Start adding in a History class to manipulate the list of histories 55d4719
@scotchi scotchi Make it possible to add and remove histories 063930b
@scotchi scotchi Make it possible to completely replace the histories list 9b3d8a1
@scotchi scotchi Read these out of the History object 2303eb9
@scotchi scotchi Add an equality operator 23aa796
@scotchi scotchi Add tests for adding and removing histories 380a051
@scotchi scotchi nil.to_i returns 0, which evaluates to true; use a turnery operator i…
@scotchi 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).
@scotchi scotchi Add in support in the bindings for fetching properties of history items.
This slightly changes the API for creating HistoryEntry objects from:'target', :history => history)

to:, 'target')

Also, now, to trigger loading of history properties, the item must be passed
the :include_properties option, e.g.:, 'item1', :include_properties => true)
@scotchi scotchi We need an accessor for the properties 4eac0db