rujira 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da8eaee19c39b45a5223e13a7e2d9cfa81ff5b18063429be52473a05a7c30b4f
4
- data.tar.gz: ce13ac7aeeabbc471071cb9c9feb36917c8062e52c598f27ab452d34c4a0db59
3
+ metadata.gz: 16380f7114ef3fc97d349938fe5fd2d6c064af8bbd5b9b9e475379a005304103
4
+ data.tar.gz: 53bf9e9ab04f2cd8f5995536ddf6815272b67975ee648c0dc6c597a58b3f2b97
5
5
  SHA512:
6
- metadata.gz: 430557532512d326578de11200a13d25d4ac466278765216781ec247e47d6782084c2e92c740f4ce509c18beab1fbc7ab2b8abe2573cb90c0a8c116c10944af5
7
- data.tar.gz: d2c000d5675f2acba7bd4a7dc58daa16e39d7e1a069ac7da068525322b30aa14e3ae47eaf94fda8f4c300c070bb621533a9e737835a5fbe26a74571afce3fd3e
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.8"
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.8
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-05-22 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
@@ -38,8 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
- description: The library is developed for the purposes of the organization, new features
42
- can be added as MR. Welcome!
41
+ description: The library is under development
43
42
  email:
44
43
  - i@itmage.ru
45
44
  executables: []