friends 0.4 → 0.5

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: a63257ad72fd3c60181fca07b37ebba7833e2d00
4
- data.tar.gz: 41fd48ad81de9249985c62979b112f03f9e90bdf
3
+ metadata.gz: b230f61e14e6e52e84e98b71a29ab160cfdb212f
4
+ data.tar.gz: 091b448519ec5cf218c4522b452339abe60ff04a
5
5
  SHA512:
6
- metadata.gz: bb6b46934923c9973dd04c8eec66b03a455cddbec686e6d6d0b5c353fb624c99cb7dc2f3e95688e742b6e14f5709b11b0bbe30fa0587e219133ea5b156df1516
7
- data.tar.gz: 15bab42fc57ad1ce636223cf1595ee0d4cee6390d1be162b68bf1b6701fea611781984ecc999e7d475e21e5498b7aa7fa8c3a47c398918c4e2f67bb42cb71429
6
+ metadata.gz: b05d5a7a8caf7762bd8ad7d5b6ef330013e4167de03ccd4ad164fa331bc2bea99a0d8fb32b3d4a345b776a653534dea554adee0439fb4756ccaa3462544855e0
7
+ data.tar.gz: 1926c31d2f4e4d5dd3520048672d6f7416248196b9ac6c8bcaa6d727a54a48c4a1da2f746bdbb0621b921d4513298c0523b47ed2bf25aeb33adec36c7afd6d79
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ mkmf.log
15
15
  *.gem
16
16
  ideas.txt
17
17
  TODO.txt
18
+ .DS_Store
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Code Climate](https://codeclimate.com/github/JacobEvelyn/friends/badges/gpa.svg)](https://codeclimate.com/github/JacobEvelyn/friends) [![Test Coverage](https://codeclimate.com/github/JacobEvelyn/friends/badges/coverage.svg)](https://codeclimate.com/github/JacobEvelyn/friends) [![Build Status](https://travis-ci.org/JacobEvelyn/friends.svg)](https://travis-ci.org/JacobEvelyn/friends) [![Inline docs](http://inch-ci.org/github/JacobEvelyn/friends.png)](http://inch-ci.org/github/JacobEvelyn/friends)
1
+ [![Code Climate](https://codeclimate.com/github/JacobEvelyn/friends/badges/gpa.svg)](https://codeclimate.com/github/JacobEvelyn/friends) [![Test Coverage](https://codeclimate.com/github/JacobEvelyn/friends/badges/coverage.svg)](https://codeclimate.com/github/JacobEvelyn/friends) [![Build Status](https://travis-ci.org/JacobEvelyn/friends.svg)](https://travis-ci.org/JacobEvelyn/friends) [![Inline docs](http://inch-ci.org/github/JacobEvelyn/friends.png)](http://inch-ci.org/github/JacobEvelyn/friends) [![ghit.me](https://ghit.me/badge.svg?repo=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 of the ebbs and flows of your relationships over
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 universally readable `friends.md`
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
 
@@ -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 << activity
86
+ @activities.unshift(activity)
87
87
  clean # Write a cleaned file.
88
88
 
89
89
  activity # Return the added activity.
@@ -1,3 +1,3 @@
1
1
  module Friends
2
- VERSION = "0.4"
2
+ VERSION = "0.5"
3
3
  end
@@ -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.last.description.must_equal activity_description
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'
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: 2015-11-14 00:00:00.000000000 Z
11
+ date: 2016-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli