gnu-remind 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: 1711c6c47b91c7a5544e2ac2fa110e62e693275c682d587f172c0916cb09ed22
4
- data.tar.gz: 7d8a4ea0d5f3893da004d4a0bbb11a787a93b2a5c41518bb2830d53dc195344a
3
+ metadata.gz: 6149e372ee4292afde897782c7359cc3fe6876159f91b66d6dea2660d5595530
4
+ data.tar.gz: 1eea367f28f107f4c99743db6a2e1539c1415dd05276a3115c1de7edc656f6f0
5
5
  SHA512:
6
- metadata.gz: 24fb829caeeaa46364d31a8982375534d2e32d541014e75b1c83cc344e169a591260ca074f9a528f234843be99edd2eae7596ba42f9683b9215e181476b1b05a
7
- data.tar.gz: 46418d4e3e331be5be5c93b1daa0f759aa505ca24f69c054a92e3f4b6c7c71a908b69b1fa318766536471c709415341ee32bc68f0d4f9540bcdc46f5d68ce367
6
+ metadata.gz: ab7dfbe16607ce43ed601e818d901eeea7981253566632f5fbc2d7f4106783ed0571d306d3d2324bc59114a8a7b3ebd30cf3aa4581a1331c661b1eb4ca2bbbc0
7
+ data.tar.gz: 25f6632fd16aa9010e8e97ebaaebafa960647ade45b24967483f382a76f4d562b464905362834c20783b676f86b0051f15a48fa1d055cdfbe52456f7ec358adc
data/lib/remind/remind.rb CHANGED
@@ -2,8 +2,8 @@
2
2
  class E
3
3
  def initialize k
4
4
  @id = k
5
- @rem = []
6
5
  @r = Hash.new { |h,k| h[k] = R.new(k) }
6
+ clear!
7
7
  end
8
8
  def id; @id; end
9
9
 
@@ -16,6 +16,10 @@ class E
16
16
  `remind -t1 rem/#{@id}.rem`.split("\n\n")
17
17
  end
18
18
 
19
+ def clear!
20
+ @rem = []
21
+ end
22
+
19
23
  def to_rem
20
24
  a = [];
21
25
  @rem.each { |e| a << @r[e].to_rem }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Remind
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/remind.rb CHANGED
@@ -15,6 +15,8 @@ module Remind
15
15
  @@REM = REM['reminders']
16
16
  def self.[]= x, u
17
17
  r = REM[x]
18
+ r.clear!
19
+ @@REM.clear!
18
20
  CAL.from_url(u).each do |e|
19
21
  h = {
20
22
  date: e.when[:begin].to_time.localtime.strftime("%-d %b %Y"),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnu-remind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson