backlog_kit 0.6.0 → 0.7.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
  SHA1:
3
- metadata.gz: 47fa0929748b27691272ee7bc7dd6e83a915be2b
4
- data.tar.gz: 5ed55189a48bec960aa3b10bce5da8a98e395260
3
+ metadata.gz: ab6aabb9a8e9db598e727e35159a77ff689ac43a
4
+ data.tar.gz: 6afb145b98761b671d9f47e27d37fed9d32bc609
5
5
  SHA512:
6
- metadata.gz: d0f4f1ca4c776406c97e84de3b814b40ca018b2691afdc9b583f022ac35e69a2919556a77cb9085e53860e063379ca45b75a32d5e183edca7ed3aa2132d3bf11
7
- data.tar.gz: fdc7bfb5453ad954ac80dba5df3c0dc022a56640b11a6ff443e2900f68b691e9a49b6ef45ad5664931362aeafed10eeb7879f09f8066f33bab56143c3b6e4f2b
6
+ metadata.gz: a4dad37ccf26c8244ceead648d71b56e2d2f3d83d7929dc16e72aae3f70be770907776b984ea22fe32689c9c457c0de07e2bef49598df9cace8a5230f271bf46
7
+ data.tar.gz: 37e2faa24825c9e91a4fae4b5dbc320404f258164f92b8efc733f79c7db5e756b98e8b652381860321f731ef50d7116075f79c623be4c581e887b46505809771
@@ -6,6 +6,7 @@ require 'backlog_kit/client/group'
6
6
  require 'backlog_kit/client/notification'
7
7
  require 'backlog_kit/client/priority'
8
8
  require 'backlog_kit/client/resolution'
9
+ require 'backlog_kit/client/space'
9
10
  require 'backlog_kit/client/star'
10
11
  require 'backlog_kit/client/status'
11
12
  require 'backlog_kit/response/file_parser'
@@ -19,6 +20,7 @@ module BacklogKit
19
20
  include BacklogKit::Client::Notification
20
21
  include BacklogKit::Client::Priority
21
22
  include BacklogKit::Client::Resolution
23
+ include BacklogKit::Client::Space
22
24
  include BacklogKit::Client::Star
23
25
  include BacklogKit::Client::Status
24
26
 
@@ -0,0 +1,34 @@
1
+ module BacklogKit
2
+ class Client
3
+ module Space
4
+ def get_space
5
+ get('space')
6
+ end
7
+
8
+ def get_space_activities(params = {})
9
+ get('space/activities', params)
10
+ end
11
+
12
+ def download_space_icon
13
+ get('space/image')
14
+ end
15
+
16
+ def get_space_notification
17
+ get('space/notification')
18
+ end
19
+
20
+ def update_space_notification(content)
21
+ put('space/notification', content: content)
22
+ end
23
+
24
+ def get_space_disk_usage
25
+ get('space/diskUsage')
26
+ end
27
+
28
+ def upload_attachment(file_path)
29
+ payload = { file: Faraday::UploadIO.new(file_path, 'application/octet-stream') }
30
+ post('space/attachment', payload)
31
+ end
32
+ end
33
+ end
34
+ end
@@ -1,3 +1,3 @@
1
1
  module BacklogKit
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backlog_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - emsk
@@ -189,6 +189,7 @@ files:
189
189
  - lib/backlog_kit/client/notification.rb
190
190
  - lib/backlog_kit/client/priority.rb
191
191
  - lib/backlog_kit/client/resolution.rb
192
+ - lib/backlog_kit/client/space.rb
192
193
  - lib/backlog_kit/client/star.rb
193
194
  - lib/backlog_kit/client/status.rb
194
195
  - lib/backlog_kit/error.rb