friends 0.38 → 0.39

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be5bfb57559485e598831f2e273f27fc57eca790
4
- data.tar.gz: afbd6cd665503573e8cff620073e22617a18f810
3
+ metadata.gz: 248e66382022349640d9109c60f0d8f09a0ab10d
4
+ data.tar.gz: 0c50f046b289c31153acee14945b22717353fa39
5
5
  SHA512:
6
- metadata.gz: 5da144c036b93a8e05bed9cc00e37167a168d6f64031c864827a6b348e7f96902a193c886ae0b3af8bd758aebefce576bcb5b931241bf0f91b3e5b539a6b3b91
7
- data.tar.gz: 8d25dbdde17277d93a73fe7e9ed19472e7e29abfcd647bf7a2545346f3cabdd164bd03b88d3a4bfe8153d82522f9c0b0d267aadc923e314c892a7bece849a7f7
6
+ metadata.gz: e99a4e59121ab6cf0df9afb36e29a18444b39be4450ba1c84e19874456c3b4dee42858a7c7127ce7117cea9720313be1421d655c46feede9f202f317389b3444
7
+ data.tar.gz: 17cef72eb8ffaa3ee04bcc2b818f207e3f639b5a0217c524e50f6844727b5aa8fd9d0cbe986a76e912ceb1583b216d736ec9cb6e97e1adfcbb9bd34ded8cbf05
@@ -14,6 +14,17 @@ making a small donation (🙏) to show you appreciate its continued development.
14
14
 
15
15
  👆 Donate with these buttons! 👆
16
16
 
17
+ ## [v0.39](https://github.com/JacobEvelyn/friends/tree/v0.39) (2018-08-02)
18
+ [Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.38...v0.39)
19
+
20
+ **Fixed bugs:**
21
+
22
+ - Don't treat multiple additions of the same friend in `friends edit` as conflicting friends [\#199](https://github.com/JacobEvelyn/friends/issues/199)
23
+
24
+ **Merged pull requests:**
25
+
26
+ - Correctly handle duplicate new friends/locations when editing [\#204](https://github.com/JacobEvelyn/friends/pull/204) ([JacobEvelyn](https://github.com/JacobEvelyn))
27
+
17
28
  ## [v0.38](https://github.com/JacobEvelyn/friends/tree/v0.38) (2018-07-24)
18
29
  [Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.37...v0.38)
19
30
 
@@ -2,15 +2,16 @@
2
2
 
3
3
  These are steps for the maintainer to take to release a new version of this gem.
4
4
 
5
- 1. On the `master` branch, update the `VERSION` constant in
6
- `lib/friends/version.rb`.
7
- 2. Commit the change (`git add -A && git commit -m 'Bump to vX.X'`).
8
- 3. Add a tag (`git tag -am "vX.X" vX.X`).
9
- 4. `git push && git push --tags`
10
- 5. `CHANGELOG_GITHUB_TOKEN=... github_changelog_generator`
11
- 6. Confirm the `CHANGELOG` looks correct with `git diff`
12
- 7. Copy-paste the donation info from the `README` to the `CHANGELOG`.
13
- 8. `git add -A && git commit -m 'Update CHANGELOG for vX.X'`
14
- 9. `git push`
15
- 10. `gem build friends.gemspec && gem push *.gem && rm *.gem`
16
- 11. Celebrate!
5
+ 1. On the `master` branch, update the `VERSION` constant in
6
+ `lib/friends/version.rb`.
7
+ 2. Commit the change (`git add -A && git commit -m 'Bump to vX.X'`).
8
+ 3. Add a tag (`git tag -am "vX.X" vX.X`).
9
+ 4. `git push && git push --tags`
10
+ 5. Copy the top of `CHANGELOG` to the clipboard.
11
+ 6. `CHANGELOG_GITHUB_TOKEN=... github_changelog_generator`
12
+ 7. Paste from the clipboard to the top of the `CHANGELOG`.
13
+ 8. Confirm the `CHANGELOG` looks correct with `git diff`
14
+ 9. `git add -A && git commit -m 'Update CHANGELOG for vX.X'`
15
+ 10. `git push`
16
+ 11. `gem build friends.gemspec && gem push *.gem && rm *.gem`
17
+ 12. Celebrate!
@@ -43,11 +43,17 @@ module Friends
43
43
  # locations.
44
44
  (@activities + @notes).each do |event|
45
45
  event.friend_names.each do |name|
46
- add_friend(name: name) unless friend_names.include? name
46
+ unless friend_names.include? name
47
+ add_friend(name: name)
48
+ friend_names << name
49
+ end
47
50
  end
48
51
 
49
52
  event.location_names.each do |name|
50
- add_location(name: name) unless location_names.include? name
53
+ unless location_names.include? name
54
+ add_location(name: name)
55
+ location_names << name
56
+ end
51
57
  end
52
58
  end
53
59
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Friends
4
- VERSION = "0.38".freeze
4
+ VERSION = "0.39".freeze
5
5
  end
@@ -81,6 +81,7 @@ Not cleaning file: "#{filename}" ("exit 1 #" did not exit successfully)
81
81
  - 2015-11-01: **Grace Hopper** and I went to _Marie's Diner_. George had to cancel at the last minute. @food
82
82
  - 2015-01-04: Got lunch with **Grace Hopper** and **George Washington Carver**. @food
83
83
  - 2014-12-31: Celebrated the new year in _Paris_ with **Marie Curie**. @partying
84
+ - 2014-12-16: Okay, yep, I definitely just saw **Bigfoot** in the _Mysterious Mountains_!
84
85
  - 2014-12-15: I just had a possible **Bigfoot** sighting! I think I may have seen **Bigfoot** in the _Mysterious Mountains_.
85
86
  - 2014-11-15: Talked to **George Washington Carver** on the phone for an hour.
86
87
 
@@ -9,7 +9,13 @@ filename = ARGV[0]
9
9
  current_file_contents = File.read(filename).split("\n")
10
10
  File.open(filename, "w") do |file|
11
11
  file.puts current_file_contents[0]
12
+
13
+ # We add two activities that contain the same new friend and new
14
+ # location, to test that this doesn't crash `friends edit` as
15
+ # previously happened.
12
16
  file.puts "- 2014-12-15: I just had a possible **Bigfoot** sighting! "\
13
17
  "I think I may have seen **Bigfoot** in the _Mysterious Mountains_."
18
+ file.puts "- 2014-12-16: Okay, yep, I definitely just saw **Bigfoot** in "\
19
+ "the _Mysterious Mountains_!"
14
20
  file.puts current_file_contents.drop(1)
15
21
  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.38'
4
+ version: '0.39'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Evelyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2018-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
@@ -295,4 +295,3 @@ test_files:
295
295
  - test/editor
296
296
  - test/helper.rb
297
297
  - test/tmp/.keep
298
- has_rdoc: