From 8b2e77341ef3392068bd42737cc1407a4ad54bd3 Mon Sep 17 00:00:00 2001 From: James Foster Date: Tue, 8 Sep 2020 07:19:37 -0700 Subject: [PATCH 1/2] Fix compile error in sample code: PinHistory does not understand size(), but does understand queueSize(). --- REFERENCE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/REFERENCE.md b/REFERENCE.md index 6ddad2d4..da04de88 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -311,7 +311,7 @@ unittest(pin_history) // we expect 6 values in that queue (5 that we set plus one // initial value), which we'll hard-code here for convenience. // (we'll actually assert those 6 values in the next block) - assertEqual(6, state->digitalPin[1].size()); + assertEqual(6, state->digitalPin[1].queueSize)); bool expected[6] = {LOW, HIGH, LOW, LOW, HIGH, HIGH}; bool actual[6]; From 79b99be03bb6e3822cf378031b3891053b92e876 Mon Sep 17 00:00:00 2001 From: James Foster Date: Tue, 8 Sep 2020 07:48:27 -0700 Subject: [PATCH 2/2] Use https rather than http to avoid security warnings in VS Code (https://code.visualstudio.com/docs/languages/markdown#_markdown-preview-security). --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f1f30c06..5ad418e5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# ArduinoCI Ruby gem (`arduino_ci`) [![Gem Version](https://badge.fury.io/rb/arduino_ci.svg)](https://rubygems.org/gems/arduino_ci) [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/arduino_ci/0.3.0) +# ArduinoCI Ruby gem (`arduino_ci`) [![Gem Version](https://badge.fury.io/rb/arduino_ci.svg)](https://rubygems.org/gems/arduino_ci) [![Documentation](https://img.shields.io/badge/docs-rdoc.info-blue.svg)](https://www.rubydoc.info/gems/arduino_ci/0.3.0) You want to run tests on your Arduino library (bonus: without hardware present), but the IDE doesn't support that. Arduino CI provides that ability. @@ -11,8 +11,8 @@ You want your Arduino library to be automatically built and tested every time so Platform | CI Status ---------|:--------- -OSX | [![OSX Build Status](http://badges.herokuapp.com/travis/ianfixes/arduino_ci?env=BADGE=osx&label=build&branch=master)](https://travis-ci.org/ianfixes/arduino_ci) -Linux | [![Linux Build Status](http://badges.herokuapp.com/travis/ianfixes/arduino_ci?env=BADGE=linux&label=build&branch=master)](https://travis-ci.org/ianfixes/arduino_ci) +OSX | [![OSX Build Status](https://badges.herokuapp.com/travis/ianfixes/arduino_ci?env=BADGE=osx&label=build&branch=master)](https://travis-ci.org/ianfixes/arduino_ci) +Linux | [![Linux Build Status](https://badges.herokuapp.com/travis/ianfixes/arduino_ci?env=BADGE=linux&label=build&branch=master)](https://travis-ci.org/ianfixes/arduino_ci) Windows | [![Windows Build status](https://ci.appveyor.com/api/projects/status/8f6e39dea319m83q/branch/master?svg=true)](https://ci.appveyor.com/project/ianfixes/arduino-ci)