Skip to content

Commit

Permalink
Update shard versions and 1.0 compatibility (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored Apr 2, 2021
1 parent e7328ee commit 6f46980
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
Empty file removed run
Empty file.
13 changes: 8 additions & 5 deletions shard.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

# NOTE: https://github.com/crystal-lang/shards/issues/432
# Until this is resolved, the default needs to be empty here.
dependencies: {}
#dependencies: {}
# Uncomment if you need to override
# dependencies:
# lucky:
# github: luckyframework/lucky
# branch: master
dependencies:
lucky:
github: luckyframework/lucky
branch: master
authentic:
github: luckyframework/authentic
branch: master
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ license: MIT
dependencies:
teeplate:
github: luckyframework/teeplate
version: ~> 0.8.2
version: ~> 0.8.3

development_dependencies:
ameba:
github: crystal-ameba/ameba
version: ~> 0.13.4
version: ~> 0.14.2
6 changes: 3 additions & 3 deletions src/generators/web.cr
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ class LuckyCli::Generators::Web
version: ~> 0.7.2
carbon:
github: luckyframework/carbon
version: ~> 0.1.2
version: ~> 0.1.4
dotenv:
github: gdotdesign/cr-dotenv
version: ~> 0.7.0
version: ~> 1.0.0
DEPS_LIST

if generate_auth?
Expand All @@ -178,7 +178,7 @@ class LuckyCli::Generators::Web
development_dependencies:
lucky_flow:
github: luckyframework/lucky_flow
version: ~> 0.7.2
version: ~> 0.7.3
DEPS_LIST
end
end
Expand Down
3 changes: 3 additions & 0 deletions src/web_app_skeleton/config/cookies.cr.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Lucky::CookieJar.configure do |settings|
# Restrict cookies to a first-party or same-site context
cookie.samesite(:lax)

# Set all cookies to the root path by default
cookie.path("/")

# You can set other defaults for cookies here. For example:
#
# cookie.expires(1.year.from_now).domain("mydomain.com")
Expand Down
2 changes: 1 addition & 1 deletion src/web_app_skeleton/script/setup.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ print_done
<%- end -%>

notice "Installing shards"
shards install --ignore-crystal-version | indent
shards install | indent

if [ ! -f ".env" ]; then
notice "No .env found. Creating one."
Expand Down

0 comments on commit 6f46980

Please sign in to comment.