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 +4 -4
- data/README.md +1 -0
- data/lib/rujira/api/issue.rb +2 -1
- data/lib/rujira/api/project.rb +8 -0
- data/lib/rujira/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16380f7114ef3fc97d349938fe5fd2d6c064af8bbd5b9b9e475379a005304103
|
4
|
+
data.tar.gz: 53bf9e9ab04f2cd8f5995536ddf6815272b67975ee648c0dc6c597a58b3f2b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/rujira/api/issue.rb
CHANGED
@@ -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)
|
data/lib/rujira/api/project.rb
CHANGED
@@ -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
|
data/lib/rujira/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|