rbtclk 0.3.2 → 0.3.3
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 +4 -4
- data/README.md +28 -1
- data/config/default.rb +1 -1
- data/lib/rbtclk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6661922698b33c02330b03905086dc86a0ce5d2
|
4
|
+
data.tar.gz: 650d0735a0989ee71069ccbd3b7b1ca98fb58bf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b509b6c7ccc437f2e2cc521e03c534b98d13230ed8697bca696f958ea2e7f4c36c4b942c3385287ad7bc56445cf9113ba7711a46c8dbe2e0131d9d0f739ef20
|
7
|
+
data.tar.gz: 7a6a4ea38332996fcd790f88a305645c7c6d76dd82c9166bd122f4bc6a86139aefd5a73d1342c28d75689f1b607f091d39c00268edbf0e0641f6843e98303e65
|
data/README.md
CHANGED
@@ -163,12 +163,39 @@ $ rbtclk -c magenta
|
|
163
163
|
$ rbtclk --color magenta
|
164
164
|
```
|
165
165
|
|
166
|
+
## Configuration by .rbtclk file
|
167
|
+
|
168
|
+
The default bhavior can be changed by `~/.rbtclk` file.
|
169
|
+
Sample config file is in `RBTCLK_ROOT/config/default.rb`.
|
170
|
+
|
171
|
+
```ruby
|
172
|
+
Rbtclk.configure do |c|
|
173
|
+
# clock, countup and countdown are available.
|
174
|
+
c.mode = "clock"
|
175
|
+
|
176
|
+
# Font setting depends on Artii library.
|
177
|
+
# https://github.com/miketierney/artii/tree/master/lib/figlet/fonts
|
178
|
+
# You can use a lot of font types.
|
179
|
+
c.font = "clb8x8"
|
180
|
+
|
181
|
+
# You can use Ruby's Date#strftime style.
|
182
|
+
# It is compatible with strftime(3) of standard C library.
|
183
|
+
c.format = "%X"
|
184
|
+
|
185
|
+
# black, red, green, yellow, blue, magenta, cyan and white are available.
|
186
|
+
c.color = "black"
|
187
|
+
|
188
|
+
# You can specify limit time as seconds in countdown timer.
|
189
|
+
c.time = "180"
|
190
|
+
end
|
191
|
+
```
|
192
|
+
|
166
193
|
## Progress Report
|
167
194
|
|
168
195
|
- [x] Clock
|
169
196
|
- [x] Countup Timer
|
170
197
|
- [x] Countdown Timer
|
171
|
-
- [
|
198
|
+
- [x] Configuration by ~/.rbtclk
|
172
199
|
- [ ] Sound
|
173
200
|
- [ ] Refactoring
|
174
201
|
|
data/config/default.rb
CHANGED
data/lib/rbtclk/version.rb
CHANGED