Skip to content

Commit

Permalink
upgrading to Lucky 1.0.0-rc1. Fixes #69 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored Sep 30, 2022
1 parent 5d99be0 commit 1955e5c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ scripts:
dependencies:
lucky:
github: luckyframework/lucky
version: ">= 0.30.1"
version: ">= 1.0.0-rc1"
avram:
github: luckyframework/avram
version: ">= 0.23.0"
version: ">= 1.0.0-rc1"
pulsar:
github: luckyframework/pulsar
version: ">= 0.2.3"
Expand All @@ -32,7 +32,7 @@ dependencies:
development_dependencies:
ameba:
github: crystal-ameba/ameba
version: "~> 1.0.0"
version: "~> 1.1.0"
lucky_cli:
github: luckyframework/lucky_cli
version: ">= 0.30.0"
version: ">= 1.0.0-rc1"
5 changes: 4 additions & 1 deletion spec/integration_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ private def setup_and_compile_project_with_breeze
path: #{ENV["BREEZE_TEST_LOCATION"]}
TEXT

should_run_successfully "script/setup"

insert_text in: "src/shards.cr", content: <<-TEXT
require "breeze"
TEXT
Expand All @@ -35,8 +37,9 @@ private def setup_and_compile_project_with_breeze
require "breeze/spec_helpers"
TEXT

should_run_successfully "script/setup"
should_run_successfully "lucky breeze.install"
should_run_successfully "lucky db.migrate"

File.read("config/breeze.cr").should contain("Breeze.configure")
end
end
Expand Down
3 changes: 2 additions & 1 deletion src/breeze.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "pulsar"
require "avram"
require "lucky"
require "avram"
require "avram/lucky"
require "./charms/*"
require "./breeze/extension"
require "./breeze/models/*"
Expand Down
2 changes: 1 addition & 1 deletion tasks/breeze/data/reset.cr
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class Breeze::Data::Reset < LuckyTask::Task
output.puts "Truncating tables #{table_names.colorize(:green)}"

Breeze.settings.database.exec statement
puts "done."
output.puts "done."
end
end
2 changes: 1 addition & 1 deletion tasks/breeze/generators/templates/breeze_config.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Breeze.configure do |settings|
settings.database = AppDatabase

# Enable Breeze only for this environment
settings.enabled = LuckyEnv.development?
settings.enabled = !LuckyEnv.task? && LuckyEnv.development?
end

# To add BreezeCarbon, be sure to require "breeze/extensions/breeze_carbon"
Expand Down

0 comments on commit 1955e5c

Please sign in to comment.