evva 0.8.3 → 0.8.4

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: adf6c749578c3874989cbfbc7be1e6e2958061fa22490ad06e653912133b7963
4
- data.tar.gz: a3020ae83cc629223a12d7b6dcce5a624f89700ed4bb31e6225c288577d2e664
3
+ metadata.gz: 56dec7ca4b0272932fdaa87c7bd4149aade2222c08af0ed4fabacb329b2d6958
4
+ data.tar.gz: b7f71e1caac46763ba8dbce226292f37a6e314199615187f57c260db00f9a2b5
5
5
  SHA512:
6
- metadata.gz: e97b4a3f4847123dd28086036b45a5801040e85b4f67a745889b9ee463b5af1348c96e28537fa11b691b2ee9e556e09b5a87a5f05fb19f589c43159a94c23baa
7
- data.tar.gz: 73c81eb216c97823cbf1e8dd3cb1e1c37aee098c43c1d98396128fcd6411cf0cf80982845a9698e56eed7ad6a7a9898a3c5d219a6001d462a9ae8e0da2ceecf2
6
+ metadata.gz: 98350cf623298851cdca3d6908923294b0b33b98618cc8e927f4b1241b127018e9d9abf700219b742ef54812cb909b19e9fa2b0a767f32495b1b28297bcc7754
7
+ data.tar.gz: 88658c1d4a4acf6dd18b32606ca94938b0c6c54013ad973a6215b05d1447585653a59c54f5fc6020108a5cc1fa8a986ae5f142a3ac7dbc79015a4777dbea0f27
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- evva (0.8.2)
4
+ evva (0.8.4)
5
5
  colorize (~> 1.0)
6
6
  csv (>= 3.0)
7
7
  safe_yaml (~> 1.0)
data/changelog.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.8.4] - 2026-06-25
4
+
5
+ - Add trailing commas to all generated Kotlin declarations
6
+
3
7
  ## [0.8.3] - 2026-05-27
4
8
 
5
9
  - Add explicit `as Any` cast for optional people property values to silence Swift compiler warning
@@ -1,5 +1,5 @@
1
1
  enum class <%= class_name %> {
2
2
  <%- destinations.each_with_index do |destination, index| -%>
3
- <%= destination %><%= index == destinations.count - 1 ? "" : "," %>
3
+ <%= destination %>,
4
4
  <%- end -%>
5
5
  }
@@ -1,5 +1,5 @@
1
1
  enum class <%= class_name %>(val key: String) {
2
2
  <%- events.each_with_index do |event, index| -%>
3
- <%= event[:name] %>("<%= event[:value] %>")<%= index == events.count - 1 ? "" : "," %>
3
+ <%= event[:name] %>("<%= event[:value] %>"),
4
4
  <%- end -%>
5
5
  }
@@ -1,7 +1,7 @@
1
1
  sealed class <%= class_name %>(
2
2
  event: <%= enums_class_name %>,
3
3
  val properties: Map<String, Any?>? = null,
4
- val destinations: Array<<%= destinations_class_name %>> = emptyArray()
4
+ val destinations: Array<<%= destinations_class_name %>> = emptyArray(),
5
5
  ) {
6
6
  val name = event.key
7
7
 
@@ -11,7 +11,7 @@ sealed class <%= class_name %>(
11
11
  <%- else -%>
12
12
  data class <%= e[:class_name] %>(
13
13
  <%- e[:properties].each_with_index do |p, index| -%>
14
- <%= "val #{p[:param_name]}: #{p[:type]}" %><% if index < e[:properties].count - 1 %>,<% end %>
14
+ <%= "val #{p[:param_name]}: #{p[:type]}" %>,
15
15
  <%- end -%>
16
16
  ) : <%= class_name %>(
17
17
  <%- end -%>
@@ -19,16 +19,16 @@ sealed class <%= class_name %>(
19
19
  <%- if e[:properties].count > 0 -%>
20
20
  properties = mapOf(
21
21
  <%- e[:properties].each_with_index do |p, index| -%>
22
- "<%= p[:name] %>" to <%= p[:value_fetcher] %><% if index < e[:properties].count - 1 %>,<% end %>
22
+ "<%= p[:name] %>" to <%= p[:value_fetcher] %>,
23
23
  <%- end -%>
24
24
  ),
25
25
  <%- end -%>
26
26
  <%- if e[:destinations].count > 0 -%>
27
27
  destinations = arrayOf(
28
28
  <%- e[:destinations].each_with_index do |d, index| -%>
29
- <%= destinations_class_name %>.<%= d %><% if index < e[:destinations].count - 1 %>,<% end %>
29
+ <%= destinations_class_name %>.<%= d %>,
30
30
  <%- end -%>
31
- )
31
+ ),
32
32
  <%- end -%>
33
33
  )
34
34
  <%- unless index == events.count - 1 -%>
@@ -1,22 +1,22 @@
1
1
  sealed class <%= class_name %>(
2
2
  property: <%= enums_class_name %>,
3
3
  val innerValue: Any,
4
- val destinations: Array<<%= destinations_class_name %>> = emptyArray()
4
+ val destinations: Array<<%= destinations_class_name %>> = emptyArray(),
5
5
  ) {
6
6
  val name = property.key
7
7
 
8
8
  <%- properties.each_with_index do |property, index| -%>
9
9
  data class <%= property[:class_name] %>(
10
- val value: <%= property[:type] %>
10
+ val value: <%= property[:type] %>,
11
11
  ) : <%= class_name %>(
12
12
  property = <%= enums_class_name %>.<%= property[:property_name] %>,
13
13
  innerValue = value<% if property[:is_special_property] %>.key<% end %>,
14
14
  <%- if property[:destinations].count > 0 -%>
15
15
  destinations = arrayOf(
16
16
  <%- property[:destinations].each_with_index do |d, index| -%>
17
- <%= destinations_class_name %>.<%= d %><% if index < property[:destinations].count - 1 %>,<% end %>
17
+ <%= destinations_class_name %>.<%= d %>,
18
18
  <%- end -%>
19
- )
19
+ ),
20
20
  <%- end -%>
21
21
  )
22
22
  <%- unless index == properties.count - 1 -%>
@@ -1,5 +1,5 @@
1
1
  enum class <%= class_name %>(val key: String) {
2
2
  <%- properties.each_with_index do |property, index| -%>
3
- <%= property[:name] %>("<%= property[:value] %>")<%= index == properties.count - 1 ? "" : "," %>
3
+ <%= property[:name] %>("<%= property[:value] %>"),
4
4
  <%- end -%>
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <%- enums.each_with_index do |enum, index| -%>
2
2
  enum class <%= enum[:class_name] %>(val key: String) {
3
3
  <%- enum[:values].each_with_index do |v, index| -%>
4
- <%= v[:name] %>("<%= v[:value] %>")<%= index == enum[:values].count - 1 ? "" : "," %>
4
+ <%= v[:name] %>("<%= v[:value] %>"),
5
5
  <%- end -%>
6
6
  }
7
7
  <%- unless index == enums.count - 1 -%>
data/lib/evva/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Evva
2
- VERSION = "0.8.3".freeze
3
- VERSION_UPDATED_AT = "2026-05-26".freeze
2
+ VERSION = "0.8.4".freeze
3
+ VERSION_UPDATED_AT = "2026-06-25".freeze
4
4
  end
@@ -24,7 +24,7 @@ package com.hole19golf.hole19.analytics
24
24
  sealed class AnalyticsEvent(
25
25
  event: AnalyticsEvents,
26
26
  val properties: Map<String, Any?>? = null,
27
- val destinations: Array<AnalyticsDestinations> = emptyArray()
27
+ val destinations: Array<AnalyticsDestinations> = emptyArray(),
28
28
  ) {
29
29
  val name = event.key
30
30
 
@@ -35,64 +35,64 @@ sealed class AnalyticsEvent(
35
35
  data object CpPageView2 : AnalyticsEvent(
36
36
  event = AnalyticsEvents.CP_PAGE_VIEW_2,
37
37
  destinations = arrayOf(
38
- AnalyticsDestinations.FIREBASE
39
- )
38
+ AnalyticsDestinations.FIREBASE,
39
+ ),
40
40
  )
41
41
 
42
42
  data class CpPageViewA(
43
43
  val courseId: Long,
44
- val courseName: String
44
+ val courseName: String,
45
45
  ) : AnalyticsEvent(
46
46
  event = AnalyticsEvents.CP_PAGE_VIEW_A,
47
47
  properties = mapOf(
48
48
  "course_id" to courseId,
49
- "course_name" to courseName
49
+ "course_name" to courseName,
50
50
  ),
51
51
  destinations = arrayOf(
52
52
  AnalyticsDestinations.FIREBASE,
53
- AnalyticsDestinations.CUSTOM_DESTINATION
54
- )
53
+ AnalyticsDestinations.CUSTOM_DESTINATION,
54
+ ),
55
55
  )
56
56
 
57
57
  data class CpPageViewB(
58
58
  val courseId: Long,
59
59
  val courseName: String,
60
- val fromScreen: CourseProfileSource
60
+ val fromScreen: CourseProfileSource,
61
61
  ) : AnalyticsEvent(
62
62
  event = AnalyticsEvents.CP_PAGE_VIEW_B,
63
63
  properties = mapOf(
64
64
  "course_id" to courseId,
65
65
  "course_name" to courseName,
66
- "from_screen" to fromScreen.key
66
+ "from_screen" to fromScreen.key,
67
67
  ),
68
68
  destinations = arrayOf(
69
- AnalyticsDestinations.FIREBASE
70
- )
69
+ AnalyticsDestinations.FIREBASE,
70
+ ),
71
71
  )
72
72
 
73
73
  data class CpPageViewC(
74
74
  val courseId: Long,
75
75
  val courseName: String,
76
- val fromScreen: CourseProfileSource?
76
+ val fromScreen: CourseProfileSource?,
77
77
  ) : AnalyticsEvent(
78
78
  event = AnalyticsEvents.CP_PAGE_VIEW_C,
79
79
  properties = mapOf(
80
80
  "course_id" to courseId,
81
81
  "course_name" to courseName,
82
- "from_screen" to fromScreen?.key
82
+ "from_screen" to fromScreen?.key,
83
83
  ),
84
84
  )
85
85
 
86
86
  data class CpPageViewD(
87
87
  val courseId: Long?,
88
88
  val courseName: String,
89
- val viewedAt: String
89
+ val viewedAt: String,
90
90
  ) : AnalyticsEvent(
91
91
  event = AnalyticsEvents.CP_PAGE_VIEW_D,
92
92
  properties = mapOf(
93
93
  "course_id" to courseId,
94
94
  "course_name" to courseName,
95
- "viewed_at" to viewedAt
95
+ "viewed_at" to viewedAt,
96
96
  ),
97
97
  )
98
98
  }
@@ -118,12 +118,12 @@ package com.hole19golf.hole19.analytics
118
118
 
119
119
  enum class CourseProfileSource(val key: String) {
120
120
  COURSE_DISCOVERY("course_discovery"),
121
- SYNCED_COURSES("synced_courses")
121
+ SYNCED_COURSES("synced_courses"),
122
122
  }
123
123
 
124
124
  enum class PremiumFrom(val key: String) {
125
125
  COURSE_PROFILE("Course Profile"),
126
- ROUND_SETUP("Round Setup")
126
+ ROUND_SETUP("Round Setup"),
127
127
  }
128
128
  Kotlin
129
129
  }
@@ -146,7 +146,7 @@ package com.hole19golf.hole19.analytics
146
146
 
147
147
  enum class AnalyticsEvents(val key: String) {
148
148
  NAV_FEED_TAP("nav_feed_tap"),
149
- NAV_PERFORMANCE_TAP("nav_performance_tap")
149
+ NAV_PERFORMANCE_TAP("nav_performance_tap"),
150
150
  }
151
151
  Kotlin
152
152
  }
@@ -171,33 +171,33 @@ package com.hole19golf.hole19.analytics
171
171
  sealed class AnalyticsProperty(
172
172
  property: AnalyticsProperties,
173
173
  val innerValue: Any,
174
- val destinations: Array<AnalyticsDestinations> = emptyArray()
174
+ val destinations: Array<AnalyticsDestinations> = emptyArray(),
175
175
  ) {
176
176
  val name = property.key
177
177
 
178
178
  data class RoundsWithWear(
179
- val value: String
179
+ val value: String,
180
180
  ) : AnalyticsProperty(
181
181
  property = AnalyticsProperties.ROUNDS_WITH_WEAR,
182
182
  innerValue = value,
183
183
  )
184
184
 
185
185
  data class LastActiveAt(
186
- val value: String
186
+ val value: String,
187
187
  ) : AnalyticsProperty(
188
188
  property = AnalyticsProperties.LAST_ACTIVE_AT,
189
189
  innerValue = value,
190
190
  )
191
191
 
192
192
  data class WearPlatform(
193
- val value: WearableAppPlatform
193
+ val value: WearableAppPlatform,
194
194
  ) : AnalyticsProperty(
195
195
  property = AnalyticsProperties.WEAR_PLATFORM,
196
196
  innerValue = value.key,
197
197
  destinations = arrayOf(
198
198
  AnalyticsDestinations.FIREBASE,
199
- AnalyticsDestinations.CUSTOM_DESTINATION
200
- )
199
+ AnalyticsDestinations.CUSTOM_DESTINATION,
200
+ ),
201
201
  )
202
202
  }
203
203
  Kotlin
@@ -222,7 +222,7 @@ package com.hole19golf.hole19.analytics
222
222
 
223
223
  enum class AnalyticsProperties(val key: String) {
224
224
  ROUNDS_WITH_WEAR("rounds_with_wear"),
225
- WEAR_PLATFORM("wear_platform")
225
+ WEAR_PLATFORM("wear_platform"),
226
226
  }
227
227
  Kotlin
228
228
  }
@@ -245,7 +245,7 @@ package com.hole19golf.hole19.analytics
245
245
 
246
246
  enum class AnalyticsDestinations {
247
247
  FIREBASE,
248
- WHATEVER_YOU_WANT_REALLY
248
+ WHATEVER_YOU_WANT_REALLY,
249
249
  }
250
250
  Kotlin
251
251
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Andrade
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2026-05-26 00:00:00.000000000 Z
13
+ date: 2026-06-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colorize