rbtclk 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: 17fc4da29cb43bc63ccbf700de720b9996ec3f01
4
- data.tar.gz: c5032087f6b07e91ca96feb74f0a7dd72589ae53
3
+ metadata.gz: c6661922698b33c02330b03905086dc86a0ce5d2
4
+ data.tar.gz: 650d0735a0989ee71069ccbd3b7b1ca98fb58bf8
5
5
  SHA512:
6
- metadata.gz: 99ac089abae20f02e34767571df0cae822c6e40ac0316b5f9578e335abc494f0fc5021d3838600833b2b100df9df77474bd901abf63ea34c3b1306a184756225
7
- data.tar.gz: 6d317ba43f872d80fbf61d1742e1404b2e04d26a11ab37fecd2b04c43904b5b203bef70ad0674f3abb640f66022a5c1e00cff99907c59c8068a362bf20ecfac6
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
- - [ ] Configuration by ~/.rbtclk
198
+ - [x] Configuration by ~/.rbtclk
172
199
  - [ ] Sound
173
200
  - [ ] Refactoring
174
201
 
data/config/default.rb CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Rbtclk.configure do |c|
7
7
  # clock, countup and countdown are available.
8
- c.mode = "timer"
8
+ c.mode = "clock"
9
9
 
10
10
  # Font setting depends on Artii library.
11
11
  # https://github.com/miketierney/artii/tree/master/lib/figlet/fonts
@@ -4,5 +4,5 @@
4
4
  # http://opensource.org/licenses/mit-license.php
5
5
 
6
6
  module Rbtclk
7
- VERSION = "0.3.2"
7
+ VERSION = "0.3.3"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbtclk
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
  - Moza USANE