bard-new 0.1.0 → 0.1.2

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: 1ab3f7959c3f79b4c12b18b4d930d0b699e7cfceeabe215b4bd8f1ed2a66d6f3
4
+ data.tar.gz: c9b6d4a2a7d3c5b67373875728687a8188182ad1f24733532e05a52e9a2a0d5a
5
5
  SHA512:
6
- metadata.gz: 0f1e688442793919d59477e855cf2db2b03ab09b7b8118a6a8a686acb8f412e13609fba9bf793729af83efd6424a2b66000422b9796fa543e56ac6a1ee3d72b9
7
- data.tar.gz: 146fa6ba13c75198b1fabda558860a8faf1c3ee3d22732ecc51f43ea0eb2938573ddb1fdbd6f2608e090132b9d08da9c54c043923ecf5bb8b9a009757e862ba7
6
+ metadata.gz: 0d591b020109b70e3ceffd7bc8e6f1011e5d9b76a51cafac70eb4188b3da33157d80eebd6bbf003e03a9127b5e59cd7a96ba8d3b0a8a2a5b1e7cd6a3ad5ec307
7
+ data.tar.gz: f683d8f247e4dd26d8d416a87bd2f0b1e851ef7ba3cf2a50f2546eb79300550f24c7882a88d8646f03c0714098d1ebc45957a79fe2238e78dea00f414c4f08a3
data/Gemfile CHANGED
@@ -2,8 +2,6 @@ source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "bard", github: "botandrose/bard", branch: "v2.0"
6
-
7
5
  group :test do
8
6
  gem "simplecov", require: false
9
7
  gem "webmock", require: false
data/Gemfile.lock CHANGED
@@ -1,19 +1,7 @@
1
- GIT
2
- remote: https://github.com/botandrose/bard.git
3
- revision: eed2de978df9a6e26bd98c2ca1e02da5586e22a0
4
- branch: v2.0
5
- specs:
6
- bard (2.0.0)
7
- base64
8
- rbnacl
9
- rvm
10
- term-ansicolor (>= 1.0.3)
11
- thor (>= 0.19.0)
12
-
13
1
  PATH
14
2
  remote: .
15
3
  specs:
16
- bard-new (0.1.0)
4
+ bard-new (0.1.2)
17
5
  bard
18
6
 
19
7
  GEM
@@ -21,6 +9,11 @@ GEM
21
9
  specs:
22
10
  addressable (2.8.9)
23
11
  public_suffix (>= 2.0.2, < 8.0)
12
+ bard (2.0.2)
13
+ base64
14
+ rbnacl
15
+ rvm
16
+ thor (>= 0.19.0)
24
17
  base64 (0.3.0)
25
18
  bigdecimal (4.1.0)
26
19
  builder (3.3.0)
@@ -85,7 +78,6 @@ GEM
85
78
  logger (1.7.0)
86
79
  memoist3 (1.0.0)
87
80
  mini_mime (1.1.5)
88
- mize (0.6.1)
89
81
  multi_json (1.19.1)
90
82
  multi_test (1.1.0)
91
83
  pp (0.6.3)
@@ -103,8 +95,6 @@ GEM
103
95
  erb
104
96
  psych (>= 4.0.0)
105
97
  tsort
106
- readline (0.0.4)
107
- reline
108
98
  reline (0.6.3)
109
99
  io-console (~> 0.5)
110
100
  rexml (3.4.4)
@@ -129,22 +119,14 @@ GEM
129
119
  simplecov-html (0.13.2)
130
120
  simplecov_json_formatter (0.1.4)
131
121
  stringio (3.2.0)
132
- sync (0.5.0)
133
122
  sys-uname (1.5.1)
134
123
  ffi (~> 1.1)
135
124
  memoist3 (~> 1.0.0)
136
- term-ansicolor (1.11.3)
137
- tins (~> 1)
138
125
  testcontainers (0.2.0)
139
126
  testcontainers-core (= 0.2.0)
140
127
  testcontainers-core (0.2.0)
141
128
  docker-api (~> 2.2)
142
129
  thor (1.5.0)
143
- tins (1.52.0)
144
- bigdecimal
145
- mize (~> 0.6)
146
- readline
147
- sync
148
130
  tsort (0.2.0)
149
131
  webmock (3.26.2)
150
132
  addressable (>= 2.8.0)
@@ -165,7 +147,6 @@ PLATFORMS
165
147
  x86_64-linux-musl
166
148
 
167
149
  DEPENDENCIES
168
- bard!
169
150
  bard-new!
170
151
  cucumber
171
152
  debug
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",
@@ -154,7 +154,7 @@ module ProvisionServerWorld
154
154
  run_provision_ssh_as("www", <<~SH)
155
155
  cat > ~/testproject/Gemfile << 'GEMFILE'
156
156
  source "https://rubygems.org"
157
- gem "bard", github: "botandrose/bard", branch: "v2.0"
157
+ gem "bard"
158
158
  gem "foreman-export-systemd_user"
159
159
  GEMFILE
160
160
  SH
@@ -46,7 +46,6 @@ file "Gemfile", <<~RUBY
46
46
  gem "solid_cache"
47
47
  gem "solid_queue"
48
48
  gem "solid_cable"
49
- gem "bard", github: "botandrose/bard", branch: "v2.0"
50
49
  gem "bard-rails"
51
50
  gem "sqlite3"
52
51
  gem "image_processing"
@@ -175,6 +174,11 @@ insert_into_file "config/database.yml", <<~YAML, after: "database: storage/test.
175
174
  database: storage/staging.sqlite3
176
175
  YAML
177
176
 
177
+ # give each parallel_tests worker its own sqlite file, else they collide on one db
178
+ gsub_file "config/database.yml",
179
+ "database: storage/test.sqlite3",
180
+ 'database: storage/test<%= ENV["TEST_ENV_NUMBER"] %>.sqlite3'
181
+
178
182
  insert_into_file "config/database.yml", <<-YAML, after: "# database: path/to/persistent/storage/production.sqlite3"
179
183
 
180
184
  cable:
@@ -1,5 +1,5 @@
1
1
  module Bard
2
2
  module New
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
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.2
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