Skip to content

Commit

Permalink
Fix build on the latest version of anitomy (#7)
Browse files Browse the repository at this point in the history
* Update anitomy version

* Add new node versions to CI

* Update deps

* Fix build on anitomy

* Fix deprecation warning

* Set resource name on worker constructor

* Update linux build

* Update CI config files

* Update windows build

* Update build
- Deprecate node 0.12
- Fix build on older node version (< 10)
- Update CI scripts

* [skip ci] Update README

* [skip ci] Bump version
  • Loading branch information
skiptirengu authored Jun 13, 2018
1 parent b41a82c commit 236c894
Show file tree
Hide file tree
Showing 8 changed files with 1,069 additions and 21 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ addons:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: CXX=g++-4.9
- g++-5
- gcc-5
env: CC=gcc-5 CXX=g++-5
node_js:
- "0.12"
- "4"
- "5"
- "6"
- "7"
- "7"
- "8"
- "9"
- "10"
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Anitomy-js
# anitomy-js

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nevermnd/anitomy-js/master/LICENSE)
[![Dependencies][deps-image]][deps-url]
[![Linux Build][travis-image]][travis-url]
[![Windows Build][appveyor-image]][appveyor-url]


*Anitomy-js* is a Node.js wrapper for [Anitomy](https://github.com/erengy/anitomy) - a C++ library for parsing anime video filenames.
*anitomy-js* is a Node.js wrapper for [Anitomy](https://github.com/erengy/anitomy) - a C++ library for parsing anime video filenames.

## Installation

Expand All @@ -15,11 +15,18 @@ With [npm](http://npmjs.org) do:
```
npm install anitomy-js
```
*Anitomy-js* builds it's dependencies upon installation. Please refer to the [node-gyp documentation](https://github.com/nodejs/node-gyp#installation) if you're having trouble with the build.
*anitomy-js* builds it's dependencies upon installation. Please refer to the [node-gyp documentation](https://github.com/nodejs/node-gyp#installation) if you're having trouble with the build.

Starting with version 2.0, *anitomy-js* requires C++ 14 to build:
+ Linux: GCC/G++ >= 5
+ Windows: Visual Studio >= 2015
+ Mac OS: Just update your Xcode :)

If you can't update your build tools, all versions from 1.x which are compatible with C++ 11.

## Usage

*Anitomy-js* provides two methods: `parseSync` and `parseAsync`.
*anitomy-js* provides two methods: `parseSync` and `parseAsync`.
Both methods accept single filename input or, an array of filenames for batch parsing.

Additionally you can pass an object as the last parameter to change Anitomy's original parsing options. The options are the following:
Expand Down
6 changes: 5 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
image:
- "Visual Studio 2017"
environment:
matrix:
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "7"
- nodejs_version: "8"
- nodejs_version: "9"
- nodejs_version: "10"

install:
- git submodule update --init --recursive
Expand Down
7 changes: 4 additions & 3 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@
"OTHER_CFLAGS": [
"-mmacosx-version-min=10.7",
"-stdlib=libc++",
"-std=c++11"
"-std=c++14"
]
},
"cflags": [
"-std=c++11"
"-std=c++14"
],
"cflags_cc!": [
"-fno-rtti",
"-fno-exceptions"
"-fno-exceptions",
"-std=gnu++0x"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
Expand Down
Loading

0 comments on commit 236c894

Please sign in to comment.