zimdel 0.2.0 → 0.2.1

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: 7548f92800180a78386da0be3f3c3f88b989c15c
4
- data.tar.gz: 249732fbbf40bb287b0b5607048b5ff70d533979
3
+ metadata.gz: dd7ca3c9d963914f97097ee7f0ce12257a5e0053
4
+ data.tar.gz: ba1911efd2d30fe28753461ef363d757dba8d955
5
5
  SHA512:
6
- metadata.gz: a80328442554c391bc92a067287a70fba0fc65bc3c0dc56465eabbee250e1825e1f46b0fdea138e88b4f591b3f6556e7867f56b07ee36b5d047fb21d800addc6
7
- data.tar.gz: 8e0db2b6a7de406924530aa3739a842d7e0b882832e5938f51014511ef448983c8265c452fd18a7450f0423a590481a7966216c08d7570a0e29a851155caf0c6
6
+ metadata.gz: 745dfad3fe728deb8aea47705b55575d546f29c9b7735f559c12c015a0b04019ced5fa99f127cfb4f5afc4e744542c370e4d4fb9fa7abb685e5d1c6f728c3b13
7
+ data.tar.gz: aee5565e2fcdd28ba6e7a7b654f3fa7fa27fa7817cf21eb622f3248e15d5336910182ff12c7e1aa3c5697ab45a535d81fddf44ed1b60977f9253b8ace0dca56c
@@ -4,15 +4,15 @@ require 'octokit'
4
4
  module Zimdel
5
5
  class << self
6
6
  def new(username, password, message)
7
- @client ||= Octokit::Client.new(login: username, password: password)
7
+ client = Octokit::Client.new(login: username, password: password)
8
8
 
9
- @client.notifications.each do |notification|
9
+ client.notifications.each do |notification|
10
10
  next unless notification[:reason] == 'mention'
11
- @client.add_comment(notification[:repository][:full_name], notification[:subject][:url][/[0-9]+$/], message)
12
- @client.update_thread_subscription(notification[:id], :ignored => true)
11
+ client.add_comment(notification[:repository][:full_name], notification[:subject][:url][/[0-9]+$/], message)
12
+ client.update_thread_subscription(notification[:id], :ignored => true)
13
13
  end
14
14
 
15
- @client.mark_notifications_as_read
15
+ client.mark_notifications_as_read
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Zimdel
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zimdel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dávid Halász