Skip to content

Commit d8652a4

Browse files
committed
Use bootboot for testing with oj gem
1 parent 30ca7bf commit d8652a4

File tree

8 files changed

+387
-9
lines changed

8 files changed

+387
-9
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
- name: Set up Ruby ${{ matrix.ruby }}
3939
uses: ruby/setup-ruby@v1
4040
env:
41-
WITH_OJ_GEM: ${{ matrix.oj }}
41+
DEPENDENCIES_OJ: ${{ matrix.oj }}
4242
with:
4343
ruby-version: ${{ matrix.ruby }}
4444
bundler-cache: true
4545
- name: Test
4646
uses: paambaati/[email protected]
4747
env:
4848
CC_TEST_REPORTER_ID: be263ef9412dc65a7aa8dfb6e8162d5c7cfb3307fae0a444cde9dd6ca6f52848
49-
WITH_OJ_GEM: ${{ matrix.oj }}
49+
DEPENDENCIES_OJ: ${{ matrix.oj }}
5050
RUBY_VERSION: ${{ matrix.ruby }}
5151
with:
5252
coverageCommand: bundle exec rake test:coverage

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,3 @@ coverage
1919
vendor/bundle
2020
tmp
2121
allure-results
22-
23-
# Lockfile
24-
Gemfile.lock

Gemfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
source "https://rubygems.org"
44

5+
plugin "bootboot", "~> 0.2.2"
6+
57
gem "allure-cucumber", path: "allure-cucumber"
68
gem "allure-rspec", path: "allure-rspec"
79
gem "allure-ruby-commons", path: "allure-ruby-commons"
@@ -16,10 +18,17 @@ end
1618

1719
group :test do
1820
gem "climate_control", "~> 1.2.0"
19-
gem "oj", "~> 3.14" if ENV["WITH_OJ_GEM"] == "true"
2021
gem "rspec", "~> 3.12.0"
2122
gem "rubocop", "~> 1.52.0"
2223
gem "rubocop-performance", "~> 1.18.0"
2324
gem "simplecov", "~> 0.22.0"
2425
gem "simplecov-console", "~> 0.9.1"
2526
end
27+
28+
Plugin.send(:load_plugin, "bootboot") if Plugin.installed?("bootboot")
29+
30+
if ENV["DEPENDENCIES_OJ"]
31+
enable_dual_booting if Plugin.installed?("bootboot")
32+
33+
gem "oj", "~> 3.14"
34+
end

Gemfile.lock

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
PATH
2+
remote: allure-cucumber
3+
specs:
4+
allure-cucumber (2.21.2)
5+
allure-ruby-commons (= 2.21.2)
6+
cucumber (>= 4.0.0, < 9)
7+
8+
PATH
9+
remote: allure-rspec
10+
specs:
11+
allure-rspec (2.21.2)
12+
allure-ruby-commons (= 2.21.2)
13+
rspec-core (>= 3.8, < 4)
14+
15+
PATH
16+
remote: allure-ruby-commons
17+
specs:
18+
allure-ruby-commons (2.21.2)
19+
mime-types (>= 3.3, < 4)
20+
require_all (>= 2, < 4)
21+
rspec-expectations (~> 3.12)
22+
uuid (>= 2.3, < 3)
23+
24+
GEM
25+
remote: https://rubygems.org/
26+
specs:
27+
ansi (1.5.0)
28+
ast (2.4.2)
29+
backport (1.2.0)
30+
benchmark (0.2.1)
31+
builder (3.2.4)
32+
climate_control (1.2.0)
33+
colorize (0.8.1)
34+
cucumber (8.0.0)
35+
builder (~> 3.2, >= 3.2.4)
36+
cucumber-ci-environment (~> 9.0, >= 9.0.4)
37+
cucumber-core (~> 11.0, >= 11.0.0)
38+
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
39+
cucumber-gherkin (~> 23.0, >= 23.0.1)
40+
cucumber-html-formatter (~> 19.1, >= 19.1.0)
41+
cucumber-messages (~> 18.0, >= 18.0.0)
42+
diff-lcs (~> 1.5, >= 1.5.0)
43+
mime-types (~> 3.4, >= 3.4.1)
44+
multi_test (~> 1.1, >= 1.1.0)
45+
sys-uname (~> 1.2, >= 1.2.2)
46+
cucumber-ci-environment (9.2.0)
47+
cucumber-core (11.0.0)
48+
cucumber-gherkin (~> 23.0, >= 23.0.1)
49+
cucumber-messages (~> 18.0, >= 18.0.0)
50+
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
51+
cucumber-cucumber-expressions (15.2.0)
52+
cucumber-gherkin (23.0.1)
53+
cucumber-messages (~> 18.0, >= 18.0.0)
54+
cucumber-html-formatter (19.2.0)
55+
cucumber-messages (~> 18.0, >= 18.0.0)
56+
cucumber-messages (18.0.0)
57+
cucumber-tag-expressions (4.1.0)
58+
debug (1.8.0)
59+
irb (>= 1.5.0)
60+
reline (>= 0.3.1)
61+
diff-lcs (1.5.0)
62+
docile (1.4.0)
63+
e2mmap (0.1.0)
64+
ffi (1.15.5)
65+
io-console (0.6.0)
66+
irb (1.6.4)
67+
reline (>= 0.3.0)
68+
jaro_winkler (1.5.5)
69+
json (2.6.3)
70+
kramdown (2.4.0)
71+
rexml
72+
kramdown-parser-gfm (1.1.0)
73+
kramdown (~> 2.0)
74+
macaddr (1.7.2)
75+
systemu (~> 2.6.5)
76+
mime-types (3.4.1)
77+
mime-types-data (~> 3.2015)
78+
mime-types-data (3.2023.0218.1)
79+
multi_test (1.1.0)
80+
nokogiri (1.15.2-arm64-darwin)
81+
racc (~> 1.4)
82+
oj (3.15.0)
83+
parallel (1.23.0)
84+
parser (3.2.2.1)
85+
ast (~> 2.4.1)
86+
racc (1.7.0)
87+
rainbow (3.1.1)
88+
rake (13.0.6)
89+
rbs (2.8.4)
90+
regexp_parser (2.8.0)
91+
reline (0.3.4)
92+
io-console (~> 0.5)
93+
require_all (3.0.0)
94+
reverse_markdown (2.1.1)
95+
nokogiri
96+
rexml (3.2.5)
97+
rspec (3.12.0)
98+
rspec-core (~> 3.12.0)
99+
rspec-expectations (~> 3.12.0)
100+
rspec-mocks (~> 3.12.0)
101+
rspec-core (3.12.2)
102+
rspec-support (~> 3.12.0)
103+
rspec-expectations (3.12.3)
104+
diff-lcs (>= 1.2.0, < 2.0)
105+
rspec-support (~> 3.12.0)
106+
rspec-mocks (3.12.5)
107+
diff-lcs (>= 1.2.0, < 2.0)
108+
rspec-support (~> 3.12.0)
109+
rspec-support (3.12.0)
110+
rubocop (1.52.0)
111+
json (~> 2.3)
112+
parallel (~> 1.10)
113+
parser (>= 3.2.0.0)
114+
rainbow (>= 2.2.2, < 4.0)
115+
regexp_parser (>= 1.8, < 3.0)
116+
rexml (>= 3.2.5, < 4.0)
117+
rubocop-ast (>= 1.28.0, < 2.0)
118+
ruby-progressbar (~> 1.7)
119+
unicode-display_width (>= 2.4.0, < 3.0)
120+
rubocop-ast (1.28.1)
121+
parser (>= 3.2.1.0)
122+
rubocop-performance (1.18.0)
123+
rubocop (>= 1.7.0, < 2.0)
124+
rubocop-ast (>= 0.4.0)
125+
ruby-progressbar (1.13.0)
126+
semver2 (3.4.2)
127+
simplecov (0.22.0)
128+
docile (~> 1.1)
129+
simplecov-html (~> 0.11)
130+
simplecov_json_formatter (~> 0.1)
131+
simplecov-console (0.9.1)
132+
ansi
133+
simplecov
134+
terminal-table
135+
simplecov-html (0.12.3)
136+
simplecov_json_formatter (0.1.4)
137+
solargraph (0.49.0)
138+
backport (~> 1.2)
139+
benchmark
140+
bundler (~> 2.0)
141+
diff-lcs (~> 1.4)
142+
e2mmap
143+
jaro_winkler (~> 1.5)
144+
kramdown (~> 2.3)
145+
kramdown-parser-gfm (~> 1.1)
146+
parser (~> 3.0)
147+
rbs (~> 2.0)
148+
reverse_markdown (~> 2.0)
149+
rubocop (~> 1.38)
150+
thor (~> 1.0)
151+
tilt (~> 2.0)
152+
yard (~> 0.9, >= 0.9.24)
153+
sys-uname (1.2.3)
154+
ffi (~> 1.1)
155+
systemu (2.6.5)
156+
terminal-table (3.0.2)
157+
unicode-display_width (>= 1.1.1, < 3)
158+
thor (1.2.2)
159+
tilt (2.1.0)
160+
unicode-display_width (2.4.2)
161+
uuid (2.3.9)
162+
macaddr (~> 1.0)
163+
yard (0.9.34)
164+
165+
PLATFORMS
166+
arm64-darwin-22
167+
168+
DEPENDENCIES
169+
allure-cucumber!
170+
allure-rspec!
171+
allure-ruby-commons!
172+
climate_control (~> 1.2.0)
173+
colorize (~> 0.8.1)
174+
debug (~> 1.8)
175+
oj (~> 3.14)
176+
rake (~> 13.0.6)
177+
rspec (~> 3.12.0)
178+
rubocop (~> 1.52.0)
179+
rubocop-performance (~> 1.18.0)
180+
semver2 (~> 3.4)
181+
simplecov (~> 0.22.0)
182+
simplecov-console (~> 0.9.1)
183+
solargraph (~> 0.49.0)
184+
185+
BUNDLED WITH
186+
2.4.12

0 commit comments

Comments
 (0)