Skip to content

Commit a6eb007

Browse files
Merge pull request #6 from orbit-love/fix-cli
Various small fixes and improvements
2 parents c136ffb + ff57c59 commit a6eb007

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
linkedin_orbit (0.0.2)
4+
linkedin_orbit (0.1.1)
55
dotenv (~> 2.7)
66
http (~> 4.4)
77
json (~> 2.5)

lib/linkedin_orbit/interactions/comment.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def construct_body
3737
{
3838
activity: {
3939
activity_type: "linkedin:comment",
40+
tags: ["channel:linkedin"],
4041
title: "Commented on LinkedIn Post",
4142
description: construct_description,
4243
occurred_at: Time.at(@comment["created"]["time"] / 1000).utc,

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.0"
4+
VERSION = "0.1.1"
55
end

scripts/check_comments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4-
require "dev_orbit"
4+
require "linkedin_orbit"
55
require "thor"
66

77
module LinkedinOrbit

spec/interactions/comment_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
stub_request(:post, "https://app.orbit.love/api/v1/1234/activities")
3333
.with(
3434
headers: { 'Authorization' => "Bearer 12345", 'Content-Type' => 'application/json' },
35-
body: "{\"activity\":{\"activity_type\":\"linkedin:comment\",\"title\":\"Commented on LinkedIn Post\",\"description\":\"LinkedIn post: \\\"Sample Title...\\\"\\n\\n\\nComment:\\n\\n\\n\\\"Sample Text\\\"\\n\",\"occurred_at\":\"2016-03-02 23:00:00 UTC\",\"key\":\"12345\",\"link\":\"https://www.linkedin.com/feed/update/urn:li:activity:6793941564394651648\",\"member\":{\"name\":\"John Smith\"}},\"identity\":{\"source\":\"linkedin\",\"name\":\"John Smith\",\"uid\":\"1234567\"}}"
35+
body: "{\"activity\":{\"activity_type\":\"linkedin:comment\",\"tags\":[\"channel:linkedin\"],\"title\":\"Commented on LinkedIn Post\",\"description\":\"LinkedIn post: \\\"Sample Title...\\\"\\n\\n\\nComment:\\n\\n\\n\\\"Sample Text\\\"\\n\",\"occurred_at\":\"2016-03-02 23:00:00 UTC\",\"key\":\"12345\",\"link\":\"https://www.linkedin.com/feed/update/urn:li:activity:6793941564394651648\",\"member\":{\"name\":\"John Smith\"}},\"identity\":{\"source\":\"linkedin\",\"name\":\"John Smith\",\"uid\":\"1234567\"}}"
3636
)
3737
.to_return(
3838
status: 200,

0 commit comments

Comments
 (0)