forked from ruby/json
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM mcr.microsoft.com/devcontainers/ruby:3.3-bookworm | ||
RUN apt-get update -y && apt-get install -y ragel | ||
WORKDIR /app | ||
CMD [ "bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
# Since pitchfork rely on a bunch of Linux features | ||
# this script gives a quick dev environment for macOS | ||
# and Windows contributors. | ||
runner="docker" | ||
if ! command -v docker >/dev/null 2>&1; then | ||
runner="podman" | ||
fi | ||
|
||
exec "${runner}" run -v $PWD:/app -it $("${runner}" build -q .) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -515,6 +515,7 @@ def test_parse_error_message_length | |
end | ||
|
||
def test_parse_error_incomplete_hash | ||
puts $LOADED_FEATURES.grep(/json/) | ||
error = assert_raise(JSON::ParserError) do | ||
JSON.parse('{"input":{"firstName":"Bob","lastName":"Mob","email":"[email protected]"}') | ||
end | ||
|