Skip to content

Commit aa44900

Browse files
committed
Spring cleaning. [admin]
1 parent 3062132 commit aa44900

16 files changed

Lines changed: 200 additions & 192 deletions

.index

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
revision: 2013
3+
type: ruby
4+
sources:
5+
- var
6+
authors:
7+
- name: Trans
8+
email: transfire@gmail.com
9+
- name: K. Kodama
10+
- name: Ronald Butler
11+
- name: Olivier Renaud
12+
- name: Rick Bradley
13+
organizations:
14+
- name: Rubyworks
15+
requirements:
16+
- groups:
17+
- build
18+
development: true
19+
name: detroit
20+
- groups:
21+
- build
22+
development: true
23+
name: ergo
24+
- groups:
25+
- test
26+
development: true
27+
name: rubytest
28+
- groups:
29+
- test
30+
development: true
31+
name: rubytest-cli
32+
- groups:
33+
- test
34+
development: true
35+
name: microtest
36+
- groups:
37+
- test
38+
development: true
39+
name: ae
40+
conflicts: []
41+
alternatives: []
42+
resources:
43+
- type: home
44+
uri: http://rubyworks.github.com/pqueue
45+
label: Homepage
46+
- type: code
47+
uri: http://github.com/rubyworks/pqueue
48+
label: Source Code
49+
- type: mail
50+
uri: http://groups.google.com/group/rubyworks-mailinglist
51+
label: Mailing List
52+
- type: bugs
53+
uri: http://github.com/rubyworks/pqueue/issues
54+
label: Issue Tracker
55+
repositories:
56+
- name: upstream
57+
scm: git
58+
uri: git://github.com/rubyworks/pqueue.git
59+
categories: []
60+
copyrights:
61+
- holder: Rubyworks
62+
year: '2009'
63+
- holder: K. Kodama
64+
year: '2001'
65+
customs: []
66+
paths:
67+
lib:
68+
- lib
69+
created: '2001-03-10'
70+
summary: Queue of Prioritized Elements
71+
title: PQueue
72+
version: 2.0.2
73+
name: pqueue
74+
description: ! 'A priority queue is like a standard queue, except that each inserted
75+
elements
76+
77+
is given a certain priority, based on the result of the comparison block given
78+
79+
at instantiation time. Retrieving an element from the queue will always return
80+
81+
the one with the highest priority.'
82+
date: '2013-03-10'

.ruby

Lines changed: 0 additions & 58 deletions
This file was deleted.

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
script: "bundle exec ruby-test test/test_*.rb"
2+
script: "bundle exec rubytest"
33
rvm:
44
- 1.8.7
5-
- 1.9.2
65
- 1.9.3
76
- jruby
8-
- ree
9-
- rbx-2.0
7+
- jruby-19mode
8+
- rbx
9+
- rbx-19mode
1010

Assembly

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ vclog:
2525
tag:
2626
service: custom
2727
release: |
28-
cmd = %[pom news | git tag -a -F - #{project.version}]
28+
cmd = %[gemdo news | git tag -a -F - #{project.version}]
2929
puts cmd
3030
sh cmd
3131

32-
#rubytest:
33-
# path: test/*.rb
34-
#
32+
rubytest:
33+
loadpath: lib
34+
files: test/test_*.rb
3535

3636
#qed:
3737
# files: qed/

COPYING.rdoc

Lines changed: 0 additions & 31 deletions
This file was deleted.

HISTORY.rdoc renamed to HISTORY.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
= CHANGE HISTORY
1+
# CHANGE HISTORY
22

3-
== 2.0.2 / 2011-10-29
3+
## 2.0.2 / 2011-10-29
44

55
It's been one of those days. I went to to get a wash cloth for the shower,
66
on my way through the kitchen realized the chilling cookie dough needed to
@@ -16,7 +16,7 @@ Changes:
1616
* Fixed #reheap search algorithm.
1717

1818

19-
== 2.0.1 / 2011-10-29
19+
## 2.0.1 / 2011-10-29
2020

2121
Quick fix to remove old legacy library that was supposed to be
2222
removed in previous release. No big deal, it just confused the
@@ -27,7 +27,7 @@ Changes:
2727
* Remove legacy version of library.
2828

2929

30-
== 2.0.0 / 2011-10-29
30+
## 2.0.0 / 2011-10-29
3131

3232
This is a complete rewrite to simplify the design and use more
3333
of Ruby's internal methods. Overall performance should be markedly
@@ -44,7 +44,7 @@ Changes:
4444
* Switch to BSD-2-Clause license.
4545

4646

47-
== 1.0.0 / 2009-07-05
47+
## 1.0.0 / 2009-07-05
4848

4949
This is the initial standalone release of PQueue, spun-off from the
5050
Ruby Facets and originally written by K. Komada.

LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(BSD-2-Clause License)
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice,
7+
this list of conditions and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
14+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
15+
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
16+
COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
17+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
20+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
21+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
22+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23+

PROFILE

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# PQueue
2+
3+
[![Gem Version](https://badge.fury.io/rb/pqueue.png)](http://badge.fury.io/rb/pqueue)
4+
[![Build Status](https://secure.travis-ci.org/rubyworks/pqueue.png)](http://travis-ci.org/rubyworks/pqueue)    
5+
[![Flattr Me](http://api.flattr.com/button/flattr-badge-large.png)](http://flattr.com/thing/324911/Rubyworks-Ruby-Development-Fund)
6+
7+
[Website](http://rubyworks.github.com/pqueue) ·
8+
[API](http://rubydoc.info/gems/pqueue) ·
9+
[User Guide](http://wiki.github.com/rubyworks/pqueue) ·
10+
[Report Issue](http://github.com/rubyworks/pqueue/issues) ·
11+
[Source Code](http://github.com/rubyworks/pqueue)
12+
13+
14+
## DESCRIPTION
15+
16+
Priority queue with array based heap.
17+
18+
A priority queue is like a standard queue, except that each inserted
19+
elements is given a certain priority, based on the result of the
20+
comparison block given at instantiation time. Also, retrieving an element
21+
from the queue will always return the one with the highest priority
22+
(see #pop and #top).
23+
24+
The default is to compare the elements in respect to their #<=> method.
25+
For example, Numeric elements with higher values will have higher
26+
priorities.
27+
28+
This library is a rewrite of the original PQueue.rb by K. Kodama and
29+
Heap.rb by Ronald Butler. The two libraries were later merged
30+
and generally improved by Olivier Renaud. Then the whole library
31+
rewritten by Trans using the original as a functional reference.
32+
33+
34+
## USAGE
35+
36+
Usage is simple enough. Think of it as an array that takes a block, where
37+
the block decides which element of the array goes first.
38+
39+
require 'pqueue'
40+
41+
pq = PQueue.new([2,3,1]){ |a,b| a > b }
42+
43+
pq.pop #=> 3
44+
45+
46+
## ACKNOWLEDGMENTS
47+
48+
Although the library has been completely rewritten since, we still would
49+
like to acknowledge the efforts of the original PQueue authors and
50+
contributors.
51+
52+
* Olivier Renaud (2007)
53+
* Rick Bradley (2003)
54+
* Ronald Butler (2002)
55+
* K Kodama (2001, original library)
56+
57+
58+
## COPYRIGHTS
59+
60+
Copyright (c) 2011 Rubyworks
61+
62+
PQueue is distributable in accordance with the *BSD-2-Clause* license.
63+
64+
PQueue is based on the original PQueue library (c) 2001 by K. Kodama.
65+
66+
See the LICENSE.txt file for details.

0 commit comments

Comments
 (0)