Skip to content

Commit

Permalink
Merge pull request #30 from runwaylab/bump-octokit
Browse files Browse the repository at this point in the history
Bump octokit
  • Loading branch information
GrantBirki authored Aug 11, 2024
2 parents ce6df5d + 8a11d41 commit 7c335dc
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .crystal-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.1
1.13.1
2 changes: 1 addition & 1 deletion .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)"
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)"
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)"
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)"
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)"
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion acceptance/logs/expected.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ INFO: 📖 loading runway configuration
DEBUG: attempting to load config from acceptance/config/config.yml
INFO: ✅ loaded configuration successfully
INFO: 🚚 2 projects loaded
INFO: 🛫 starting runway - version: v0.1.0
INFO: 🛫 starting runway - version: v0.2.0
INFO: 📦 starting project project-1
INFO: 🕐 scheduling event with interval 3s for project-1
INFO: 📦 starting project project-2
Expand Down
2 changes: 1 addition & 1 deletion lib/.shards.info
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ shards:
version: 0.12.0
octokit:
git: https://github.com/octokit-cr/octokit.cr.git
version: 0.2.4
version: 0.2.5
emoji:
git: https://github.com/veelenga/emoji.cr.git
version: 0.5.0
Expand Down
2 changes: 1 addition & 1 deletion lib/octokit/.crystal-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.1
1.13.1
4 changes: 2 additions & 2 deletions lib/octokit/script/release
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
read -p 'New Release Tag (vX.X.X format): ' new_tag

tag_regex='^v\d\.\d\.\d$'
echo "$new_tag" | grep -P -q $tag_regex
tag_regex='^v[0-9]+\.[0-9]+\.[0-9]+$'
echo "$new_tag" | grep -E "$tag_regex"

if [[ $? -ne 0 ]]; then
echo -e "${RED}ERROR${OFF} - Tag: $new_tag is not valid. Please use vX.X.X format."
Expand Down
4 changes: 2 additions & 2 deletions lib/octokit/shard.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: octokit
version: 0.2.4
version: 0.2.5

authors:
- Grant Birkinbine
- Chris Watson <[email protected]>

crystal: ">= 1.12.1"
crystal: ">= 1.13.1"

license: MIT

Expand Down
2 changes: 1 addition & 1 deletion lib/octokit/src/octokit/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Octokit
VERSION = "0.2.4"
VERSION = "0.2.5"
end
2 changes: 1 addition & 1 deletion lib/spectator/src/spectator/dsl/mocks.cr
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ module Spectator::DSL
# This isn't required, but new_mock() should still find this type.
::Spectator::DSL::Mocks::TYPES << {type.id.symbolize, @type.name(generic_args: false).symbolize, resolved.name.symbolize} %}

::Spectator::Mock.inject({{base}}, ::{{resolved.name}}, {{**value_methods}}) {{block}}
::Spectator::Mock.inject({{base}}, {{resolved.name}}, {{**value_methods}}) {{block}}
end

# Targets a stubbable object (such as a mock or double) for operations.
Expand Down
20 changes: 16 additions & 4 deletions script/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
# set the working directory to the root of the project
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
LINUX_VENDOR_DIR="$DIR/vendor/linux_x86_64/bin"
DARWIN_VENDOR_DIR="$DIR/vendor/darwin_x86_64/bin"
DARWIN_VENDOR_DIR_X64="$DIR/vendor/darwin_x86_64/bin"
DARWIN_VENDOR_DIR_ARM64="$DIR/vendor/darwin_arm64/bin"

mkdir -p "$DIR/bin"

# Determine if the system is a Mac or Linux
os="unknown"
arch="unknown"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
os="linux"
if [ "$CI" = true ]; then
Expand All @@ -29,12 +31,22 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
os="mac"
arch=$(uname -m)
if [ "$CI" = true ]; then
echo "OSTYPE: $OSTYPE"
echo "ARCH: $arch"
echo "running in CI mode, copying vendored binaries to bin/ directory (mac)"
cp "$DARWIN_VENDOR_DIR/ameba" "$DIR/bin/ameba"
cp "$DARWIN_VENDOR_DIR/crkcov" "$DIR/bin/crkcov"
cp "$DARWIN_VENDOR_DIR/kcov" "$DIR/bin/kcov"
if [ "$arch" = "x86_64" ]; then
cp "$DARWIN_VENDOR_DIR_X64/ameba" "$DIR/bin/ameba"
cp "$DARWIN_VENDOR_DIR_X64/crkcov" "$DIR/bin/crkcov"
cp "$DARWIN_VENDOR_DIR_X64/kcov" "$DIR/bin/kcov"
elif [ "$arch" = "arm64" ]; then
cp "$DARWIN_VENDOR_DIR_ARM64/ameba" "$DIR/bin/ameba"
cp "$DARWIN_VENDOR_DIR_ARM64/crkcov" "$DIR/bin/crkcov"
cp "$DARWIN_VENDOR_DIR_ARM64/kcov" "$DIR/bin/kcov"
else
echo "Unknown architecture: $arch"
fi
fi
else
os="unknown"
Expand Down
4 changes: 2 additions & 2 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
read -p 'New Release Tag (vX.X.X format): ' new_tag

tag_regex='^v\d\.\d\.\d$'
echo "$new_tag" | grep -P -q $tag_regex
tag_regex='^v[0-9]+\.[0-9]+\.[0-9]+$'
echo "$new_tag" | grep -E "$tag_regex"

if [[ $? -ne 0 ]]; then
echo -e "${RED}ERROR${OFF} - Tag: $new_tag is not valid. Please use vX.X.X format."
Expand Down
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ shards:

octokit:
git: https://github.com/octokit-cr/octokit.cr.git
version: 0.2.4
version: 0.2.5

retriable:
git: https://github.com/sija/retriable.cr.git
Expand Down
6 changes: 3 additions & 3 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: runway
version: 0.1.0
version: 0.2.0

authors:
- GrantBirki
Expand All @@ -8,14 +8,14 @@ targets:
runway:
main: src/cli.cr

crystal: ">= 1.12.1"
crystal: ">= 1.13.1"

license: MIT

dependencies:
octokit:
github: octokit-cr/octokit.cr
version: ~> 0.2.4
version: ~> 0.2.5
emoji:
github: veelenga/emoji.cr
version: ~> 0.5.0
Expand Down
2 changes: 1 addition & 1 deletion src/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Runway
VERSION = "v0.0.6"
VERSION = "v0.2.0"
end
Binary file added vendor/darwin_arm64/bin/ameba
Binary file not shown.
Binary file added vendor/darwin_arm64/bin/crkcov
Binary file not shown.
Binary file added vendor/darwin_arm64/bin/kcov
Binary file not shown.

0 comments on commit 7c335dc

Please sign in to comment.