zimdel 0.1.0 → 0.1.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: 880af74cfe64749261aaf2d1f0399797ee4810ac
4
- data.tar.gz: 80a638cc410ba3b7393676b680a38e47986f39b8
3
+ metadata.gz: 49c7b9c108bd64b1d93da8ac7640441ec7fc177e
4
+ data.tar.gz: 64d5deec64dd2684c563b5528a15bf2c19a81980
5
5
  SHA512:
6
- metadata.gz: f1723a95a8f932ed0ccca5d9480f27382fb84b90bbe3c0aa204d04dfba39afda0e8e000fcb4a9be2a862ee519ee542cd592798e8d847f8b37d26ccbfe1825aab
7
- data.tar.gz: f7bfc257100bcadc94da89ea45931f3f62f4ddc9eac417dcb11e8ee867fb51c7ca6312a5544cb065dbb32e211d1f2388d086bd2cbfcba39803fee7139070fb8d
6
+ metadata.gz: 74f71d4530229c4371cce7ffb7c38810dc152ff7bdaaa7dfdc3d64d0a4878c4cf7aabbcbc2bc752b6ba8a62fbdd1299e17149773bca3f869f420135bef54662e
7
+ data.tar.gz: 4d148106c27342af0f957729290dcf5744319292d8c49bb13c6af48c0fdd0841929e2b85c6fc2ecb86be60a922c02d88c7dcf2ff29a74f6439299d87622290c0
data/bin/zimdel CHANGED
@@ -18,9 +18,6 @@ file = options.fetch(:config, 'config.yml')
18
18
  config = YAML.load_file(file)
19
19
 
20
20
  loop do
21
- puts "Logging in with: #{config}"
22
21
  Zimdel.new(config['username'], config['password'], config['message'])
23
- puts "Messages sent"
24
22
  sleep config['sleep']
25
- puts "Waking up!"
26
23
  end
@@ -1,3 +1,3 @@
1
1
  module Zimdel
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
data/lib/zimdel.rb CHANGED
@@ -7,6 +7,7 @@ module Zimdel
7
7
  @client ||= Octokit::Client.new(login: username, password: password)
8
8
 
9
9
  @client.notifications.each do |notification|
10
+ next unless notification[:reason] == 'mention'
10
11
  @client.add_comment(notification[:repository][:full_name], notification[:subject][:url][/[0-9]+$/], message)
11
12
  end
12
13
 
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dávid Halász