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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49f9ad4ada41c9372b1d3ffebb4f44fff6cb96249224c9b62c5063e1836a4c8f
4
- data.tar.gz: da5aa3a5e2cfc882372ef5899694941d32702049323d615acc36644733dabe12
3
+ metadata.gz: 71a7fb49df17324d09d35de586a54edb308f684cad586fefc5a0da8feeb1f6c1
4
+ data.tar.gz: 592f369262e459631dacae459836e804c9fe9777932f9b9e1f6ee9201a6d8e99
5
5
  SHA512:
6
- metadata.gz: 35587b73b6ec5d9d2388ce4d4b95185b982486414f3c5a5874fd7c73ee84dfcab6ba4b0109fcac33bf89576517a48f3a9730e85238ee53557f3b0047e6548c19
7
- data.tar.gz: d772849128665813f3326fa41a684607e1231cd7065828f933dc5b50e51b0f909ef24862020d08af39f2bb2cd07e749c02c0347c00d923fb9ee38f14c69808c3
6
+ metadata.gz: e02396bf9be1f7087122f2f52d5cd7b038716be203ff7303ff99c4335eae2e82a1114d13a782523df4647477865d9972ba257eed2d31ae253992ea98a985d675
7
+ data.tar.gz: ef19c102c52fe69cc767ced8523a841cbea1714e6a9d4cd05f2c45e4c07d4721e33b0abf7fbc84354498bfc02e2cb09168b1ee667c4022b0edb9805a202a6dd6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standup_md (0.3.0)
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.5)
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
- return [] unless StandupMD.config.cli.auto_fill_previous
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
@@ -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] start_and_end_date
161
+ # @param [Hash] {start_date: Date, end_date: Date}
162
162
  #
163
163
  # @return [Boolean] true if successful
164
164
  def write(dates = {})
@@ -5,5 +5,5 @@ module StandupMD
5
5
  # The gem verision
6
6
  #
7
7
  # @return [String]
8
- VERSION = '0.3.3'
8
+ VERSION = '0.3.4'
9
9
  end
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.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-15 00:00:00.000000000 Z
11
+ date: 2020-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake