backlog_kit 0.5.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e09c6da1016571dde81438af6e4981dd32cf992
4
- data.tar.gz: dc1b1a73b16b7a1f86da1d4d7248f3d9c8853d63
3
+ metadata.gz: 47fa0929748b27691272ee7bc7dd6e83a915be2b
4
+ data.tar.gz: 5ed55189a48bec960aa3b10bce5da8a98e395260
5
5
  SHA512:
6
- metadata.gz: 6a90c1f8059c54670e03688b7c31cfbe61bd969f05da37bc5f2ab2ceb6aaeddcdd6a9bf1023f8ed09240039396492c69d2af5a3177eac6ca8fb71b6af3c2c93a
7
- data.tar.gz: a43263c6be0e3ab5e6bbe0d914f4ef697b1dfd4688e29eb3a414fa6f82fbfbfb136fb83440ca3e4f8d1b0a99a2773fc3d6df3830b861e545e9101ddb483bb7fe
6
+ metadata.gz: d0f4f1ca4c776406c97e84de3b814b40ca018b2691afdc9b583f022ac35e69a2919556a77cb9085e53860e063379ca45b75a32d5e183edca7ed3aa2132d3bf11
7
+ data.tar.gz: fdc7bfb5453ad954ac80dba5df3c0dc022a56640b11a6ff443e2900f68b691e9a49b6ef45ad5664931362aeafed10eeb7879f09f8066f33bab56143c3b6e4f2b
@@ -3,6 +3,7 @@ require 'backlog_kit/response'
3
3
  require 'backlog_kit/version'
4
4
  require 'backlog_kit/client/git'
5
5
  require 'backlog_kit/client/group'
6
+ require 'backlog_kit/client/notification'
6
7
  require 'backlog_kit/client/priority'
7
8
  require 'backlog_kit/client/resolution'
8
9
  require 'backlog_kit/client/star'
@@ -15,6 +16,7 @@ module BacklogKit
15
16
  class Client
16
17
  include BacklogKit::Client::Git
17
18
  include BacklogKit::Client::Group
19
+ include BacklogKit::Client::Notification
18
20
  include BacklogKit::Client::Priority
19
21
  include BacklogKit::Client::Resolution
20
22
  include BacklogKit::Client::Star
@@ -0,0 +1,21 @@
1
+ module BacklogKit
2
+ class Client
3
+ module Notification
4
+ def get_notifications(params = {})
5
+ get('notifications', params)
6
+ end
7
+
8
+ def get_notification_count(params = {})
9
+ get('notifications/count', params)
10
+ end
11
+
12
+ def reset_already_read_notification_count
13
+ post('notifications/markAsRead')
14
+ end
15
+
16
+ def mark_as_read_notification(notification_id)
17
+ post("notifications/#{notification_id}/markAsRead")
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,3 +1,3 @@
1
1
  module BacklogKit
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backlog_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - emsk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -186,6 +186,7 @@ files:
186
186
  - lib/backlog_kit/client.rb
187
187
  - lib/backlog_kit/client/git.rb
188
188
  - lib/backlog_kit/client/group.rb
189
+ - lib/backlog_kit/client/notification.rb
189
190
  - lib/backlog_kit/client/priority.rb
190
191
  - lib/backlog_kit/client/resolution.rb
191
192
  - lib/backlog_kit/client/star.rb