rujira 0.1.9 → 0.1.10

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: 78cead9886531e83e1f9de53928365e5a63dd21dfff5e71acceea97bacc9683f
4
- data.tar.gz: 76b7f30ee2841cbaab88603bfc49e7bb701b6db3cca4f292c300520321cf2f2f
3
+ metadata.gz: 16380f7114ef3fc97d349938fe5fd2d6c064af8bbd5b9b9e475379a005304103
4
+ data.tar.gz: 53bf9e9ab04f2cd8f5995536ddf6815272b67975ee648c0dc6c597a58b3f2b97
5
5
  SHA512:
6
- metadata.gz: 73b53106d7f204b6c798557b7e0b759f7bcbe0804be1ff408d9003eef63f1d0c9fa29b2c5387946898a886426c9fc57b4a4392f6bbd79473c69688f1378c69d2
7
- data.tar.gz: ea29a10d0c691babfd093cc1ab9afff05b05addf6880476a55ba378bff48aba83109ea67253f33a8392da95c22b28b8148adbe112ea35de75e3dd05f4b0de589
6
+ metadata.gz: c7cdc882bace5f02fd760a9c417159d4d99359e102c058e083a4718712e93e797e28d63915630fd86dde3b178a449841e5dcef4b63db51aa30dfac614d7d5e97
7
+ data.tar.gz: 9efae9d3c99fa0f12eb29b9224a0226a56cb79a2b32b36f05e0950111d061858876836c51153bcff3e91632500522eedfdc99bdbbaeb2fddea5bbd32c5c6a25d
data/README.md CHANGED
@@ -62,5 +62,6 @@
62
62
  ### Example with Curl
63
63
 
64
64
  curl -H "Authorization: Bearer <JIRA_ACCESS_TOKEN>" 'http://localhost:8080/rest/api/2/search?expand=summary'
65
+ curl -vv -X POST --data '"some"' -H "Authorization: Bearer <JIRA_ACCESS_TOKEN>" -H "Content-Type: application/json" 'http://localhost:8080/rest/api/2/issue/ITMG-70/watchers'
65
66
  curl -D- -F "file=@upload.png" -X POST -H "X-Atlassian-Token: nocheck" \
66
67
  -H "Authorization: Bearer <JIRA_ACCESS_TOKEN>" 'http://localhost:8080/rest/api/2/issue/ITMG-70/attachments'
@@ -49,10 +49,11 @@ module Rujira
49
49
  Comment.new(entity.commit)
50
50
  end
51
51
 
52
- def self.watchers(id_or_key, &block)
52
+ def self.watchers(id_or_key, name, &block)
53
53
  entity = Entity.build do
54
54
  path "issue/#{id_or_key}/watchers"
55
55
  method :POST
56
+ data name.to_json
56
57
  instance_eval(&block) if block_given?
57
58
  end
58
59
  new(entity.commit)
@@ -12,6 +12,14 @@ module Rujira
12
12
  end
13
13
  new(entity.commit)
14
14
  end
15
+
16
+ def self.securitylevel(id_or_key, &block)
17
+ entity = Entity.build do
18
+ path "project/#{id_or_key}/securitylevel"
19
+ instance_eval(&block) if block_given?
20
+ end
21
+ new(entity.commit)
22
+ end
15
23
  end
16
24
  end
17
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rujira
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.10"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rujira
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Semenov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
11
+ date: 2024-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday