tinybucket2 1.7.7 → 2.0.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: '06839dc73123cdbcb012061c2fe22da828a41278e997b6b289140c0ba93e70fb'
4
- data.tar.gz: e4f3d942f60cd30c6323a2e35e6145c408022965e6ad56e8830e5c2a86e8dcd9
3
+ metadata.gz: 70213e66d73324e24e07306ccf980315e2da826eb0f5df683b923c57bb51cccd
4
+ data.tar.gz: dcd2ff6c72704f1c47e5ee6524053b3329d48dff1e6be31df26997756eac5b37
5
5
  SHA512:
6
- metadata.gz: 23dc830852507c2c5e7d1f891395e0562871ec0bd32be57358974f9c3a772e51fcc50b29fa0c236cfa3ed247b033c4009cbcaeb758677345f94101cf59629e08
7
- data.tar.gz: 471b648dd0d88c823c099148cedb7bee2b64eb4285d44a1d3986250a495ed52c5c478cc7ec5a77065aba3b036002a83a14cdbc309162d95386ce5bd279940702
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tinybucket
4
- VERSION = '1.7.7'.freeze
4
+ VERSION = '2.0.0'.freeze
5
5
  end
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: 1.7.7
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-22 00:00:00.000000000 Z
11
+ date: 2019-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel