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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88d2c921b1cdccea3548414fd9d7f95fb0a4d99f
4
- data.tar.gz: 8167ab967256d9f487cc29ba9b937f7c96839793
3
+ metadata.gz: 29cd0e26ad5127ff3cc539fbc5067e54aed04dec
4
+ data.tar.gz: 27d38a306c512d50e6d9fa5c6596183b6def5fc4
5
5
  SHA512:
6
- metadata.gz: 8f4acbdd445e76ca520a1b821645ead4c1be6ddc3bc0f3e385b75cadbf80162911daa9b02887a6f08020c07e84edc095d94ce0ae1c670b3de8dc11c2c83f76e7
7
- data.tar.gz: 07fe6c72ca3be46ed0b85cb32b7b740ddbed80dc65407ddf3e2e49606e03a90290db3800f491b79bc776fbd0cdf64f5ef21b1b49149774f99d28d7f03f14a3de
6
+ metadata.gz: 579d13012057cca600cd4ce2620409e4970248129410ea3af6db07799499c753fb61ea2bcd2b0b98e89f3c921a2c0f1d3196de68c520139cd5caa6351d7eec4e
7
+ data.tar.gz: 86ee3522f8c0ca41088d06ec9fd67543d2721f35c09b3f19d601060f186a92a9d27744a7f8547aae91dc9f2d150a6edea8a2151a70ff7cbac0992c6d819fd104
@@ -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
@@ -1,3 +1,3 @@
1
1
  class PostHog
2
- VERSION = '1.0.0.pre'
2
+ VERSION = '1.0.1'
3
3
  end
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.0.pre
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: 1.3.1
163
+ version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
166
  rubygems_version: 2.5.2.3