parse_packwerk 0.25.0 → 0.26.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1bab5f526c110cf176ae7472bd650b1a9ddd9beb655220d27675b0412881d3d
4
- data.tar.gz: 1ef7373ced7eb2d72296f9f6e0114b733d5520fe1f4185a7835979443251aa49
3
+ metadata.gz: e8a164633cf3c023e6e03baf4c10b26d90e2a3368608634f3fcf6461c0481c03
4
+ data.tar.gz: 0665b72ca8fb6b2fe68260237fa538e51e6438c088fcd6f27effca17f9f8893e
5
5
  SHA512:
6
- metadata.gz: 3f5963ef25ce9b946284fd510fd142c96cc2164cd18dab9363414fbec98fb7cdd082dc49e93915e1b63f06cc82e428296f998059e5808982a014430f64aa76f3
7
- data.tar.gz: 56b233e7d7adf272b161825f85828f5f148c60684ae71578a2aa0395dc3975accfb53fdd28813b92a6bb7b5f8e275db3d2bf11664c23888505a9db15e49c2740
6
+ metadata.gz: c296d5665936ab7c1a1ecbdfe227c08eeb1beccb5ee404fc6e484bc4e0e52f28c5e07a9ab83f60ee652c1adab3a3aca2de42eb01551f6633b07a8a22e2778b25
7
+ data.tar.gz: f2e03bb5dceb25ee141dc31985f4adcc58f93110bf3ae44e0e46e4e9c9531e06fb39b50a85e838e981ce5716d7094ede734179a1f1851d6c3baff4b89506721d
@@ -37,7 +37,13 @@ module ParsePackwerk
37
37
  Array(specified_exclude)
38
38
  end
39
39
 
40
- excludes.push Bundler.bundle_path.join('**').to_s
40
+ begin
41
+ excludes.push Bundler.bundle_path.join('**').to_s
42
+ rescue Bundler::GemfileNotFound
43
+ # Optionally, add bundle to the path. Skip when there isn't a Gemfile.
44
+ end
45
+
46
+ excludes
41
47
  end
42
48
 
43
49
  sig { params(config_hash: T::Hash[T.untyped, T.untyped]).returns(T::Array[String]) }
@@ -94,8 +94,6 @@ module ParsePackwerk
94
94
  merged_config = merged_config.to_a.sort_by { |key, _value| T.unsafe(sorted_keys).index(key) || 1000 }.to_h
95
95
 
96
96
  raw_yaml = YAML.dump(merged_config)
97
- # Add indentation for dependencies
98
- raw_yaml.gsub!(/^- /, ' - ')
99
97
  stylized_yaml = raw_yaml.gsub("---\n", '')
100
98
  file.write(stylized_yaml)
101
99
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_packwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-05-17 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bigdecimal
@@ -188,7 +187,6 @@ metadata:
188
187
  source_code_uri: https://github.com/rubyatscale/parse_packwerk
189
188
  changelog_uri: https://github.com/rubyatscale/parse_packwerk/releases
190
189
  allowed_push_host: https://rubygems.org
191
- post_install_message:
192
190
  rdoc_options: []
193
191
  require_paths:
194
192
  - lib
@@ -203,8 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
201
  - !ruby/object:Gem::Version
204
202
  version: '0'
205
203
  requirements: []
206
- rubygems_version: 3.5.9
207
- signing_key:
204
+ rubygems_version: 3.6.7
208
205
  specification_version: 4
209
206
  summary: A low-dependency gem for parsing and writing packwerk YML files
210
207
  test_files: []