Skip to content

Commit d43cc1e

Browse files
authored
Merge pull request #4 from NotNinja/develop
Release 0.1.2
2 parents e617018 + 3852f11 commit d43cc1e

File tree

18 files changed

+117
-177
lines changed

18 files changed

+117
-177
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.nyc_output/
2-
coverage/
31
node_modules/
42
*.log
3+
4+
.nyc_output/
5+
coverage/

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
.nyc_output/
12
coverage/
3+
codecov.yml
4+
25
test/
36
.*
47
AUTHORS.md
58
CHANGES.md
6-
codecov.yml
79
CONTRIBUTING.md

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ sudo: false
22
language: node_js
33
node_js:
44
- "8"
5+
- "9"
56
script:
67
- npm test
78
after_success:
89
- npm run coverage
910
notifications:
11+
email: false
1012
slack:
1113
rooms:
1214
- secure: Bu+WX8d4eWg+hubGeMZQ5j/mdt0LmRbohp3NO9DQGi2/026Z7N/tGkienEaD8oOQY3ZORaQuGbMCLBHrMWUIAz8kaeMqtvRjj3a8ZGNVZ/2kFLwv2gQnMGkigULZNbDFKRd6I7WkEfOUU4ANsXNDzsfdM3h2jXbIGew922adF0GkQGm8npLAfshj32Mogwe1oU78pVFukW8TcWrL2iZDRaBk2mrPYfTyP3scbdYeOIDDgWvnV0DkXHP2oPI9mMjzuIOBEXF5cBv7wMMHOu1/dtZzN/zrMB1Hm0iFsdb2TT8NgpTjaxb3y0JuEgC+e1TB6VznZ53HwED5G4eDBFE7Nz4iJ1y4rMTOzDxqMhXPOgwD4DOg2JDgZeT3bm1De63fpeM7vbfuZnGAnm5u9NR2ylVcH0yCCfdH0WV0nhA+k384MQH/WJe1xerrIu7kMOh6VyM7BxgDvpROn3vWrkWfPWufXeyX8ZSaA2j0OcYpQ4nfF2dhsmCEMeKhNU5AgdJhCVa97STsLz8lH9RMSrYz95HH/y6Yz3YZ6te+lCZLokNjo3vO89+hoUHCe5obxwxD9zLWsBhtxtKKgzLGn45JSZOA5zr3QNhQlzw8FkDBrVyLlYKUoP2+kW8eZpTM0udRClSrquXf1Kf0pbReKHemrK73arSMesd/FAjM8hRCtIA=
15+
on_failure: change
1316
on_success: change

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Version 0.1.2, 2018.01.25
2+
3+
* Move Unicode escape and unescape logic out to new `escape-unicode` and `unescape-unicode` modules respectively
4+
* Configure travis to also build against Node.js v9
5+
* Replace `chai` with `assert` in unit tests
6+
* Bump dependencies
7+
18
## Version 0.1.1, 2017.12.09
29

310
* Fix require statements in README examples [#2](https://github.com/NotNinja/nevis/issues/2)

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2017 Alasdair Mercer, !ninja
1+
Copyright (C) 2018 Alasdair Mercer, !ninja
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ $ cat ascii.properties | native2ascii --reverse > utf8.properties
8888

8989
## API
9090

91-
native2ascii(input[, options])
91+
### native2ascii(input[, options])
9292

9393
Converts the specified `input` so that it can be encoded in ASCII by using Unicode escapes ("\uxxxx" notation) for all
9494
characters that are not part of the ASCII character set.
@@ -97,13 +97,13 @@ This function is useful for properties files containing characters not in ISO-88
9797

9898
A reverse conversion can be performed by enabling the `reverse` option.
9999

100-
### Options
100+
#### Options
101101

102102
| Option | Description | Default |
103103
| --------- | -------------------------------- | ------- |
104104
| `reverse` | Whether to reverse the operation | `false` |
105105

106-
### Examples
106+
#### Examples
107107

108108
Unicode escape characters not in the ASCII character set so that they can be safely written encoded into ASCII:
109109

bin/native2ascii

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
/*
4-
* Copyright (C) 2017 Alasdair Mercer, !ninja
4+
* Copyright (C) 2018 Alasdair Mercer, !ninja
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-native2ascii",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Node.js implementation of Java's Native-to-ASCII Converter",
55
"homepage": "https://github.com/NotNinja/node-native2ascii",
66
"bugs": {
@@ -25,16 +25,17 @@
2525
"url": "https://github.com/NotNinja/node-native2ascii.git"
2626
},
2727
"dependencies": {
28-
"commander": "^2.12.2"
28+
"commander": "^2.13.0",
29+
"escape-unicode": "^0.1.0",
30+
"unescape-unicode": "^0.1.0"
2931
},
3032
"devDependencies": {
31-
"chai": "^4.1.2",
3233
"codecov": "^3.0.0",
33-
"eslint": "^4.13.0",
34+
"eslint": "^4.16.0",
3435
"eslint-config-notninja": "^0.2.3",
35-
"mocha": "^4.0.1",
36-
"nyc": "^11.3.0",
37-
"sinon": "^4.1.3",
36+
"mocha": "^5.0.0",
37+
"nyc": "^11.4.1",
38+
"sinon": "^4.2.1",
3839
"tmp": "0.0.33"
3940
},
4041
"bin": {

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017 Alasdair Mercer, !ninja
2+
* Copyright (C) 2018 Alasdair Mercer, !ninja
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

src/native2ascii.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017 Alasdair Mercer, !ninja
2+
* Copyright (C) 2018 Alasdair Mercer, !ninja
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)