wooden 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: bf1b48e158995cb3a35bfe62fbef0cd4226f8c60df230bbbc18a14bc80b2f5fe
4
- data.tar.gz: 5f1288a2cf9ec2347e4e2d7d02c33466d5e9ceeded48e71059735821cca440ae
3
+ metadata.gz: 670a42a0deadc2089505cdc1cf86326fdcc48489fadb1458c4ff76f7cd80213c
4
+ data.tar.gz: 0c28c536563a695a05f4ff2c3e04af4d6b3fe0eb259048893eb8c52146090a7d
5
5
  SHA512:
6
- metadata.gz: 9ae4e8fb2111b57cae569ace02539b988316a2ff641bf600273a0a996300d3197b2ded832a3db5e2bf53cb5ee4a33c51fc2ab883df71724eacdfce31cd1f8fbc
7
- data.tar.gz: 1c4e39184790501a586a915c32e0b683e7b178dce051b2c96c65d778a7cb21d4f62f21af22f5fa3575d6e6b184f6bc47f71d50da6d2a74543af33808938932f4
6
+ metadata.gz: 58e71a53fdae20b67865c009f52b4cdd8d04e45f6ab38efd30f55290600178b5f0c0aa933860c6fc16c53dd00c2cea63797f7dd49f3ae817f28a52485a8acfff
7
+ data.tar.gz: 558ff3c5893d11f831159f2386920b7ac2521b9dcb0051bff61bed117c0adb396271640af386c8959aea9b80c215754c77aba3992568d25129ae3baae4e10f46
data/Gemfile.lock ADDED
@@ -0,0 +1,23 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ wooden (0.1.1)
5
+ date
6
+ nickel
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ date (3.2.2)
12
+ nickel (0.1.6)
13
+ rake (13.0.6)
14
+
15
+ PLATFORMS
16
+ x86_64-linux
17
+
18
+ DEPENDENCIES
19
+ rake (~> 13.0)
20
+ wooden!
21
+
22
+ BUNDLED WITH
23
+ 2.3.15
data/README.md CHANGED
@@ -1,37 +1,22 @@
1
- # Wooden
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/wooden`. 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
6
-
7
- ## Installation
8
-
9
- Install the gem and add to the application's Gemfile by executing:
10
-
11
- $ bundle add wooden
12
-
13
- If bundler is not being used to manage dependencies, install the gem by executing:
14
-
15
- $ gem install wooden
1
+ # Wooden Schedules
2
+ Plain-text scheduling and coordination for everyone!
3
+ - Quick Start: `gem install wooden`
16
4
 
17
5
  ## Usage
18
-
19
- TODO: Write usage instructions here
20
-
21
- ## Development
22
-
23
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
-
25
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
-
27
- ## Contributing
28
-
29
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/wooden. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/wooden/blob/master/CODE_OF_CONDUCT.md).
30
-
31
- ## License
32
-
33
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
-
35
- ## Code of Conduct
36
-
37
- Everyone interacting in the Wooden project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/wooden/blob/master/CODE_OF_CONDUCT.md).
6
+ ```
7
+ require 'wooden'
8
+
9
+ # options are all optional.
10
+ Wooden[file].entry(
11
+ "Dinner every tuesday at 7pm except in April.",
12
+ message: "Tuesday dinner",
13
+ until: Date.today + 120,
14
+ tag: "dinner",
15
+ priority: 1000,
16
+ duration: "2h",
17
+ lead: 2,
18
+ delta: 10
19
+ )
20
+ # All events in next 7 days
21
+ Wooden[file][7]
22
+ ```
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wooden
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/wooden.rb CHANGED
@@ -122,6 +122,9 @@ class Reminders
122
122
  ff.each { |e| File.open("rem/#{@id}.rem", 'a') { |f| f.puts(e) } }
123
123
  return nil
124
124
  end
125
+ def << e
126
+ entry(e)
127
+ end
125
128
  def [] n
126
129
  a = `remind -t#{n} rem/#{@id}.rem`.split("\n").compact.uniq.filter { |e| e.length > 0 }
127
130
  h = a.shift
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wooden
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
  - Erik Olson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-10-09 00:00:00.000000000 Z
11
+ date: 2025-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nickel
@@ -48,6 +48,7 @@ files:
48
48
  - CHANGELOG.md
49
49
  - CODE_OF_CONDUCT.md
50
50
  - Gemfile
51
+ - Gemfile.lock
51
52
  - LICENSE.txt
52
53
  - README.md
53
54
  - Rakefile