Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements #1

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open

Improvements #1

wants to merge 44 commits into from

Conversation

flavio
Copy link

@flavio flavio commented Nov 22, 2011

I made a couple of changes:

  • ensure latest version of rspec is being used
  • fixed Rakefile syntax (removed some deprecation warning)
  • fixed a broken unit test (pop failed when the queue was empty)
  • respect priority when popping items from the queue
  • extend pop and peek unit tests
  • allow to change the priority of items inside of the queue

flavio and others added 30 commits November 11, 2011 18:02
New gems required by the development environment:
  * rdoc
  * rspec
Updates the Rakefile:
  * get rid of deprecation warning raised by old rdoc directive
  * provide a task that runs all the specs
  * rake default task runs the unit tests.
Ensure nil is returned when the queue is empty and pop is called.
* Use a BSON::OrderedHash to express sort constrain, otherwise sort
  criteria won't work as expected with ruby 1.8.7
* Extend unit test to cover the different pop scenarios.
Ensure peek respects priority and insertion order.
Test timeout feature inside of pop and peek. Do not use sleep, rely on
Timecop: it makes the testing code faster and it's more flexible.
It's totally useless to keep them under scm.
When the timeout feature is disabled the body of the popped item was
nil.
Added the following features:
* allow to set the priority to a custom value
* allow to increase the priority by a custom step
* allow to decrease the priority by a custom step

All these methods have been implemented using findandmodify in
conjunction with '$set' and '$inc' update operators. This provides
better performances.

Extended the test suite.
This change is inconsistent with mongo_dequeue's api. Item's body cannot
be used to perform searches since it can be a really complex object.
Dequeue always returns and uses item's _id.

This reverts commit a71c172.
This change is inconsistent with mongo_dequeue's api. Item's body cannot
be used to perform searches since it can be a really complex object.
Dequeue always returns and uses item's _id.

This reverts commit 8b7a469.
…emspec

[Review] Request from 'jordimassaguerpla' @ 'openSUSE/Dequeue/review_120221_update_version_in_gemspec'
…s_from_gemspec_file

[Review] Request from 'jordimassaguerpla' @ 'openSUSE/Dequeue/review_120221_remove_pkg_gem_files_from_gemspec_file'
While processing crowded queues with multiple processes we noticed big
slow downs caused by the lack of indexes.
This fixes the problem.
Matt Barringer and others added 14 commits March 28, 2012 16:25
Fix the lock_until feature and update the test suite
A more elaborate spec has been pushed earlier.
Ensure peek respects the locked_till attribute like pop does.
Set the locked_at attribute when an item is popped from the list.
Rely on the @collection variable.
get version from VERSION file on the gemspec. Otherwise,
when running "gem build" the package has the wrong version.
…pec_

[Review] Request from 'jordimassaguerpla' @ 'openSUSE/Dequeue/review_121029_fix_version_in_gemspec_'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants