feature_map 1.2.1 → 1.2.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.
@@ -123,15 +123,15 @@ module FeatureMap
123
123
  params(
124
124
  unit_path: String,
125
125
  integration_path: String,
126
- regression_path: String,
127
- regression_assignments_path: String
126
+ regression_path: T.nilable(String),
127
+ regression_assignments_path: T.nilable(String)
128
128
  ).void
129
129
  end
130
130
  def self.generate_test_pyramid!(unit_path, integration_path, regression_path, regression_assignments_path)
131
131
  unit_examples = JSON.parse(File.read(unit_path))&.fetch('examples')
132
132
  integration_examples = JSON.parse(File.read(integration_path))&.fetch('examples')
133
- regression_examples = JSON.parse(File.read(regression_path))&.fetch('examples')
134
- regression_assignments = YAML.load_file(regression_assignments_path)
133
+ regression_examples = regression_path ? JSON.parse(File.read(regression_path))&.fetch('examples') : []
134
+ regression_assignments = regression_assignments_path ? YAML.load_file(regression_assignments_path) : {}
135
135
  TestPyramidFile.write!(unit_examples, integration_examples, regression_examples, regression_assignments)
136
136
  end
137
137
 
data/lib/feature_map.rb CHANGED
@@ -122,8 +122,8 @@ module FeatureMap
122
122
  params(
123
123
  unit_path: String,
124
124
  integration_path: String,
125
- regression_path: String,
126
- regression_assignments_path: String
125
+ regression_path: T.nilable(String),
126
+ regression_assignments_path: T.nilable(String)
127
127
  ).void
128
128
  end
129
129
  def generate_test_pyramid!(unit_path, integration_path, regression_path, regression_assignments_path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_map
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beyond Finance
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-24 00:00:00.000000000 Z
11
+ date: 2025-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_ownership