Skip to content

Commit

Permalink
Updated for Crystal 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Apr 4, 2021
1 parent e03a29d commit b1cd09a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,32 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]

schedule:
- cron: '0 6 * * 6'
jobs:
build:

runs-on: ubuntu-latest

container:
image: crystallang/crystal
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Install Crystal
uses: oprypin/[email protected]
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec
- name: Generate docs
run: crystal doc
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
SINGLE_COMMIT: true
6 changes: 4 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: json-xpath
version: 0.1.2
version: 0.1.3

authors:
- Ali Naqvi <[email protected]>
description: |
Provide XPath support on JSON document
crystal: 0.36.0
crystal: ">= 0.36.0, < 2.0.0"

dependencies:
xpath2:
Expand Down
2 changes: 1 addition & 1 deletion src/json-xpath.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# XPath query package for JSON document, lets you extract data from JSON documents through an XPath expression.
module JSONXPath
VERSION = "0.1.2"
VERSION = "0.1.3"

# Parses the JSON and returns an instance of `JSONXPath::Node`
def self.parse(input : String | IO)
Expand Down

0 comments on commit b1cd09a

Please sign in to comment.