zimdel 0.1.1 → 0.1.2

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: 49c7b9c108bd64b1d93da8ac7640441ec7fc177e
4
- data.tar.gz: 64d5deec64dd2684c563b5528a15bf2c19a81980
3
+ metadata.gz: e65ce6486c4621af3b9328c257ae049a3c6817db
4
+ data.tar.gz: 798d6049147f2e59977525b7cccf6f8d0c797a6c
5
5
  SHA512:
6
- metadata.gz: 74f71d4530229c4371cce7ffb7c38810dc152ff7bdaaa7dfdc3d64d0a4878c4cf7aabbcbc2bc752b6ba8a62fbdd1299e17149773bca3f869f420135bef54662e
7
- data.tar.gz: 4d148106c27342af0f957729290dcf5744319292d8c49bb13c6af48c0fdd0841929e2b85c6fc2ecb86be60a922c02d88c7dcf2ff29a74f6439299d87622290c0
6
+ metadata.gz: 859f6abeac0c06c93347359dc8214c3d7f84a0996a846bf564a2a95dc1b4d8951b51d68bd67d9b6a9d247d080a691ec99da624afde986c9ff4a6341dffe51e30
7
+ data.tar.gz: '08b4e23adbac84d97f744e1a51d1810da21d3d3e7d7cf450ddac6fd1f422f09919590974110b85ed4995412f06d4b5c739ca609a22542255786173603261ae2c'
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Zimdel
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/zimdel`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Zimdel is a simple auto-reply bot for GitHub, it is triggered by mentioning.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,11 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ To start the bot, you will need a configuration file. All the available configuration options are specified in the `config_sample.yml`.
24
+
25
+ ```ruby
26
+ zimdel -c config.yml
27
+ ```
26
28
 
27
29
  ## Development
28
30
 
@@ -1,3 +1,3 @@
1
1
  module Zimdel
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
data/lib/zimdel.rb CHANGED
@@ -9,6 +9,7 @@ module Zimdel
9
9
  @client.notifications.each do |notification|
10
10
  next unless notification[:reason] == 'mention'
11
11
  @client.add_comment(notification[:repository][:full_name], notification[:subject][:url][/[0-9]+$/], message)
12
+ @client.update_thread_subscription(notification[:id], :ignored => true)
12
13
  end
13
14
 
14
15
  @client.mark_notifications_as_read
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zimdel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dávid Halász
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2016-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit