Skip to content

Commit 9753a2f

Browse files
authored
bump to 0.10.2 to fix current_version (#30)
* bump to 0.10.1 to fix current_version * revert ruby bump for now * update specs * cops
1 parent f957a65 commit 9753a2f

File tree

6 files changed

+127
-5
lines changed

6 files changed

+127
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/)
55

6+
## [0.10.2] - 2026-02-20
7+
8+
### Fixed
9+
- Fixed version sorting to use semantic versioning instead of lexicographic ordering (`Gem::Version`), so that e.g. `0.10` correctly sorts above `0.9`
10+
611
## [0.10.1] - 2026-02-20
712

813
### Fixed

lib/bmt.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def methodology_keys(version: current_version)
5151
# in the repo.
5252
# The returned list is in order with the current version first.
5353
def versions
54-
@versions ||= json_dir_names.sort.reverse!
54+
# START Contributions by Cursor.
55+
@versions ||= json_dir_names.sort_by { |v| Gem::Version.new(v) }.reverse!
56+
# END Cursor.
5557
end
5658

5759
def methodology_json(key, version: current_version)
@@ -67,6 +69,8 @@ def json_dir_names
6769
DATA_DIR.entries
6870
.map(&:basename)
6971
.map(&:to_s)
70-
.grep(/^[0-9]+\.[0-9]/).sort
72+
# START Contributions by Cursor.
73+
.grep(/^[0-9]+\.[0-9]/)
74+
# END Cursor.
7175
end
7276
end

lib/bmt/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Bmt
22
# START Contributions by Cursor.
3-
VERSION = '0.10.1'.freeze
3+
VERSION = '0.10.2'.freeze
44
# END Cursor.
55
end

spec/bmt_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
describe '#versions' do
55
subject { described_class.versions }
66

7+
# START Contributions by Cursor.
78
it 'return all of the versions in the filesystem in reverse semver order' do
8-
expect(subject).to eq(['2.1', '1.0'])
9+
expect(subject).to eq(['10.0', '2.1', '1.0'])
910
end
11+
# END Cursor.
1012
end
1113

1214
describe '#current_version' do
1315
subject { described_class.current_version }
1416

1517
it 'return the most recent version number for the vrt' do
16-
expect(subject).to eq('2.1')
18+
expect(subject).to eq('10.0')
1719
end
1820
end
1921

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"metadata": {
3+
"title": "The Outback Animal Checklist",
4+
"release_date": "2021-05-31T00:00:00+00:00",
5+
"description": "The right way to make sure you have the right Australian animals",
6+
"vrt_version": "10.0.1"
7+
},
8+
"content": {
9+
"steps": [
10+
{
11+
"key": "koala",
12+
"title": "Check that you have a Koala",
13+
"description": "# Does it look like one?\nIt is easy to find out.\n",
14+
"type": "checklist",
15+
"items": [
16+
{
17+
"key": "marsupial",
18+
"title": "Is it a marsupial?",
19+
"caption": "Marsupials are obviously mammalian and have a pouch on their underside",
20+
"description": "Check for the pouch",
21+
"tools": "Eyes",
22+
"vrt_category": "insecure_data_storage"
23+
},
24+
{
25+
"key": "diet",
26+
"title": "Make sure it eats eucalyptus",
27+
"caption": "Almost no other animal can eat eucaluptus leaves, so this is a good diagnostic",
28+
"description": "Take some eucalyptus branches, remove some leaves and try to feed the alleged koala",
29+
"tools": "Leaves and Branches"
30+
},
31+
{
32+
"key": "behavior",
33+
"title": "Does it sleep the whole day?",
34+
"caption": "Usually sleeps on trees",
35+
"description": "The alleged Koala should sleep the whole day if provided a tree.",
36+
"tools": "Trees, Dawn"
37+
}
38+
]
39+
},
40+
{
41+
"key": "kangaroo",
42+
"title": "Ensure you have a kangaroo",
43+
"description": "Does it look like one?",
44+
"type": "checklist",
45+
"items": [
46+
{
47+
"key": "marsupial",
48+
"title": "Is it a marsupial?",
49+
"description": "Marsupials are obviously mammalian but possess a pouch on their underside"
50+
},
51+
{
52+
"key": "tail",
53+
"title": "Does it have a long tail?",
54+
"description": "Kangaroos use their thick tail as a balance when jumping, and can use it as a support to rear up on when kicking"
55+
},
56+
{
57+
"key": "jump",
58+
"title": "Does it jump around?",
59+
"description": "Over very short distances kangaroos will use their forepaws to balance on the ground and swing their legs forward. For longer distance movement, their jumping locomotion is unmistakeable."
60+
}
61+
]
62+
},
63+
{
64+
"key": "executive_summary",
65+
"title": "Executive summary",
66+
"description": "The executive summary should be written with a high-level view of both risk and business impact. It should be concise and clear, therefore it is important to use plain English. This ensures that non-technical readers can gain insight into security concerns outlined in your report.",
67+
"type": "executive_summary"
68+
}
69+
]
70+
}
71+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"metadata": {
3+
"title": "Bugcrowd Website Testing",
4+
"release_date": "2021-06-15T00:00:00+00:00",
5+
"description": "Bugcrowd Website Testing methodology",
6+
"vrt_version": "10.0.0"
7+
},
8+
"content": {
9+
"steps": [
10+
{
11+
"key": "information",
12+
"title": "Information gathering",
13+
"description": "",
14+
"type": "checklist",
15+
"items": [
16+
{
17+
"key": "search_engine_discovery_and_reconnaissance",
18+
"title": "Conduct Search Engine Discovery and Reconnaissance for Information Leakage",
19+
"description": "OTG-INFO-001, WAHHM - Recon and Analysis",
20+
"vrt_category": "sensitive_data_exposure"
21+
}
22+
]
23+
},
24+
{
25+
"key": "config_and_deploy_management",
26+
"title": "Configuration and Deploy Management Testing",
27+
"description": "",
28+
"type": "checklist",
29+
"items": [
30+
{
31+
"key": "network_and_infrastructure",
32+
"title": "Test Network/Infrastructure Configuration",
33+
"description": "OTG-CONFIG-001, WAHHM - Recon and Analysis, Assess Application Hosting",
34+
"vrt_category": "server_security_misconfiguration"
35+
}
36+
]
37+
}
38+
]
39+
}
40+
}

0 commit comments

Comments
 (0)