gitlab-sdk 0.2.1 → 0.2.3

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
  SHA256:
3
- metadata.gz: f7b6fd23071b9f55fa712ae849d2091563108bc5fcff52e17699ca6e2247ab2b
4
- data.tar.gz: 07a37a862af1807ee7b25a2fd25eef3d991d2b54c1cf288440b55416723f7e17
3
+ metadata.gz: 11dac83656bfe8df2dfe90b36e3a9f2adeedfe86af5c8e92d546eb9e5767c8b7
4
+ data.tar.gz: e0ced41b6c9d81c1fbef2b3a1ec110bfa5839bfb4325129f77aaf958368630a9
5
5
  SHA512:
6
- metadata.gz: 59c75ccb7af6e55324536e752f934f37fc894b68bddcb7216061b28ae5736cc8e9af5db092d082e550db1a45430ecd9edd99382fa8ccc1fe1054e8310286144c
7
- data.tar.gz: 250d4d34a8ab534da48e318bcd3149746735f8cb090bad8deabcac65445f3cace997cbc44abed17ffff7dfa2ac745d2da5986cc99661f20de9ef3617ca11211a
6
+ metadata.gz: 24d117ad6d13a7fe33bb24839ca26abc42dc5957c9d4e250b3c9fdac131b003d9a90c5109c2e1119045a0625129af66b1e74f12836a0a065088a76c66659e5d4
7
+ data.tar.gz: 679a40115a364cb253ed68a6261d79acdd4cf24beb6006526a9b5fc07b040b46d9db6bb7d03e72fa8d41557e450bd5f6fa1cb1abe3081e10102903c65cfa7f50
data/Gemfile CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in gl-application-sdk-rb.gemspec
5
+ # Specify your gem's dependencies in gitlab-sdk.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-sdk (0.2.1)
4
+ gitlab-sdk (0.2.2)
5
5
  activesupport (>= 5.2.0)
6
6
  rake (~> 13.0)
7
7
  snowplow-tracker (~> 0.8.0)
data/README.md CHANGED
@@ -22,10 +22,10 @@ client = GitlabSDK::Client.new(app_id: 'YOUR_APP_ID', host: 'YOUR_HOST')
22
22
 
23
23
  ## Client initialization options
24
24
 
25
- | Option | Description |
26
- |:----------------|:------------------------------------------------------------------------------------------------------------------------------------------|
27
- | `app_id` | The ID specified in the GitLab Project Analytics setup guide. It ensures your data is sent to your analytics instance. |
28
- | `host` | The GitLab Project Analytics instance specified in the setup guide. |
25
+ | Option | Description |
26
+ |:----------------|:---------------------------------------------------------------------------------------------------------------------------------------------------|
27
+ | `app_id` | The ID specified in the GitLab Project Analytics setup guide. It ensures your data is sent to your analytics instance. |
28
+ | `host` | The GitLab Project Analytics instance specified in the setup guide. When using a non-standard port, includde it here, e.g. `http://localhost:9091` |
29
29
 
30
30
  ## Methods
31
31
 
@@ -37,10 +37,10 @@ Used to associate a user and their attributes with the session and tracking even
37
37
  client.identify('123abc', { user_name: 'Matthew' })
38
38
  ```
39
39
 
40
- | Property | Type | Description |
41
- |:-----------------|:---------|:------------------------------------------------------------------------------|
42
- | `user_id` | `String` | The ID of the user. |
43
- | `user_attributes` | `Hash` | Optional. The user attributes to add to the session and tracking events. |
40
+ | Property | Type | Description |
41
+ |:-----------------|:----------|:-------------------------------------------------------------------------|
42
+ | `user_id` | `String` | The ID of the user. |
43
+ | `user_attributes` | `Hash` | Optional. The user attributes to add to the session and tracking events. |
44
44
 
45
45
  ### `track`
46
46
 
@@ -53,7 +53,7 @@ client.track(event_name, event_attributes)
53
53
  | Property | Type | Description |
54
54
  |:------------------|:----------|:-----------------------------------------------------------------|
55
55
  | `event_name` | `String` | The name of the event. |
56
- | `event_attributes` | `Hash` | The event attributes to add to the tracked event. |
56
+ | `event_attributes` | `Hash` | The event attributes to add to the tracked event. |
57
57
 
58
58
  ## Developing with the devkit
59
59
 
@@ -66,4 +66,4 @@ To test the gem's functionality, run `bin/console`.
66
66
  To release a new version of the gem:
67
67
 
68
68
  1. Update the version in [lib/gitlab-sdk/version.rb](lib/gitlab-sdk/version.rb).
69
- 2. After merging the MR including the changes, new version of the gem will be uploaded to [RubyGems](https://rubygems.org/gems/gitlab-sdk).
69
+ 1. After the MR with the changes made in the previous step is merged, the new version of the gem is uploaded to [RubyGems](https://rubygems.org/gems/gitlab-sdk).
@@ -53,7 +53,8 @@ module GitlabSDK
53
53
  uri = URI(host)
54
54
  raise HostHasNoSchemeError unless uri.scheme
55
55
 
56
- SnowplowTracker::Emitter.new(endpoint: uri.hostname + uri.path, options: { protocol: uri.scheme })
56
+ endpoint = "#{uri.hostname}:#{uri.port}#{uri.path}"
57
+ SnowplowTracker::Emitter.new(endpoint: endpoint, options: { protocol: uri.scheme })
57
58
  end
58
59
 
59
60
  def set_subject_data
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitlabSDK
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport