posthog-ruby 1.0.0.pre → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/posthog/field_parser.rb +9 -4
- data/lib/posthog/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29cd0e26ad5127ff3cc539fbc5067e54aed04dec
|
4
|
+
data.tar.gz: 27d38a306c512d50e6d9fa5c6596183b6def5fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 579d13012057cca600cd4ce2620409e4970248129410ea3af6db07799499c753fb61ea2bcd2b0b98e89f3c921a2c0f1d3196de68c520139cd5caa6351d7eec4e
|
7
|
+
data.tar.gz: 86ee3522f8c0ca41088d06ec9fd67543d2721f35c09b3f19d601060f186a92a9d27744a7f8547aae91dc9f2d150a6edea8a2151a70ff7cbac0992c6d819fd104
|
data/lib/posthog/field_parser.rb
CHANGED
@@ -21,7 +21,7 @@ class PostHog
|
|
21
21
|
common.merge({
|
22
22
|
:type => 'capture',
|
23
23
|
:event => event.to_s,
|
24
|
-
:properties => properties
|
24
|
+
:properties => properties.merge(common[:properties] || {})
|
25
25
|
})
|
26
26
|
end
|
27
27
|
|
@@ -39,7 +39,8 @@ class PostHog
|
|
39
39
|
common.merge({
|
40
40
|
:type => 'identify',
|
41
41
|
:event => '$identify',
|
42
|
-
:'$set' => properties
|
42
|
+
:'$set' => properties,
|
43
|
+
:properties => properties.merge(common[:properties] || {})
|
43
44
|
})
|
44
45
|
end
|
45
46
|
|
@@ -61,7 +62,7 @@ class PostHog
|
|
61
62
|
:properties => {
|
62
63
|
:distinct_id => distinct_id,
|
63
64
|
:alias => alias_field,
|
64
|
-
}
|
65
|
+
}.merge(common[:properties] || {})
|
65
66
|
})
|
66
67
|
end
|
67
68
|
|
@@ -85,7 +86,11 @@ class PostHog
|
|
85
86
|
:library => 'posthog-ruby',
|
86
87
|
:library_version => PostHog::VERSION.to_s,
|
87
88
|
:messageId => message_id,
|
88
|
-
:distinct_id => distinct_id
|
89
|
+
:distinct_id => distinct_id,
|
90
|
+
:properties => {
|
91
|
+
"$lib" => 'posthog-ruby',
|
92
|
+
"$lib_version" => PostHog::VERSION.to_s
|
93
|
+
}
|
89
94
|
}
|
90
95
|
parsed
|
91
96
|
end
|
data/lib/posthog/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posthog-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -158,9 +158,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '2.0'
|
159
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- - "
|
161
|
+
- - ">="
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
163
|
+
version: '0'
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
166
|
rubygems_version: 2.5.2.3
|