friends 0.31 → 0.32
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/CHANGELOG.md +11 -0
- data/CONTRIBUTING.md +8 -27
- data/README.md +1 -1
- data/friends.gemspec +1 -1
- data/lib/friends/version.rb +1 -1
- data/test/commands/edit_spec.rb +27 -0
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6442d6d8566016d767f79473e03abed09746b0b8
|
|
4
|
+
data.tar.gz: 63b53260698a0d144bce84e399fcf5947e6f9b13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a526deeed0f736bb3dc7d5b9f67be7c7e9debaa1d85e7effc65b74c126db5e0acd4eef8a5e6fdb09808d7081a61de3afb9631feca4fcab16ae4865d48d68c93a
|
|
7
|
+
data.tar.gz: 9c2a52e89e4aaea1ddfb4e1f3f674d8031fff252374868403a9191104a8d6677fb4e65f541984b8caa1ba87ff850c926958f8f0d3515585546569b70ebab0daa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v0.32](https://github.com/JacobEvelyn/friends/tree/v0.32) (2017-07-25)
|
|
4
|
+
[Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.31...v0.32)
|
|
5
|
+
|
|
6
|
+
**Fixed bugs:**
|
|
7
|
+
|
|
8
|
+
- Incorrect version of `gli` specified in gemspec [\#178](https://github.com/JacobEvelyn/friends/issues/178)
|
|
9
|
+
|
|
10
|
+
**Merged pull requests:**
|
|
11
|
+
|
|
12
|
+
- Fix gli dependency [\#179](https://github.com/JacobEvelyn/friends/pull/179) ([JacobEvelyn](https://github.com/JacobEvelyn))
|
|
13
|
+
|
|
3
14
|
## [v0.31](https://github.com/JacobEvelyn/friends/tree/v0.31) (2017-06-02)
|
|
4
15
|
[Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.30...v0.31)
|
|
5
16
|
|
data/CONTRIBUTING.md
CHANGED
|
@@ -11,8 +11,8 @@ it's yours! If you already have something to work on,
|
|
|
11
11
|
that's great as well!
|
|
12
12
|
2. Fork the repository (https://github.com/JacobEvelyn/friends/fork).
|
|
13
13
|
3. Clone your forked repository.
|
|
14
|
-
4. From within the repository directory, run
|
|
15
|
-
`bundle install
|
|
14
|
+
4. From within the repository directory, run
|
|
15
|
+
`bundle install` to install all dependencies needed for development.
|
|
16
16
|
5. Create your feature branch
|
|
17
17
|
(`git checkout -b my-new-feature`).
|
|
18
18
|
6. Make your changes. Add or modify tests if necessary!
|
|
@@ -20,32 +20,13 @@ that's great as well!
|
|
|
20
20
|
existing style and commenting patterns. You can run the local version of the
|
|
21
21
|
`friends` script with `bundle exec bin/friends`.
|
|
22
22
|
7. Update the `README.md` as necessary to include your changes.
|
|
23
|
+
8. Check your changes for code style by running `bundle exec rubocop .` in
|
|
24
|
+
the repository directory. You may see output indicating that some lines
|
|
25
|
+
differ from the style guidelines. Change your code so that Rubocop gives
|
|
26
|
+
no warnings or errors (and don't hesitate to reach out if you don't know how!—this practice is meant to keep the code clean but it shouldn't be
|
|
27
|
+
scary and it's totally fine to need help!).
|
|
23
28
|
8. Commit your changes
|
|
24
|
-
(`git commit -am "Add some feature"`).
|
|
25
|
-
output from
|
|
26
|
-
[`overcommit`](https://github.com/brigade/overcommit) as
|
|
27
|
-
it runs commit hooks that looks something like this:
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
Running pre-commit hooks
|
|
31
|
-
Analyzing with RuboCop......................................[RuboCop] OK
|
|
32
|
-
|
|
33
|
-
✓ All pre-commit hooks passed
|
|
34
|
-
|
|
35
|
-
Running commit-msg hooks
|
|
36
|
-
Checking subject capitalization..................[CapitalizedSubject] OK
|
|
37
|
-
Checking subject line.............................[SingleLineSubject] OK
|
|
38
|
-
Checking text width.......................................[TextWidth] OK
|
|
39
|
-
Checking for trailing periods in subject.............[TrailingPeriod] OK
|
|
40
|
-
|
|
41
|
-
✓ All commit-msg hooks passed
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
If any of the commit hook checks fail, fix them if you
|
|
45
|
-
can but don't hesitate to reach out if you don't know
|
|
46
|
-
how! This practice is meant to keep the code clean but
|
|
47
|
-
it shouldn't be scary and it's totally fine to need
|
|
48
|
-
help!
|
|
29
|
+
(`git commit -am "Add some feature"`).
|
|
49
30
|
9. Push your changes to GitHub, and open a Pull Request.
|
|
50
31
|
10. Your code will be reviewed and merged as quickly as
|
|
51
32
|
possible!
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[](https://badge.fury.io/rb/friends) [](https://gemnasium.com/github.com/JacobEvelyn/friends)
|
|
2
|
-
[](https://coveralls.io/github/JacobEvelyn/friends) [](https://travis-ci.org/JacobEvelyn/friends) [](http://inch-ci.org/github/JacobEvelyn/friends) [](https://coveralls.io/github/JacobEvelyn/friends) [](https://travis-ci.org/JacobEvelyn/friends) [](http://clayallsopp.github.io/readme-score?url=JacobEvelyn/friends) [](http://inch-ci.org/github/JacobEvelyn/friends) [](https://rubygems.org/gems/friends)
|
|
3
3
|
|
|
4
4
|
# `friends`
|
|
5
5
|
|
data/friends.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.required_ruby_version = ">= 2.1"
|
|
25
25
|
|
|
26
26
|
spec.add_dependency "chronic", "~> 0.10"
|
|
27
|
-
spec.add_dependency "gli", "~> 2.
|
|
27
|
+
spec.add_dependency "gli", "~> 2.14"
|
|
28
28
|
spec.add_dependency "paint", "~> 2.0"
|
|
29
29
|
spec.add_dependency "semverse", "~> 2.0"
|
|
30
30
|
|
data/lib/friends/version.rb
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "./test/helper"
|
|
4
|
+
|
|
5
|
+
clean_describe "edit" do
|
|
6
|
+
subject do
|
|
7
|
+
stdout, stderr, status = Open3.capture3(
|
|
8
|
+
"EDITOR=cat bundle exec bin/friends --colorless --filename #{filename} edit"
|
|
9
|
+
)
|
|
10
|
+
{
|
|
11
|
+
stdout: stdout,
|
|
12
|
+
stderr: stderr,
|
|
13
|
+
status: status.exitstatus
|
|
14
|
+
}
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
let(:content) { CONTENT }
|
|
18
|
+
|
|
19
|
+
it 'opens the file in the "editor"' do
|
|
20
|
+
# Because of the way that the edit command uses `Kernel.exec` to replace itself,
|
|
21
|
+
# our `Open3.capture3` call doesn't return STDOUT from before the `Kernel.exec`
|
|
22
|
+
# call, meaning we can't test output of the status message we print out, and
|
|
23
|
+
# our test here can check that STDOUT is equivalent to the `Kernel.exec` command's
|
|
24
|
+
# output, even though visually that's not what happens.
|
|
25
|
+
stdout_only content
|
|
26
|
+
end
|
|
27
|
+
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.32'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jacob Evelyn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chronic
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.
|
|
33
|
+
version: '2.14'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2.
|
|
40
|
+
version: '2.14'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: paint
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -215,6 +215,7 @@ files:
|
|
|
215
215
|
- test/commands/add/nickname_spec.rb
|
|
216
216
|
- test/commands/add/tag_spec.rb
|
|
217
217
|
- test/commands/clean_spec.rb
|
|
218
|
+
- test/commands/edit_spec.rb
|
|
218
219
|
- test/commands/graph_spec.rb
|
|
219
220
|
- test/commands/help_spec.rb
|
|
220
221
|
- test/commands/list/activities_spec.rb
|
|
@@ -264,6 +265,7 @@ test_files:
|
|
|
264
265
|
- test/commands/add/nickname_spec.rb
|
|
265
266
|
- test/commands/add/tag_spec.rb
|
|
266
267
|
- test/commands/clean_spec.rb
|
|
268
|
+
- test/commands/edit_spec.rb
|
|
267
269
|
- test/commands/graph_spec.rb
|
|
268
270
|
- test/commands/help_spec.rb
|
|
269
271
|
- test/commands/list/activities_spec.rb
|