bard-rake 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed2973e1bd9430f0585ea99cba34d561a17c44b982b8f03f05f7df41e51cd315
4
- data.tar.gz: d4d8e2501839c24b43ba81c1c4fa7050f144078fa234cb5178914ee08c25d65d
3
+ metadata.gz: 95420cc4c316e45716d96f7a3ec6ddc06a6903def03c56c815a16f3f62940469
4
+ data.tar.gz: fcbf2e9d9fcf744ea1166300c7f6fb9ddcda6bfea2e01da6dd13d940ada806fa
5
5
  SHA512:
6
- metadata.gz: 3e68e3814804327257584c57b482510077646a9418bae083bab304156ad786940a79d1c5ab71047f7fc9caec7e0f109309b7bd0f60afb8d4953a72fdd376c240
7
- data.tar.gz: ec92167bbf8a5541547a5726b77cc34e551eef1e2914017f390224fa800093d7428c8d8d09624133209b9294bd0066e8c8e8340daa6db21301d66ff4f965ecd5
6
+ metadata.gz: 1ab8cb9047b7c4470159b9542ddcd07abc2b0eff5af24f58535b030e6a08de9eacfc0f5538c0d01a1530119f8c2188025d3c096854c88651ac0a8ee2a4f77883
7
+ data.tar.gz: f06bb490c29feb3456f18b31cde322f6d89dcb197ecd7cffbb8569a81b9dc8f749da9d401f6e24a8815b261855bf2016ce98cbeec8d4c3d2276e566dd5f223a0
@@ -5,7 +5,7 @@ end
5
5
 
6
6
  desc "Bootstrap project"
7
7
  task :bootstrap do
8
- system "cp config/database.sample.yml config/database.yml" unless File.exist?('config/database.yml') or !File.exist?('config/database.sample.yml')
8
+ invoke_take_if_exists "bootstrap:database.yml"
9
9
  invoke_task_if_exists "db:create"
10
10
  invoke_task_if_exists "db:migrate"
11
11
  invoke_task_if_exists "rake parallel:create"
@@ -16,3 +16,13 @@ task :bootstrap do
16
16
  Rake::Task["restart"].invoke
17
17
  end
18
18
 
19
+ task "bootstrap:database.yml" do
20
+ unless File.exist?("config/database.yml")
21
+ %w[config/database.sample.yml config/database.yml.example].each do |path|
22
+ if File.exist?(path)
23
+ system "cp #{path} config/database.yml"
24
+ break
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,6 +1,6 @@
1
1
  module Bard
2
2
  module Rake
3
- VERSION = "0.21.0"
3
+ VERSION = "0.22.0"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-05 00:00:00.000000000 Z
11
+ date: 2024-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.5.4
132
+ rubygems_version: 3.2.32
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Rake tasks for all bard projects.