standup_md 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +9 -1
- data/lib/standup_md/cli/helpers.rb +3 -1
- data/lib/standup_md/file.rb +1 -1
- data/lib/standup_md/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a7fb49df17324d09d35de586a54edb308f684cad586fefc5a0da8feeb1f6c1
|
4
|
+
data.tar.gz: 592f369262e459631dacae459836e804c9fe9777932f9b9e1f6ee9201a6d8e99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e02396bf9be1f7087122f2f52d5cd7b038716be203ff7303ff99c4335eae2e82a1114d13a782523df4647477865d9972ba257eed2d31ae253992ea98a985d675
|
7
|
+
data.tar.gz: ef19c102c52fe69cc767ced8523a841cbea1714e6a9d4cd05f2c45e4c07d4721e33b0abf7fbc84354498bfc02e2cb09168b1ee667c4022b0edb9805a202a6dd6
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standup_md (0.3.
|
4
|
+
standup_md (0.3.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
docile (~> 1.1)
|
14
14
|
simplecov-html (~> 0.11)
|
15
15
|
simplecov-html (0.12.2)
|
16
|
-
test-unit (3.3.
|
16
|
+
test-unit (3.3.6)
|
17
17
|
power_assert
|
18
18
|
|
19
19
|
PLATFORMS
|
data/README.md
CHANGED
@@ -28,6 +28,7 @@ View on: [Github](https://github.com/evanthegrayt/standup_md) |
|
|
28
28
|
- [Using existing standup files](#using-existing-standup-files)
|
29
29
|
- [API](#api)
|
30
30
|
- [API Examples](#api-examples)
|
31
|
+
- [Adding an entry for today](#adding-an-entry-for-today)
|
31
32
|
- [Documentation](https://evanthegrayt.github.io/standup_md/doc/index.html)
|
32
33
|
- [Reporting Bugs and Requesting Features](#reporting-bugs-and-requesting-features)
|
33
34
|
- [Self-Promotion](#self-promotion)
|
@@ -49,6 +50,11 @@ entry exists, it will be added to today's entry as your previous day's work. See
|
|
49
50
|
in your own code somehow.
|
50
51
|
|
51
52
|
## Installation
|
53
|
+
If you don't have the permissions to install system-wide gems, you're probabaly
|
54
|
+
also running an older version of ruby. I recommend installing
|
55
|
+
[rbenv](https://github.com/rbenv/rbenv#installation), and then installing an
|
56
|
+
up-to-date version of ruby.
|
57
|
+
|
52
58
|
### Via RubyGems
|
53
59
|
Just install the gem!
|
54
60
|
|
@@ -167,6 +173,8 @@ them again.
|
|
167
173
|
|
168
174
|
|
169
175
|
#### Available Config File Options and Defaults
|
176
|
+
For command-line usage, this file needs to be named `~/.standuprc`. To use in a
|
177
|
+
rails project, create an initializer (`config/initializers/standup_md.rb`).
|
170
178
|
|
171
179
|
```ruby
|
172
180
|
StandupMD.configure do |c|
|
@@ -287,7 +295,7 @@ robust, and is available for use in your own projects. A quick example of how
|
|
287
295
|
to write a new entry via code could look like the following:
|
288
296
|
|
289
297
|
### API Examples
|
290
|
-
|
298
|
+
#### Adding an entry for today
|
291
299
|
```ruby
|
292
300
|
require 'standup_md'
|
293
301
|
|
@@ -137,7 +137,9 @@ module StandupMD
|
|
137
137
|
#
|
138
138
|
# @return [Array]
|
139
139
|
def set_previous_entry(file)
|
140
|
-
|
140
|
+
unless StandupMD.config.cli.auto_fill_previous
|
141
|
+
return Standup.config.entry.previous_entry
|
142
|
+
end
|
141
143
|
return prev_entry(prev_file.load.entries) if file.new? && prev_file
|
142
144
|
prev_entry(file.entries)
|
143
145
|
end
|
data/lib/standup_md/file.rb
CHANGED
@@ -158,7 +158,7 @@ module StandupMD
|
|
158
158
|
# This method is destructive; if a file for entries in the date range
|
159
159
|
# already exists, it will be clobbered with the entries in the range.
|
160
160
|
#
|
161
|
-
# @param [Hash]
|
161
|
+
# @param [Hash] {start_date: Date, end_date: Date}
|
162
162
|
#
|
163
163
|
# @return [Boolean] true if successful
|
164
164
|
def write(dates = {})
|
data/lib/standup_md/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standup_md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Gray
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|