friends 0.38 → 0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/RELEASING.md +13 -12
- data/lib/friends/introvert.rb +8 -2
- data/lib/friends/version.rb +1 -1
- data/test/commands/edit_spec.rb +1 -0
- data/test/editor +6 -0
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 248e66382022349640d9109c60f0d8f09a0ab10d
|
4
|
+
data.tar.gz: 0c50f046b289c31153acee14945b22717353fa39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e99a4e59121ab6cf0df9afb36e29a18444b39be4450ba1c84e19874456c3b4dee42858a7c7127ce7117cea9720313be1421d655c46feede9f202f317389b3444
|
7
|
+
data.tar.gz: 17cef72eb8ffaa3ee04bcc2b818f207e3f639b5a0217c524e50f6844727b5aa8fd9d0cbe986a76e912ceb1583b216d736ec9cb6e97e1adfcbb9bd34ded8cbf05
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/RELEASING.md
CHANGED
@@ -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.
|
6
|
-
|
7
|
-
2.
|
8
|
-
3.
|
9
|
-
4.
|
10
|
-
5. `
|
11
|
-
6.
|
12
|
-
7.
|
13
|
-
8. `
|
14
|
-
9.
|
15
|
-
10. `
|
16
|
-
11.
|
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!
|
data/lib/friends/introvert.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
|
data/lib/friends/version.rb
CHANGED
data/test/commands/edit_spec.rb
CHANGED
@@ -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
|
|
data/test/editor
CHANGED
@@ -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.
|
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-
|
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:
|