friends 0.20 → 0.22

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: 1429eb3d555f53ebb68816b253350252370d37bc
4
- data.tar.gz: 42095e0608c73c17fd75f8f4bedab8313e19a4b1
3
+ metadata.gz: 66aa8129ccdd246b263b11bca7381c826e051d3b
4
+ data.tar.gz: 186024855c83d91b0f42f29e5e09a9ca8dfab8c3
5
5
  SHA512:
6
- metadata.gz: ab66c9042a1c23ec4e5c2a1685d03b91d5b66c1382ca3ed64b1822277bf08ed1bbe321a9144f59256d6c369b93f9b954d8d6307a9a50b6c9f6fc4374c9e7df6f
7
- data.tar.gz: 87719311645cdff9c7af1a862c9533e8671c1e000c7221f7833226bfcad3f86935de92440acbad5a65aa87bf005485c2b31589cdb3d9ea094973093d13896add
6
+ metadata.gz: 119e32928a14606556b7d0601e11d5223c3ebca405707d44a1a06e497c73918b13fd7a497c1aa1a4ac264344bd57b3007db06e52429a4f22922bf8f748d62be1
7
+ data.tar.gz: 8a4c1483bb0d90cddbdf011978a2a94dd6ea7e1a6e8825cd37d9e51c17b6b7a4c4d766a8b36d812cb3ab061a1bb2463b3c936e0dfad65c77456ece09c19680ab
@@ -1,5 +1,25 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.22](https://github.com/JacobEvelyn/friends/tree/v0.22) (2016-05-14)
4
+ [Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.21...v0.22)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Fix `undefined variable "limit"` errors [\#128](https://github.com/JacobEvelyn/friends/issues/128)
9
+
10
+ ## [v0.21](https://github.com/JacobEvelyn/friends/tree/v0.21) (2016-05-14)
11
+ [Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.20...v0.21)
12
+
13
+ **Implemented enhancements:**
14
+
15
+ - Remove need for quotes from `friends add activity` [\#121](https://github.com/JacobEvelyn/friends/issues/121)
16
+ - Remove need for quotes from `friends add friend` [\#120](https://github.com/JacobEvelyn/friends/issues/120)
17
+
18
+ **Merged pull requests:**
19
+
20
+ - Fix favorite commands \(undefined variable "limit"\) [\#126](https://github.com/JacobEvelyn/friends/pull/126) ([andypearson](https://github.com/andypearson))
21
+ - Remove need to quote for `add friend` and `add activity` [\#123](https://github.com/JacobEvelyn/friends/pull/123) ([JacobEvelyn](https://github.com/JacobEvelyn))
22
+
3
23
  ## [v0.20](https://github.com/JacobEvelyn/friends/tree/v0.20) (2016-05-08)
4
24
  [Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.19...v0.20)
5
25
 
data/README.md CHANGED
@@ -148,7 +148,7 @@ File cleaned: "./test/tmp/friends.md"
148
148
  - `--quiet`: Quiet output messages.
149
149
 
150
150
  ```bash
151
- $ friends --quiet add activity "Went rollerskating with George."
151
+ $ friends --quiet add activity Went rollerskating with George.
152
152
  $ # No output!
153
153
  ```
154
154
 
@@ -190,7 +190,7 @@ alias friends="friends --filename '~/Dropbox/friends.md'"
190
190
  #### `add activity`
191
191
 
192
192
  ```bash
193
- $ friends add activity "Got lunch with Grace and George."
193
+ $ friends add activity Got lunch with Grace and George.
194
194
  Activity added: "2015-01-04: Got lunch with Grace Hopper and George Washington Carver."
195
195
  ```
196
196
 
@@ -200,7 +200,7 @@ Nicknames will be used to match friends in activities,
200
200
  just like formal names:
201
201
 
202
202
  ```bash
203
- $ friends add activity "Invented debugging with The Admiral."
203
+ $ friends add activity Invented debugging with The Admiral.
204
204
  Activity added: "2016-01-06: Invented debugging with Grace Hopper."
205
205
  ```
206
206
 
@@ -216,7 +216,7 @@ Activity added: "2016-05-01: Got lunch with Earnest Hemingway and Earnest Shackl
216
216
  And locations will be matched as well:
217
217
 
218
218
  ```bash
219
- $ friends add activity "Went swimming near atlantis with George."
219
+ $ friends add activity Went swimming near atlantis with George.
220
220
  Activity added: "2016-01-06: Went swimming near Atlantis with George Washington Carver."
221
221
  ```
222
222
 
@@ -231,7 +231,7 @@ Activity added: "2016-05-05: The office softball team wins a game! #work #exerci
231
231
  You can of course specify a date for the activity:
232
232
 
233
233
  ```bash
234
- $ friends add activity "Yesterday: Celebrated the new year with Marie."
234
+ $ friends add activity Yesterday: Celebrated the new year with Marie.
235
235
  Activity added: "2014-12-31: Celebrated the new year with Marie Curie."
236
236
  ```
237
237
 
@@ -245,7 +245,7 @@ $ friends add activity 2015-11-01
245
245
  **Natural-language dates** work just fine:
246
246
 
247
247
  ```bash
248
- $ friends add activity 'last Monday'
248
+ $ friends add activity last Monday
249
249
  2016-03-07: <type description here>
250
250
  ```
251
251
 
@@ -259,7 +259,7 @@ Activity added: "2015-11-01: Grace Hopper and I went to Marie's Diner. George ha
259
259
  #### `add friend`
260
260
 
261
261
  ```bash
262
- $ friends add friend "Grace Hopper"
262
+ $ friends add friend Grace Hopper
263
263
  Friend added: "Grace Hopper"
264
264
  ```
265
265
 
@@ -179,7 +179,7 @@ command :list do |list|
179
179
  list_favorite_friends.action do |_, options|
180
180
  favorites = @introvert.list_favorite_friends(limit: options[:limit])
181
181
 
182
- if limit == 1
182
+ if options[:limit] == 1
183
183
  puts "Your best friend is #{favorites.first}"
184
184
  else
185
185
  puts "Your favorite friends:"
@@ -203,7 +203,7 @@ command :list do |list|
203
203
  list_favorite_locations.action do |_, options|
204
204
  favorites = @introvert.list_favorite_locations(limit: options[:limit])
205
205
 
206
- if limit == 1
206
+ if options[:limit] == 1
207
207
  puts "Your favorite location is #{favorites.first}"
208
208
  else
209
209
  puts "Your favorite locations:"
@@ -224,7 +224,7 @@ command :add do |add|
224
224
  add.arg_name "NAME"
225
225
  add.command :friend do |add_friend|
226
226
  add_friend.action do |_, _, args|
227
- friend = @introvert.add_friend(name: args.first)
227
+ friend = @introvert.add_friend(name: args.join(" "))
228
228
  @message = "Friend added: \"#{friend.name}\""
229
229
  @dirty = true # Mark the file for cleaning.
230
230
  end
@@ -234,7 +234,7 @@ command :add do |add|
234
234
  add.arg_name "DESCRIPTION"
235
235
  add.command :activity do |add_activity|
236
236
  add_activity.action do |_, _, args|
237
- activity = @introvert.add_activity(serialization: args.first)
237
+ activity = @introvert.add_activity(serialization: args.join(" "))
238
238
 
239
239
  # If there's no description, prompt the user for one.
240
240
  if activity.description.nil? || activity.description.empty?
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Friends
3
- VERSION = "0.20".freeze
3
+ VERSION = "0.22".freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friends
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.20'
4
+ version: '0.22'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Evelyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-08 00:00:00.000000000 Z
11
+ date: 2016-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic