Skip to content

Commit ccb2218

Browse files
Merge pull request #7 from orbit-love/agent
User Agent
2 parents a6eb007 + cb981fd commit ccb2218

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/linkedin_orbit.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require "zeitwerk"
4+
require_relative "linkedin_orbit/version"
45

56
module LinkedinOrbit
67
loader = Zeitwerk::Loader.new

lib/linkedin_orbit/interactions/comment.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def after_initialize!
2525
request["Accept"] = "application/json"
2626
request["Content-Type"] = "application/json"
2727
request["Authorization"] = "Bearer #{@orbit_api_key}"
28+
request["User-Agent"] = "community-ruby-linkedin-orbit/#{LinkedinOrbit::VERSION}"
2829

2930
request.body = construct_body.to_json
3031

lib/linkedin_orbit/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module LinkedinOrbit
4-
VERSION = "0.1.1"
4+
VERSION = "0.1.2"
55
end

0 commit comments

Comments
 (0)