bard-new 0.1.0 → 0.1.1

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: 8201fa5a621130b02195491b4639865adcc88eb94ec86bceb3f3c2008cb7ece9
4
- data.tar.gz: f4d6efff097acd5ca4e20d54d07be348b4d8616928860a39d09cca688b4ba81a
3
+ metadata.gz: 4a7789c08d715302f8c248d9bd02084066fb88ce7a552f6ef8d9460e943e0273
4
+ data.tar.gz: 310102f79a317a467da0c9ef4450d24cbac8555ec9d6c545d86bc8e3950721fc
5
5
  SHA512:
6
- metadata.gz: 0f1e688442793919d59477e855cf2db2b03ab09b7b8118a6a8a686acb8f412e13609fba9bf793729af83efd6424a2b66000422b9796fa543e56ac6a1ee3d72b9
7
- data.tar.gz: 146fa6ba13c75198b1fabda558860a8faf1c3ee3d22732ecc51f43ea0eb2938573ddb1fdbd6f2608e090132b9d08da9c54c043923ecf5bb8b9a009757e862ba7
6
+ metadata.gz: 93ee68790ba59020df58f8aa9be4209d8c182da9897470746aede50d7d6a956794aa5d5a455ded4924ef37007edd67bd52fbccb8bd2725f768643eb66bcb3c3c
7
+ data.tar.gz: aaae780e39a970cc949d84e455b292179137265caab7d85129c97df1945805ae4eb3f9c3180363533e773f74b24beaa0de3718620ae3f5faf596619e712302dc
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- bard-new (0.1.0)
16
+ bard-new (0.1.1)
17
17
  bard
18
18
 
19
19
  GEM
data/features/new.feature CHANGED
@@ -10,3 +10,5 @@ Feature: bard new
10
10
  Then the output should contain "Project testproject created!"
11
11
  And the project "testproject" should run successfully
12
12
  And the project "testproject" should respond to http://testproject.localhost
13
+ And the project "testproject" isolates parallel test databases
14
+ And the project "testproject" passes its CI suite
@@ -20,6 +20,17 @@ Then /^the project "([^"]+)" should run successfully$/ do |project_name|
20
20
  expect(stdout).to include("bard_test_ok")
21
21
  end
22
22
 
23
+ Then /^the project "([^"]+)" isolates parallel test databases$/ do |project_name|
24
+ stdout, status = run_new_ssh("cat /tmp/bardwork/#{project_name}/config/database.yml")
25
+ expect(status).to be_success, "could not read database.yml:\n#{stdout}"
26
+ expect(stdout).to include("TEST_ENV_NUMBER")
27
+ end
28
+
29
+ Then /^the project "([^"]+)" passes its CI suite$/ do |project_name|
30
+ stdout, status = run_new_ssh("cd /tmp/bardwork/#{project_name} && CI=1 bundle exec rake")
31
+ expect(status).to be_success, "CI suite failed for #{project_name}:\n#{stdout}"
32
+ end
33
+
23
34
  Then /^the project "([^"]+)" should respond to http:\/\/(.+)$/ do |project_name, hostname|
24
35
  Open3.capture2e(
25
36
  "timeout", "3",
@@ -175,6 +175,11 @@ insert_into_file "config/database.yml", <<~YAML, after: "database: storage/test.
175
175
  database: storage/staging.sqlite3
176
176
  YAML
177
177
 
178
+ # give each parallel_tests worker its own sqlite file, else they collide on one db
179
+ gsub_file "config/database.yml",
180
+ "database: storage/test.sqlite3",
181
+ 'database: storage/test<%= ENV["TEST_ENV_NUMBER"] %>.sqlite3'
182
+
178
183
  insert_into_file "config/database.yml", <<-YAML, after: "# database: path/to/persistent/storage/production.sqlite3"
179
184
 
180
185
  cable:
@@ -1,5 +1,5 @@
1
1
  module Bard
2
2
  module New
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-new
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-05-17 00:00:00.000000000 Z
10
+ date: 2026-07-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bard