snap_api_client 0.2.0 → 0.3.0

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: 7a885b9fb94607059bd19e4df210a37db3e630f8b4ea36da7a1fb58fd6b0014a
4
- data.tar.gz: 706f7fc2fa42c13b3bfd0ff0b523c2453eb6bb6ef5b0077db1e877320ec1c75f
3
+ metadata.gz: 4bf5f813e4ebfc5e91986ee1ed8f6eee5d902c82ea3e661b351c128c54aa9983
4
+ data.tar.gz: f051ed924f177a0b75a217efb818e99a6d41cc7f0cba2561725d9a227a7684cf
5
5
  SHA512:
6
- metadata.gz: 00acec36f4a78598ff92bb33311cd74a9f0d53f364fd30b2f78466f1ee141a408dc67ae248a1dc2e2d9917b64338fd2eaef42792808cf112694974a6e12a78ea
7
- data.tar.gz: 9eeddd9ff21fb75aab2286111fc55f6e4b89c037ab0b2a74a0781151c79923422512fe895bd4ff18293be24e6633b8c32914fc8e9613111f3938f89b8e38575d
6
+ metadata.gz: 5f7776e50eb5ecfccbf702dccd082dfe77a410afe6317420dc089b3735f9cdb1b240f804546073350afac42daa4ebd1fa81390ecf65f3eb8081ce02a70ce5eb2
7
+ data.tar.gz: d9e3465830f83116f6f27a7fa6efe08c7891dfc3caef7aa6274cc17156214ef71296d7560cdfb92336dfaa64af8da88402c4a5db2f48edddd7310abfd77ac328
@@ -34,4 +34,12 @@ module SnapAPIClient
34
34
  def card_resource
35
35
  @card_resource ||= Resources::Card.new(transport)
36
36
  end
37
+
38
+ def effort_resource
39
+ @effort_resource ||= Resources::Effort.new(transport)
40
+ end
41
+
42
+ def project_resource
43
+ @project_resource ||= Resources::Project.new(transport)
44
+ end
37
45
  end
@@ -2,3 +2,5 @@
2
2
 
3
3
  require 'snap_api_client/resources/base'
4
4
  require 'snap_api_client/resources/card'
5
+ require 'snap_api_client/resources/effort'
6
+ require 'snap_api_client/resources/project'
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ module Resources
5
+ class Effort < Base
6
+ def update_review_url(id, url)
7
+ transport.patch("/efforts/#{id}/review", {
8
+ effort: {
9
+ review_url: url
10
+ }
11
+ })
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ module Resources
5
+ class Project < Base
6
+ def update_review_url(id, url)
7
+ transport.patch("/projects/#{id}/review", {
8
+ project: {
9
+ review_url: url
10
+ }
11
+ })
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapAPIClient
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snap_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lawrance Shepstone
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-18 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -105,6 +105,8 @@ files:
105
105
  - lib/snap_api_client/resources.rb
106
106
  - lib/snap_api_client/resources/base.rb
107
107
  - lib/snap_api_client/resources/card.rb
108
+ - lib/snap_api_client/resources/effort.rb
109
+ - lib/snap_api_client/resources/project.rb
108
110
  - lib/snap_api_client/response.rb
109
111
  - lib/snap_api_client/transport.rb
110
112
  - lib/snap_api_client/version.rb