friends 0.4 → 0.5
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 +4 -4
- data/.gitignore +1 -0
- data/README.md +3 -3
- data/lib/friends/introvert.rb +1 -1
- data/lib/friends/version.rb +1 -1
- data/test/introvert_spec.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b230f61e14e6e52e84e98b71a29ab160cfdb212f
|
4
|
+
data.tar.gz: 091b448519ec5cf218c4522b452339abe60ff04a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b05d5a7a8caf7762bd8ad7d5b6ef330013e4167de03ccd4ad164fa331bc2bea99a0d8fb32b3d4a345b776a653534dea554adee0439fb4756ccaa3462544855e0
|
7
|
+
data.tar.gz: 1926c31d2f4e4d5dd3520048672d6f7416248196b9ac6c8bcaa6d727a54a48c4a1da2f746bdbb0621b921d4513298c0523b47ed2bf25aeb33adec36c7afd6d79
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://codeclimate.com/github/JacobEvelyn/friends) [](https://codeclimate.com/github/JacobEvelyn/friends) [](https://travis-ci.org/JacobEvelyn/friends) [](http://inch-ci.org/github/JacobEvelyn/friends)
|
1
|
+
[](https://codeclimate.com/github/JacobEvelyn/friends) [](https://codeclimate.com/github/JacobEvelyn/friends) [](https://travis-ci.org/JacobEvelyn/friends) [](http://inch-ci.org/github/JacobEvelyn/friends) [](https://ghit.me/repo/JacobEvelyn/friends)
|
2
2
|
|
3
3
|
# Friends
|
4
4
|
|
@@ -16,12 +16,12 @@ care about.
|
|
16
16
|
1. **Friends** gives you:
|
17
17
|
- More organization around staying in touch with friends and
|
18
18
|
family.
|
19
|
-
- A way to track
|
19
|
+
- A way to track the ebbs and flows of your relationships over
|
20
20
|
time.
|
21
21
|
- Suggestions for who to call or hang out with when you have free
|
22
22
|
time, whether it's fifteen minutes or an entire weekend.
|
23
23
|
- A low-cost way to record and remember big moments in your life.
|
24
|
-
2. **Friends** stores its data in a
|
24
|
+
2. **Friends** stores its data in a human-readable `friends.md`
|
25
25
|
Markdown file. No proprietary formats here!
|
26
26
|
3. **Friends** is open-source and very open to new ideas. Contribute!
|
27
27
|
|
data/lib/friends/introvert.rb
CHANGED
@@ -83,7 +83,7 @@ module Friends
|
|
83
83
|
activity.description ||= Readline.readline(activity.display_text)
|
84
84
|
|
85
85
|
activity.highlight_friends(introvert: self)
|
86
|
-
@activities
|
86
|
+
@activities.unshift(activity)
|
87
87
|
clean # Write a cleaned file.
|
88
88
|
|
89
89
|
activity # Return the added activity.
|
data/lib/friends/version.rb
CHANGED
data/test/introvert_spec.rb
CHANGED
@@ -236,7 +236,15 @@ describe Friends::Introvert do
|
|
236
236
|
it "adds the given activity" do
|
237
237
|
stub_friends(friends) do
|
238
238
|
subject
|
239
|
-
introvert.activities.
|
239
|
+
introvert.activities.first.description.must_equal activity_description
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
it "adds the activity after others on the same day" do
|
244
|
+
stub_friends(friends) do
|
245
|
+
introvert.add_activity(serialization: "2014-01-01: Ate breakfast.")
|
246
|
+
subject
|
247
|
+
introvert.activities.first.description.must_equal activity_description
|
240
248
|
end
|
241
249
|
end
|
242
250
|
|
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.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Evelyn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|