Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 700f29f

Browse files
committed
Merge pull request #2 from upwork/v1.1.0
V1.1.0
2 parents b462758 + f8137b5 commit 700f29f

5 files changed

Lines changed: 15 additions & 12 deletions

File tree

lib/upwork/api/routers/activities/engagement.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ def get_specific(engagement_ref)
4646
def assign(company, team, engagement, params)
4747
@client.put '/otask/v1/tasks/companies/' + company + '/' + team + '/engagements/' + engagement, params
4848
end
49+
50+
# Assign to specific engagement the list of activities
51+
#
52+
# Arguments:
53+
# engagement_ref: (String)
54+
# params: (Hash)
55+
def assign_to_engagement(engagement_ref, params)
56+
@client.put '/tasks/v2/tasks/contracts/' + engagement_ref
57+
end
4958

5059
end
5160
end

lib/upwork/api/routers/metadata.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ def initialize(client)
2727
@client.epoint = ENTRY_POINT
2828
end
2929

30-
# Get categories
31-
def get_categories
32-
$LOG.i "running " + __method__.to_s
33-
@client.get '/profiles/v1/metadata/categories'
34-
end
35-
3630
# Get categories (v2)
3731
def get_categories_v2
3832
$LOG.i "running " + __method__.to_s

lib/upwork/api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
module Upwork # :nodoc:
1515
module Api
16-
VERSION = "1.0.1"
16+
VERSION = "1.1.0"
1717
end
1818
end

test/test_activities_engagement.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ def test_assign
1818
api = Upwork::Api::Routers::Activities::Engagement.new(get_client_mock)
1919
assert api.assign('company', 'team', '1234', {})
2020
end
21+
22+
def test_assign_to_engagement
23+
api = Upwork::Api::Routers::Activities::Engagement.new(get_client_mock)
24+
assert api.assign_to_engagement('1234', {})
25+
end
2126
end

test/test_metadata.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ def test_get_skills
2424
assert api.get_skills
2525
end
2626

27-
def test_get_categories
28-
api = Upwork::Api::Routers::Metadata.new(get_client_mock)
29-
assert api.get_categories
30-
end
31-
3227
def test_get_categories_v2
3328
api = Upwork::Api::Routers::Metadata.new(get_client_mock)
3429
assert api.get_categories_v2

0 commit comments

Comments
 (0)