Skip to content

Commit

Permalink
Update dependencies and fix version in shards.yml. (#508)
Browse files Browse the repository at this point in the history
* Fix version number.

Needs tag v0.23.4 after merged.

* Update dependencies.

* User version number from shard.yml on VERSION constant.
  • Loading branch information
hugopl authored Dec 13, 2024
1 parent c8b80ee commit 6e14d8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: granite

version: 0.23.2
version: 0.23.4

crystal: ">= 1.6.0, < 2.0.0"

Expand All @@ -13,18 +13,18 @@ license: MIT
dependencies:
db:
github: crystal-lang/crystal-db
version: ~> 0.11.0
version: ~> 0.13.1

development_dependencies:
mysql:
github: crystal-lang/crystal-mysql
version: ~> 0.14.0
version: ~> 0.16.0
sqlite3:
github: crystal-lang/crystal-sqlite3
version: ~> 0.19.0
version: ~> 0.21.0
pg:
github: will/crystal-pg
version: ~> 0.26.0
version: ~> 0.29.0
ameba:
github: crystal-ameba/ameba
version: ~> 1.5.0
3 changes: 1 addition & 2 deletions spec/granite_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ describe Granite::Base do
describe "#to_yaml" do
it "emits nil values when told" do
t = TodoEmitNull.new(name: "test todo", priority: 20)
result = %(---\nid: \nname: test todo\npriority: 20\ncreated_at: \nupdated_at: \n)

result = %(---\nid:\nname: test todo\npriority: 20\ncreated_at:\nupdated_at:\n)
t.to_yaml.should eq result

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / mysql-spec (1.6.2)

got: "---\nid: \nname: test todo\npriority: 20\ncreated_at: \nupdated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / mysql-spec (1.7.2)

got: "---\nid: \nname: test todo\npriority: 20\ncreated_at: \nupdated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / sqlite-spec (1.6.2)

got: "---\nid: \nname: test todo\npriority: 20\ncreated_at: \nupdated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / psql-spec (1.6.2)

got: "---\nid: \nname: test todo\npriority: 20\ncreated_at: \nupdated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / mysql-spec (1.8.1)

"updated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / sqlite-spec (1.7.2)

got: "---\nid: \nname: test todo\npriority: 20\ncreated_at: \nupdated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / psql-spec (1.7.2)

got: "---\nid: \nname: test todo\npriority: 20\ncreated_at: \nupdated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / mysql-spec (latest)

"updated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / sqlite-spec (1.8.1)

"updated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / psql-spec (1.8.1)

"updated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / sqlite-spec (latest)

"updated_at: \n"

Check failure on line 268 in spec/granite_spec.cr

View workflow job for this annotation

GitHub Actions / psql-spec (latest)

"updated_at: \n"
end

Expand Down
1 change: 1 addition & 0 deletions spec/mocks/db_mock.cr
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ end

class FakeConnection < DB::Connection
def initialize
super(DB::Connection::Options.new)
@context = FakeContext.new
@prepared_statements = false
end
Expand Down
2 changes: 1 addition & 1 deletion src/granite/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Granite
VERSION = "0.23.1"
VERSION = {{ `shards version #{__DIR__}`.strip.stringify }}
end

0 comments on commit 6e14d8e

Please sign in to comment.