sticky 0.4.0 → 0.4.1

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: 89ac0b828a1379f1a6706805471bae993ad5860a
4
- data.tar.gz: 2fc23dbea0c0db6aac5a6ed09046700982363823
3
+ metadata.gz: 0b1749ea37b43551657eed11da9523fb0153b96a
4
+ data.tar.gz: c52dccd4bff4d0a8a4dbafe6de2f85fb986dc677
5
5
  SHA512:
6
- metadata.gz: b1151b1d54cd20343c95dd04126699d22cb5b5094fa3b84a836f95ef901168dff14dbca7d12373f81e6f4aac40d44a1d757440805527f901a3991e625d9442d0
7
- data.tar.gz: 8e72822acc1b2206cafc93acf26532d59939953b14d2596f0c1e8e3cf18aa2eb3633035005229151062b8512cc88e77efd741afac487c420c8693f5926093411
6
+ metadata.gz: 95a2ec7e40f4f654730078eee7c3b2ca8b57bbd1e2a6898807b116a54adf75e08a24da2b3295df5955e4f02e09b106b6531ec490a51f06f689bad11be9fdd37a
7
+ data.tar.gz: 682c7f0d229f4ae8b268e39f32d0ed2b62ac85f8b5d8f0ab7cfa73b36df43a6a95d451266aff04e06b49b4b300eb381bfe5685ff08cc8270d0d2ff8812dbdff3
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
  tags
11
11
  *.swp
12
+ .byebug_history
data/lib/sticky/store.rb CHANGED
@@ -15,9 +15,9 @@ module Sticky
15
15
  store.transaction do
16
16
  store[:sticky_notes] || []
17
17
  store[:sticky_notes].each do |sticky|
18
- if block_given? && ((tag.nil? && date.nil?)\
18
+ if block_given? && ((tag.nil? && date.nil?) \
19
19
  || tag == sticky.tag \
20
- || date.to_date == sticky.timestamp.to_date)
20
+ || date&.to_date == sticky.timestamp&.to_date)
21
21
  yield sticky
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Sticky
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur de Oliveira Tsuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-25 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor