We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05d5510 commit 30fb89dCopy full SHA for 30fb89d
aoc_cli.gemspec
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
30
spec.bindir = "exe"
31
spec.executables = ["aoc"]
32
- spec.require_paths = ["lib"]
+ spec.require_paths = %w[lib db]
33
34
spec.add_dependency "http"
35
spec.add_dependency "kangaru"
lib/aoc_cli.rb
@@ -14,9 +14,13 @@ module AocCli
14
config_path "spec/aoc.yml", env: :test
15
16
configure do |config|
17
+ migration_path = File.join(
18
+ File.expand_path(__dir__ || raise), "../db/migrate"
19
+ )
20
+
21
config.database.adaptor = :sqlite
22
config.database.path = File.expand_path("~/.local/share/aoc/aoc.sqlite3")
- config.database.migration_path = "db/migrate"
23
+ config.database.migration_path = migration_path
24
end
25
26
configure env: :test do |config|
0 commit comments