Skip to content

Commit

Permalink
Merge pull request #6 from orbit-love/fix-cli
Browse files Browse the repository at this point in the history
Various small fixes and improvements
  • Loading branch information
hummusonrails authored May 11, 2021
2 parents c136ffb + ff57c59 commit a6eb007
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
linkedin_orbit (0.0.2)
linkedin_orbit (0.1.1)
dotenv (~> 2.7)
http (~> 4.4)
json (~> 2.5)
Expand Down
1 change: 1 addition & 0 deletions lib/linkedin_orbit/interactions/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def construct_body
{
activity: {
activity_type: "linkedin:comment",
tags: ["channel:linkedin"],
title: "Commented on LinkedIn Post",
description: construct_description,
occurred_at: Time.at(@comment["created"]["time"] / 1000).utc,
Expand Down
2 changes: 1 addition & 1 deletion lib/linkedin_orbit/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module LinkedinOrbit
VERSION = "0.1.0"
VERSION = "0.1.1"
end
2 changes: 1 addition & 1 deletion scripts/check_comments.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require "dev_orbit"
require "linkedin_orbit"
require "thor"

module LinkedinOrbit
Expand Down
2 changes: 1 addition & 1 deletion spec/interactions/comment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
stub_request(:post, "https://app.orbit.love/api/v1/1234/activities")
.with(
headers: { 'Authorization' => "Bearer 12345", 'Content-Type' => 'application/json' },
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\"}}"
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\"}}"
)
.to_return(
status: 200,
Expand Down

0 comments on commit a6eb007

Please sign in to comment.