Skip to content

Commit 45b8a8e

Browse files
upgrade progress
1 parent 81443d9 commit 45b8a8e

27 files changed

+358
-367
lines changed

.codeclimate.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
languages:
22
JavaScript: true
33
exclude_paths:
4-
- "js/dist/*.js"
5-
- "js/dist/**/*.js"
6-
- "test/*.js"
4+
- "doc/**/*.js"
75
- "test/**/*.js"
6+
- "lib/**/*.js"

.gitignore

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,10 @@
1-
# Logs
2-
logs
3-
*.log
4-
5-
# Runtime data
6-
pids
7-
*.pid
8-
*.seed
9-
10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov
12-
13-
# Coverage directory used by tools like istanbul
14-
coverage
15-
16-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17-
.grunt
18-
19-
# Compiled binary addons (http://nodejs.org/api/addons.html)
20-
build/Release
21-
221
# Dependency directory
23-
# Commenting this out is preferred by some people, see
24-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
252
node_modules
3+
jspm_packages
264

27-
# Users Environment Variables
28-
.lock-wscript
5+
# Coverage directory used by nyc
6+
coverage
7+
.nyc_output
298

30-
# groc
31-
doc
9+
# Documentation
10+
gh-pages

.groc.json

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

.travis.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1+
env:
2+
- CXX=g++-4.8
3+
4+
addons:
5+
apt:
6+
sources:
7+
- ubuntu-toolchain-r-test
8+
packages:
9+
- g++-4.8
10+
111
language: node_js
12+
213
node_js:
3-
- "iojs"
4-
- "0.12"
5-
- "0.11"
6-
- "0.10"
14+
- node
15+
716
install:
8-
- npm -d install
17+
- npm install
18+
919
script:
10-
- npm test
20+
- npm run cover
21+
1122
after_success:
12-
- ./node_modules/.bin/coveralls < coverage/lcov.info || true
13-
- ./node_modules/.bin/codeclimate < coverage/lcov.info || true
23+
- bash <(curl -s https://codecov.io/bash) || true
24+
- npm coveralls < coverage/lcov.info || true
25+
- npm codeclimate-test-reporter < coverage/lcov.info || true

README.md

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
11
[js-in-situ-sort-spec](http://aureooms.github.io/js-in-situ-sort-spec)
22
==
33

4-
In place sorting specification for JavaScript. Currently only supports NPM. Parent is
4+
In-place sorting spec for JavaScript. Parent is
55
[aureooms/js-sort](https://github.com/aureooms/js-sort).
66

77
[![NPM license](http://img.shields.io/npm/l/aureooms-js-in-situ-sort-spec.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-in-situ-sort-spec/master/LICENSE)
88
[![NPM version](http://img.shields.io/npm/v/aureooms-js-in-situ-sort-spec.svg?style=flat)](https://www.npmjs.org/package/aureooms-js-in-situ-sort-spec)
9-
[![Bower version](http://img.shields.io/bower/v/aureooms-js-in-situ-sort-spec.svg?style=flat)](http://bower.io/search/?q=aureooms-js-in-situ-sort-spec)
109
[![Build Status](http://img.shields.io/travis/aureooms/js-in-situ-sort-spec.svg?style=flat)](https://travis-ci.org/aureooms/js-in-situ-sort-spec)
1110
[![Coverage Status](http://img.shields.io/coveralls/aureooms/js-in-situ-sort-spec.svg?style=flat)](https://coveralls.io/r/aureooms/js-in-situ-sort-spec)
1211
[![Dependencies Status](http://img.shields.io/david/aureooms/js-in-situ-sort-spec.svg?style=flat)](https://david-dm.org/aureooms/js-in-situ-sort-spec#info=dependencies)
1312
[![devDependencies Status](http://img.shields.io/david/dev/aureooms/js-in-situ-sort-spec.svg?style=flat)](https://david-dm.org/aureooms/js-in-situ-sort-spec#info=devDependencies)
1413
[![Code Climate](http://img.shields.io/codeclimate/github/aureooms/js-in-situ-sort-spec.svg?style=flat)](https://codeclimate.com/github/aureooms/js-in-situ-sort-spec)
1514
[![NPM downloads per month](http://img.shields.io/npm/dm/aureooms-js-in-situ-sort-spec.svg?style=flat)](https://www.npmjs.org/package/aureooms-js-in-situ-sort-spec)
1615
[![GitHub issues](http://img.shields.io/github/issues/aureooms/js-in-situ-sort-spec.svg?style=flat)](https://github.com/aureooms/js-in-situ-sort-spec/issues)
17-
[![Inline docs](http://inch-ci.org/github/aureooms/js-in-situ-sort-spec.svg?branch=master&style=shields)](http://inch-ci.org/github/aureooms/js-in-situ-sort-spec)
18-
19-
## Use
20-
21-
```js
22-
let sort = require( "aureooms-js-sort" ) ;
23-
let array = require( "aureooms-js-array" ) ;
24-
let search = require( "aureooms-js-search" ) ;
25-
let heapsort = require( "aureooms-js-heapsort" ) ;
26-
let quicksort = require( "aureooms-js-quicksort" ) ;
27-
let partition = require( "aureooms-js-partition" ) ;
28-
let insitusortspec = require( "aureooms-js-in-situ-sort-spec" ) ;
29-
30-
insitusortspec.test( [
31-
[ "heapsort (unary)", heapsort.dary( 1 ) ],
32-
[ "heapsort (binary)", heapsort.dary( 2 ) ],
33-
[ "heapsort (ternary)", heapsort.dary( 3 ) ],
34-
[ "heapsort (4-ary)", heapsort.dary( 4 ) ],
35-
[ "heapsort (5-ary)", heapsort.dary( 5 ) ],
36-
[ "quicksort (hoare)", quicksort.single( partition.hoare ) ],
37-
[ "quicksort (lomuto)", quicksort.single( partition.lomuto ) ],
38-
[ "dualpivotquicksort (yaroslavskiy)", quicksort.dual( partition.yaroslavskiy ) ],
39-
[ "insertionsort", sort.insertionsort ],
40-
[ "selectionsort", sort.selectionsort ],
41-
[ "bubblesort", sort.bubblesort ],
42-
[ "fordjohnson" , function ( compare , a , i , j ) {
43-
44-
sort._fordjohnson( search.binarysearch )( compare , array.swap , a , i , j ) ;
45-
46-
} ]
47-
] ) ;
48-
```
16+
[![Documentation](https://aureooms.github.io/js-in-situ-sort-spec/badge.svg)](https://aureooms.github.io/js-in-situ-sort-spec/source.html)

bower.json

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

component.json

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

doc/css/style.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
h1,
2+
h2,
3+
.navigation,
4+
.layout-container > header,
5+
footer
6+
{
7+
border: none;
8+
}
9+
10+
.project-name {
11+
color: #FC913A;
12+
font-weight: bold;
13+
}
14+
15+
.layout-container > header > a.repo-url-github {
16+
font-size: inherit;
17+
display: inline;
18+
background: none;
19+
vertical-align: inherit;
20+
}
21+
22+
.search-box img {
23+
display: none;
24+
}
25+
26+
.search-box::before{
27+
content: "search";
28+
}
29+
30+
.search-input-edge {
31+
height: 0px;
32+
}
33+
34+
.search-result {
35+
width: 300px;
36+
margin-left: 42px;
37+
box-shadow: 1px 1px 13px rgba(0,0,0,0.2);
38+
}
39+
40+
.search-input {
41+
visibility: visible;
42+
}
43+
44+
.search-result li.search-separator {
45+
text-transform: capitalize;
46+
background-color: #ccc;
47+
}
48+
49+
span[data-ice="signature"] > span {
50+
/*font-weight: bold;*/
51+
font-style: italic;
52+
}

doc/manual/example.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
```js
2+
import ava from 'ava' ;
3+
4+
import sort from "aureooms-js-sort" ;
5+
import array from "aureooms-js-array" ;
6+
import search from "aureooms-js-search" ;
7+
import heapsort from "aureooms-js-heapsort" ;
8+
import quicksort from "aureooms-js-quicksort" ;
9+
import partition from "aureooms-js-partition" ;
10+
import insitusortspec from "aureooms-js-in-situ-sort-spec" ;
11+
12+
insitusortspec.test( ava , [
13+
[ "heapsort (unary)", heapsort.dary( 1 ) ],
14+
[ "heapsort (binary)", heapsort.dary( 2 ) ],
15+
[ "heapsort (ternary)", heapsort.dary( 3 ) ],
16+
[ "heapsort (4-ary)", heapsort.dary( 4 ) ],
17+
[ "heapsort (5-ary)", heapsort.dary( 5 ) ],
18+
[ "quicksort (hoare)", quicksort.single( partition.hoare ) ],
19+
[ "quicksort (lomuto)", quicksort.single( partition.lomuto ) ],
20+
[ "dualpivotquicksort (yaroslavskiy)", quicksort.dual( partition.yaroslavskiy ) ],
21+
[ "insertionsort", sort.insertionsort ],
22+
[ "selectionsort", sort.selectionsort ],
23+
[ "bubblesort", sort.bubblesort ],
24+
[ "fordjohnson" , function ( compare , a , i , j ) {
25+
sort._fordjohnson( search.binarysearch )( compare , array.swap , a , i , j ) ;
26+
} ]
27+
] ) ;
28+
```

doc/manual/installation.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Can be managed using
2+
[jspm](http://jspm.io)
3+
or [npm](https://github.com/npm/npm).
4+
5+
### jspm
6+
```terminal
7+
jspm install npm:aureooms-js-in-situ-sort-spec
8+
```
9+
10+
### npm
11+
```terminal
12+
npm install aureooms-js-in-situ-sort-spec --save
13+
```

0 commit comments

Comments
 (0)