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 +4 -4
- data/Gemfile.lock +1 -1
- data/features/new.feature +2 -0
- data/features/step_definitions/bard_new_steps.rb +11 -0
- data/lib/bard/new/rails_template.rb +5 -0
- data/lib/bard/new/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a7789c08d715302f8c248d9bd02084066fb88ce7a552f6ef8d9460e943e0273
|
|
4
|
+
data.tar.gz: 310102f79a317a467da0c9ef4450d24cbac8555ec9d6c545d86bc8e3950721fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93ee68790ba59020df58f8aa9be4209d8c182da9897470746aede50d7d6a956794aa5d5a455ded4924ef37007edd67bd52fbccb8bd2725f768643eb66bcb3c3c
|
|
7
|
+
data.tar.gz: aaae780e39a970cc949d84e455b292179137265caab7d85129c97df1945805ae4eb3f9c3180363533e773f74b24beaa0de3718620ae3f5faf596619e712302dc
|
data/Gemfile.lock
CHANGED
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:
|
data/lib/bard/new/version.rb
CHANGED
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.
|
|
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-
|
|
10
|
+
date: 2026-07-01 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bard
|