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

Let's try node 10.x, whatever #319

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10
10
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "0.10"
- "10"
sudo: false
addons:
apt:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"irc-colors": "1.1.0",
"hubot-markov": "~1.3.0",
"hubot-scripts": ">= 2.5.0 < 3.0.0",
"node-gd": "~0.2.3",
"node-gd": "~1.5.0",
"node-s3": "~1.1.0",
"phantomjs": "^1.9.12",
"redis": "~0.12.1",
Expand All @@ -47,8 +47,8 @@
"wolfram": "~0.3.4"
},
"engines": {
"node": "0.10.x",
"npm": ">= 1.1.x"
"node": "10.x",
"npm": ">= 6.4.x"
},
"scripts": {
"test": "mocha $(find tests/* -type f) --compilers coffee:coffee-script/register"
Expand Down
6 changes: 3 additions & 3 deletions scripts/ayp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class AYPStrip
# cb invoked as `cb(err, image)`. `err` is only set on failure
buildPanel: (lines, cb) =>
# Setup a transparant frame that we'll composite characters and text into.
frame = GD.createTrueColor(AYP_PANEL_WIDTH, AYP_PANEL_HEIGHT)
frame = GD.createTrueColorSync(AYP_PANEL_WIDTH, AYP_PANEL_HEIGHT)
frame.saveAlpha(1)
clear = frame.colorAllocateAlpha(0, 0, 0, 127)
frame.fill(0, 0, clear)
Expand Down Expand Up @@ -416,7 +416,7 @@ class AYPStrip
msg = @formatForTextBubble(msg, font, size, max)
[w, h] = @textSize(msg, font, size)

frame = GD.createTrueColor(
frame = GD.createTrueColorSync(
w + (AYP_TEXT_PADDING * 2),
h + (AYP_TEXT_PADDING * 2)
)
Expand Down Expand Up @@ -482,7 +482,7 @@ class AYPStrip
# When printed using `font` of `size`
# in the form [width, height]
textSize: (msg, font, size) ->
img = GD.create(1,1)
img = GD.createSync(1,1)
black = img.colorAllocate(0, 0, 0)
bb = img.stringFTBBox(black, font, size, 0, 0, 0, msg)
[
Expand Down