friends 0.40 → 0.41
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 +7 -0
- data/friends.gemspec +3 -3
- data/lib/friends.rb +0 -1
- data/lib/friends/commands/update.rb +2 -0
- data/lib/friends/event.rb +1 -0
- data/lib/friends/friend.rb +1 -1
- data/lib/friends/post_install_message.rb +8 -0
- data/lib/friends/tag_regex.rb +5 -0
- data/lib/friends/version.rb +1 -1
- data/test/commands/update_spec.rb +6 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3a20e74fcab32686f8fa03875c9de42fbf295ba1b7a6d6ac40a64cd85f8a7b6
|
4
|
+
data.tar.gz: 7a7b0bb65f1ad38dccb309cb1496225dc04df78b1fddd805a3ad9201f0bea678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1078bdfe03b7a97434ff4ef8a1359397190840ac748aa5303a6edf26c035bd84e09b478e8a6a1cab61340551b6384c3e1bd9fd2c068c7c4368cce2c4b1e5905e
|
7
|
+
data.tar.gz: 97f7ce57bcf30df4e6b1d1b017ce46c0d0878bd5e6dbc9569a517976925121638bc62f1ae9f356f6b4bcb85a9015cdfbbee4aa47df30991fa09e09d07e8cdbb4
|
data/CHANGELOG.md
CHANGED
@@ -14,6 +14,13 @@ making a small donation (🙏) to show you appreciate its continued development.
|
|
14
14
|
|
15
15
|
👆 Donate with these buttons! 👆
|
16
16
|
|
17
|
+
## [v0.41](https://github.com/JacobEvelyn/friends/tree/v0.41) (2018-09-22)
|
18
|
+
[Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.40...v0.41)
|
19
|
+
|
20
|
+
**Merged pull requests:**
|
21
|
+
|
22
|
+
- Improve post-install message and rearrange constants [\#206](https://github.com/JacobEvelyn/friends/pull/206) ([JacobEvelyn](https://github.com/JacobEvelyn))
|
23
|
+
|
17
24
|
## [v0.40](https://github.com/JacobEvelyn/friends/tree/v0.40) (2018-09-22)
|
18
25
|
[Full Changelog](https://github.com/JacobEvelyn/friends/compare/v0.39...v0.40)
|
19
26
|
|
data/friends.gemspec
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
lib = File.expand_path("lib", __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
5
6
|
require "friends/version"
|
7
|
+
require "friends/post_install_message"
|
6
8
|
|
7
9
|
Gem::Specification.new do |spec|
|
8
10
|
spec.name = "friends"
|
@@ -14,9 +16,7 @@ Gem::Specification.new do |spec|
|
|
14
16
|
"Introvert-tested. Extrovert-approved."
|
15
17
|
spec.homepage = "https://github.com/JacobEvelyn/friends"
|
16
18
|
spec.license = "MIT"
|
17
|
-
spec.post_install_message =
|
18
|
-
"consider making a small donation:\n\t"\
|
19
|
-
"https://github.com/JacobEvelyn/friends#contributing-its-encouraged"
|
19
|
+
spec.post_install_message = Friends::POST_INSTALL_MESSAGE
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0")
|
22
22
|
spec.executables = ["friends"]
|
data/lib/friends.rb
CHANGED
@@ -14,6 +14,7 @@ command :update do |update|
|
|
14
14
|
unless global_options[:quiet]
|
15
15
|
if $?.success?
|
16
16
|
puts Paint["Updated to friends #{remote_version}", :bold, :green]
|
17
|
+
puts Friends::POST_INSTALL_MESSAGE
|
17
18
|
else
|
18
19
|
puts Paint["Error updating to friends version #{remote_version}", :bold, :red]
|
19
20
|
end
|
@@ -21,6 +22,7 @@ command :update do |update|
|
|
21
22
|
else
|
22
23
|
unless global_options[:quiet]
|
23
24
|
puts Paint["Already up-to-date (#{Friends::VERSION})", :bold, :green]
|
25
|
+
puts Friends::POST_INSTALL_MESSAGE
|
24
26
|
end
|
25
27
|
end
|
26
28
|
end
|
data/lib/friends/event.rb
CHANGED
data/lib/friends/friend.rb
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Friends
|
4
|
+
POST_INSTALL_MESSAGE = "\nfriends is a volunteer project. If you find it useful, please "\
|
5
|
+
"consider making a small donation:\n\n\t"\
|
6
|
+
"https://github.com/JacobEvelyn/friends#contributing-its-encouraged\n\n".
|
7
|
+
freeze
|
8
|
+
end
|
data/lib/friends/version.rb
CHANGED
@@ -11,4 +11,10 @@ clean_describe "update" do
|
|
11
11
|
subject[:status].must_equal 0
|
12
12
|
[/Updated to friends/, /Already up-to-date/].one? { |m| subject[:stdout] =~ m }.must_equal true
|
13
13
|
end
|
14
|
+
|
15
|
+
it "prints the post-install message" do
|
16
|
+
subject[:stderr].must_equal ""
|
17
|
+
subject[:status].must_equal 0
|
18
|
+
subject[:stdout].must_include Friends::POST_INSTALL_MESSAGE
|
19
|
+
end
|
14
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: friends
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.41'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Evelyn
|
@@ -223,8 +223,10 @@ files:
|
|
223
223
|
- lib/friends/introvert.rb
|
224
224
|
- lib/friends/location.rb
|
225
225
|
- lib/friends/note.rb
|
226
|
+
- lib/friends/post_install_message.rb
|
226
227
|
- lib/friends/regex_builder.rb
|
227
228
|
- lib/friends/serializable.rb
|
229
|
+
- lib/friends/tag_regex.rb
|
228
230
|
- lib/friends/version.rb
|
229
231
|
- test/add_event_helper.rb
|
230
232
|
- test/commands/add/activity_spec.rb
|
@@ -260,8 +262,8 @@ homepage: https://github.com/JacobEvelyn/friends
|
|
260
262
|
licenses:
|
261
263
|
- MIT
|
262
264
|
metadata: {}
|
263
|
-
post_install_message: "
|
264
|
-
consider making a small donation:\n\thttps://github.com/JacobEvelyn/friends#contributing-its-encouraged"
|
265
|
+
post_install_message: "\nfriends is a volunteer project. If you find it useful, please
|
266
|
+
consider making a small donation:\n\n\thttps://github.com/JacobEvelyn/friends#contributing-its-encouraged\n\n"
|
265
267
|
rdoc_options: []
|
266
268
|
require_paths:
|
267
269
|
- lib
|