evva 0.8.1 → 0.8.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 +4 -4
- data/Gemfile.lock +1 -1
- data/changelog.md +8 -0
- data/lib/evva/google_sheet.rb +2 -2
- data/lib/evva/templates/swift/people_properties.swift +1 -1
- data/lib/evva/version.rb +1 -1
- data/spec/fixtures/sample_public_events.csv +1 -0
- data/spec/lib/evva/google_sheet_spec.rb +1 -0
- data/spec/lib/evva/swift_generator_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: adf6c749578c3874989cbfbc7be1e6e2958061fa22490ad06e653912133b7963
|
|
4
|
+
data.tar.gz: a3020ae83cc629223a12d7b6dcce5a624f89700ed4bb31e6225c288577d2e664
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e97b4a3f4847123dd28086036b45a5801040e85b4f67a745889b9ee463b5af1348c96e28537fa11b691b2ee9e556e09b5a87a5f05fb19f589c43159a94c23baa
|
|
7
|
+
data.tar.gz: 73c81eb216c97823cbf1e8dd3cb1e1c37aee098c43c1d98396128fcd6411cf0cf80982845a9698e56eed7ad6a7a9898a3c5d219a6001d462a9ae8e0da2ceecf2
|
data/Gemfile.lock
CHANGED
data/changelog.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [0.8.3] - 2026-05-27
|
|
4
|
+
|
|
5
|
+
- Add explicit `as Any` cast for optional people property values to silence Swift compiler warning
|
|
6
|
+
|
|
7
|
+
## [0.8.2] - 2026-05-26
|
|
8
|
+
|
|
9
|
+
- Strip whitespace from property names and types when parsing CSV, fixing double spaces in generated Swift code
|
|
10
|
+
|
|
3
11
|
## [0.8.1] - 2026-05-26
|
|
4
12
|
|
|
5
13
|
- Fix missing optional chaining for Swift people properties (`value?.rawValue` instead of `value.rawValue`)
|
data/lib/evva/google_sheet.rb
CHANGED
|
@@ -101,8 +101,8 @@ module Evva
|
|
|
101
101
|
unless property_array.nil? || property_array.empty?
|
|
102
102
|
property_array.split(",").each do |prop|
|
|
103
103
|
split_prop = prop.split(":")
|
|
104
|
-
prop_name = split_prop[0].to_sym
|
|
105
|
-
prop_type = split_prop[1].to_s
|
|
104
|
+
prop_name = split_prop[0].strip.to_sym
|
|
105
|
+
prop_type = split_prop[1].to_s.strip
|
|
106
106
|
h[prop_name] = prop_type
|
|
107
107
|
end
|
|
108
108
|
end
|
|
@@ -40,7 +40,7 @@ enum Property {
|
|
|
40
40
|
<%- properties.each_with_index do |p, index| -%>
|
|
41
41
|
case let .<%= p[:case_name] %>(value):
|
|
42
42
|
return PropertyData(type: .<%= p[:case_name] %>,
|
|
43
|
-
value: value<% if p[:is_special_property] %><%= "?" if p[:is_optional] %>.rawValue<% end %>)
|
|
43
|
+
value: value<% if p[:is_special_property] %><%= "?" if p[:is_optional] %>.rawValue<% end %><%= " as Any" if p[:is_optional] %>)
|
|
44
44
|
<%- unless index == properties.count - 1 -%>
|
|
45
45
|
|
|
46
46
|
<%- end -%>
|
data/lib/evva/version.rb
CHANGED
|
@@ -2,3 +2,4 @@ Event Name,Event Properties,Event Destination
|
|
|
2
2
|
cp_page_view,"course_id:Long,course_name:String","firebase,custom destination"
|
|
3
3
|
nav_feed_tap,,
|
|
4
4
|
cp_view_scorecard,"course_id:Long,course_name:String","custom destination"
|
|
5
|
+
side_game_delete,"fromScreen: SideGameFromScreen,round_group_creation_token:String",firebase
|
|
@@ -26,6 +26,7 @@ describe Evva::GoogleSheet do
|
|
|
26
26
|
Evva::AnalyticsEvent.new("cp_page_view", { course_id: "Long", course_name: "String" }, ["firebase", "custom destination"]),
|
|
27
27
|
Evva::AnalyticsEvent.new("nav_feed_tap", {}, []),
|
|
28
28
|
Evva::AnalyticsEvent.new("cp_view_scorecard", { course_id: "Long", course_name: "String" }, ["custom destination"]),
|
|
29
|
+
Evva::AnalyticsEvent.new("side_game_delete", { fromScreen: "SideGameFromScreen", round_group_creation_token: "String" }, ["firebase"]),
|
|
29
30
|
]
|
|
30
31
|
expect(events).to eq(expected)
|
|
31
32
|
end
|
|
@@ -213,7 +213,7 @@ extension Analytics {
|
|
|
213
213
|
|
|
214
214
|
case let .reverseTrialType(value):
|
|
215
215
|
return PropertyData(type: .reverseTrialType,
|
|
216
|
-
value: value?.rawValue)
|
|
216
|
+
value: value?.rawValue as Any)
|
|
217
217
|
|
|
218
218
|
case let .numberOfTimesItHappened(value):
|
|
219
219
|
return PropertyData(type: .numberOfTimesItHappened,
|