simple_slack 0.3.2 → 0.3.3

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: 8e06637e6ea103d483301b1933724dd6ae3987bb
4
- data.tar.gz: a0d3bbd05f6562d9e019eade99084d9f84e14447
3
+ metadata.gz: 13c1e00e28260f8fabe4e1db17ac6ce5d505523d
4
+ data.tar.gz: b5d947a9841349abd4f5f1342636154681888213
5
5
  SHA512:
6
- metadata.gz: e673cb4c3a13d89c8a0f26433661d8e6ee10c7c71df8b44bde30b717de9e7ac03a8ac5c4a4e867e7e94dd602a7300a201e2466011fa3cbf71877d15a208e2b0c
7
- data.tar.gz: 2ef154134887ec1e23b559dd36812fd124bfb114b9bb5822bb0141b9d605f8b05f760ae2d9e782328f70072554063ebd0229bc3b17e91752065470069d561c39
6
+ metadata.gz: 2b3e8944f7e9eb5bae6ba9a57530b6dc6f9282fd6d52278da3261fcf726b1a541329e5bcce7f04aac86609b1095a9801473539be8c952fb4acd09842d6d7acf6
7
+ data.tar.gz: 85c609466c100be57afdacbba018c28150dd032b0eb610385a06bcdb3a8364bde5d274a0f113d22f51147285f6e86406ee685803206c97d463aca180cd4b2aa9
@@ -11,6 +11,14 @@ module TogglEntriesParameter
11
11
  end
12
12
  end
13
13
 
14
+ def entries_by_tags(*tags)
15
+ entries.select do |entry|
16
+ tags.map(&:to_s).all? do |tag|
17
+ entry["tags"].include?(tag)
18
+ end
19
+ end
20
+ end
21
+
14
22
  def latest_entry
15
23
  entries.sort_by{ |entry| entry["start"] }.last
16
24
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleSlack
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - toririn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2016-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler