git-digger 2.0.1 → 2.1.0

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.
package/README.md CHANGED
@@ -155,17 +155,7 @@ digger current-contribution-data $(pwd) --format=json
155
155
  }
156
156
  ```
157
157
 
158
- **Fields:**
159
- - `status`: Always `"success"` for valid operations
160
- - `data`: The contribution data object (see [ContributionDataJson.kt](../digger-json/src/commonMain/kotlin/com/zegreatrob/tools/digger/json/ContributionDataJson.kt) for full schema)
161
- - `data.storyId`: Story identifier parsed from commit messages
162
- - `data.contributors`: Array of contributor objects with email and name
163
- - `data.commits`: Array of commit objects
164
- - `data.semver`: Semantic version type (`"Major"`, `"Minor"`, `"Patch"`, `"None"`)
165
- - `data.label`: Repository or project label
166
- - `data.firstCommitDateTime`: ISO 8601 timestamp of first commit
167
- - `data.lastCommitDateTime`: ISO 8601 timestamp of last commit
168
- - `data.ease`: Joy/ease score (1-5) parsed from commit messages
158
+ The `data` field contains the contribution data object. See [ContributionDataJson.kt](../digger-json/src/commonMain/kotlin/com/zegreatrob/tools/digger/json/ContributionDataJson.kt) for the complete schema, or use `current-contribution-data --help` for field descriptions.
169
159
 
170
160
  ### AllContributionData JSON Mode
171
161
 
@@ -197,7 +187,7 @@ digger all-contribution-data $(pwd) --format=json
197
187
  }
198
188
  ```
199
189
 
200
- The `data` field contains an array of contribution data objects, one for each contribution period.
190
+ The `data` field contains an array of contribution data objects, one for each contribution period. Use `all-contribution-data --help` for more details.
201
191
 
202
192
  ### CI Integration Examples
203
193
 
@@ -65,7 +65,7 @@
65
65
  initMetadataForClass(OutputFormat, 'OutputFormat', VOID, Enum);
66
66
  //endregion
67
67
  function Versions() {
68
- this.a2i_1 = '2.0.1';
68
+ this.a2i_1 = '2.1.0';
69
69
  }
70
70
  var Versions_instance;
71
71
  function Versions_getInstance() {
@@ -37,6 +37,11 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
+ if (typeof Math.log2 === 'undefined') {
41
+ Math.log2 = function (x) {
42
+ return Math.log(x) * Math.LOG2E;
43
+ };
44
+ }
40
45
  if (typeof Math.clz32 === 'undefined') {
41
46
  Math.clz32 = function (log, LN2) {
42
47
  return function (x) {
@@ -48,10 +53,11 @@ if (typeof Math.clz32 === 'undefined') {
48
53
  };
49
54
  }(Math.log, Math.LN2);
50
55
  }
51
- if (typeof Math.log2 === 'undefined') {
52
- Math.log2 = function (x) {
53
- return Math.log(x) * Math.LOG2E;
54
- };
56
+ if (typeof String.prototype.startsWith === 'undefined') {
57
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
58
+ position = position || 0;
59
+ return this.lastIndexOf(searchString, position) === position;
60
+ }});
55
61
  }
56
62
  if (typeof String.prototype.endsWith === 'undefined') {
57
63
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
@@ -64,12 +70,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
64
70
  return lastIndex !== -1 && lastIndex === position;
65
71
  }});
66
72
  }
67
- if (typeof String.prototype.startsWith === 'undefined') {
68
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
- position = position || 0;
70
- return this.lastIndexOf(searchString, position) === position;
71
- }});
72
- }
73
73
  //endregion
74
74
  (function (_) {
75
75
  'use strict';
@@ -95,8 +95,8 @@ if (typeof String.prototype.startsWith === 'undefined') {
95
95
  initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
96
96
  initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
97
97
  initMetadataForInterface(MutableIterable, 'MutableIterable');
98
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
99
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
98
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
99
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
100
100
  initMetadataForCompanion(Companion_0);
101
101
  initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
102
102
  initMetadataForCompanion(Companion_1);
@@ -114,7 +114,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
114
114
  initMetadataForInterface(Comparator, 'Comparator');
115
115
  initMetadataForObject(Unit, 'Unit');
116
116
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
117
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [MutableIterable, Collection]);
117
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
118
118
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
119
119
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
120
120
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtMutableList]);
@@ -127,7 +127,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
127
127
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtMutableList, RandomAccess]);
128
128
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMutableMap]);
129
129
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet]);
130
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection]);
130
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
131
131
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet]);
132
132
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
133
133
  initMetadataForClass(HashMapKeysDefault$iterator$1);