ohloh_scm 4.0.2 → 4.0.3

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: 5f538e2a92d3ffd83e0aa764ee8bc326d052f5a6dcb506f43161fb98caf47da1
4
- data.tar.gz: 4cbefaed2f73fc9df835b2ed99ac09aae1bda3ddbae8beaafea543517ce578fa
3
+ metadata.gz: a1ca59765071c0c0a2cf530cf16ca2627df5640032e0c18337931cbc1da8d575
4
+ data.tar.gz: f757ad5457b7ce6c8a275832aca6232e9ee05071b832a60b59f89b7854751e02
5
5
  SHA512:
6
- metadata.gz: cac9e0147efe5bb98038fa0b957b8dae365af35349075046b32345bc448afdbb7047233fa36da9b85eb3e9a38a0213acb04273535c4dd9f72280f84a0c8dce8c
7
- data.tar.gz: 7658681a1a5cbe76e3cf29dc712313affb063cdc6aaf99330fee177a8b91039bf446b0a421425b3cffa9ec21b84000c0a940dd3777a07a3914ca6f352abd9755
6
+ metadata.gz: eac6a615f1d814a04854f4ceaa9a2779ec4a0bbb8fe7a1090045e8b6295b1209867e5589eccf9a1930f7a3adb5c64684a8bfedc80cef97ca4f6231f9da181fdf
7
+ data.tar.gz: 2182cd0427f04297e7969ace2f727994ee2ded5dfeeab72d0f37070afafd0a2f620f3cfc8acc68bdf6f439127bdb766c909987fb0bf86e9dd6fa2b696f11a67a
@@ -58,9 +58,15 @@ module OhlohScm
58
58
  # For OpenHub, this is fine because OpenHub ignores merge diffs anyway.
59
59
  previous = nil
60
60
  safe_open_log_file(opts) do |io|
61
- OhlohScm::GitParser.parse(io) do |e|
62
- yield fixup_null_merge(e) unless previous && previous.token == e.token
63
- previous = e
61
+ if ENV['EXPENSIVE_COMMIT_COUNT'] && commit_count(opts) > ENV['EXPENSIVE_COMMIT_COUNT'].to_i
62
+ io.each do |commit_sha|
63
+ yield verbose_commit(commit_sha.chomp)
64
+ end
65
+ else
66
+ OhlohScm::GitParser.parse(io) do |e|
67
+ yield fixup_null_merge(e) unless previous && previous.token == e.token
68
+ previous = e
69
+ end
64
70
  end
65
71
  end
66
72
  end
@@ -177,8 +183,13 @@ module OhlohScm
177
183
  end
178
184
 
179
185
  def open_log_file(opts)
180
- run "#{rev_list_command(opts)} | xargs -n 1 #{OhlohScm::GitParser.whatchanged}"\
181
- " | #{string_encoder_path} > #{log_filename}"
186
+ if ENV['EXPENSIVE_COMMIT_COUNT'] && commit_count(opts) > ENV['EXPENSIVE_COMMIT_COUNT'].to_i
187
+ cmd = "#{rev_list_command(opts)} > #{log_filename}"
188
+ else
189
+ cmd = "#{rev_list_command(opts)} | xargs -n 1 #{OhlohScm::GitParser.whatchanged}"\
190
+ " | #{string_encoder_path} > #{log_filename}"
191
+ end
192
+ run(cmd)
182
193
  File.open(log_filename, 'r') { |io| yield io }
183
194
  ensure
184
195
  File.delete(log_filename) if File.exist?(log_filename)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OhlohScm
4
4
  module Version
5
- STRING = '4.0.2'
5
+ STRING = '4.0.3'
6
6
  GIT = '2.34.1'
7
7
  SVN = '1.14.1'
8
8
  CVSNT = '1.12.13'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohloh_scm
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenHub Team at Synopsys
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2024-01-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  The OpenHub source control management library for \