tinybucket2 1.7.7 → 2.0.0
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 +4 -4
- data/lib/tinybucket/api/issues_api.rb +15 -0
- data/lib/tinybucket/resource/issues.rb +12 -0
- data/lib/tinybucket/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: 70213e66d73324e24e07306ccf980315e2da826eb0f5df683b923c57bb51cccd
|
4
|
+
data.tar.gz: dcd2ff6c72704f1c47e5ee6524053b3329d48dff1e6be31df26997756eac5b37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 211dd8f1ea0f4be123eddfefa0cd9cdc99e9ff6d0e6017834ca1f6d0ad0076253467572a2db4bac6fe7f690d73add0bdb570eba46ac2af0edb8a663db473b8a7
|
7
|
+
data.tar.gz: e050b08545f0880a1fcea1457990e069e378aab87b5b4d83ef4c823cb2bfddde48e1bc3533bfd9e09273880bbc9a624d536a4aacb5f583d86fbb81d292bd0f6f
|
@@ -28,6 +28,21 @@ module Tinybucket
|
|
28
28
|
)
|
29
29
|
end
|
30
30
|
|
31
|
+
|
32
|
+
# Send 'POST a build status for a commit' request
|
33
|
+
#
|
34
|
+
# @param revision [String]
|
35
|
+
# @param key [String]
|
36
|
+
# @param options [Hash]
|
37
|
+
# @return [Tinybucket::Model::Issue]
|
38
|
+
def post(options)
|
39
|
+
post_path(
|
40
|
+
base_path,
|
41
|
+
options,
|
42
|
+
get_parser(:object, Tinybucket::Model::Issue)
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
31
46
|
# Send 'GET an individual issue' request
|
32
47
|
#
|
33
48
|
# @see https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/issues/%7Bname%7D#get
|
@@ -11,6 +11,7 @@ module Tinybucket
|
|
11
11
|
def repo_owner= x
|
12
12
|
puts x
|
13
13
|
end
|
14
|
+
|
14
15
|
# Find the issue
|
15
16
|
#
|
16
17
|
# @param issue [String]
|
@@ -22,6 +23,17 @@ module Tinybucket
|
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
26
|
+
# Create a issue
|
27
|
+
#
|
28
|
+
# @param key [String]
|
29
|
+
# @param options [Hash]
|
30
|
+
# @return [Tinybucket::Model::Issue]
|
31
|
+
def create(options)
|
32
|
+
issues_api.post(options).tap do |m|
|
33
|
+
m.repo_keys = @repo.repo_keys
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
25
37
|
private
|
26
38
|
|
27
39
|
def issues_api
|
data/lib/tinybucket/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tinybucket2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hirakiuc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|