friends 0.40 → 0.41

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
  SHA256:
3
- metadata.gz: '085e7f4ef953b8204cd17bf0476a5b6a2ca7a500cd701a580ead6af0082ef7c6'
4
- data.tar.gz: c2d6edf62f52c4499cad6df6376d97ddffe5bc4199e5136542b90479c34d4309
3
+ metadata.gz: b3a20e74fcab32686f8fa03875c9de42fbf295ba1b7a6d6ac40a64cd85f8a7b6
4
+ data.tar.gz: 7a7b0bb65f1ad38dccb309cb1496225dc04df78b1fddd805a3ad9201f0bea678
5
5
  SHA512:
6
- metadata.gz: 2f8d3c11759d07777bbb95662350326431f4a8a8038af0fd6c94905d07968222e9b433b9963ff169b81d5c3d54b588863b5abf497cb4e4c3f5e657170ef76ff2
7
- data.tar.gz: 18901f6852709d0f32ce3a4ef69b31dcc23b1877376ef3b7e5900cb9c07591f10af4ec74186c5075f2139a339376dc47c079c182cb49a24cb230bf6fdd7967f7
6
+ metadata.gz: 1078bdfe03b7a97434ff4ef8a1359397190840ac748aa5303a6edf26c035bd84e09b478e8a6a1cab61340551b6384c3e1bd9fd2c068c7c4368cce2c4b1e5905e
7
+ data.tar.gz: 97f7ce57bcf30df4e6b1d1b017ce46c0d0878bd5e6dbc9569a517976925121638bc62f1ae9f356f6b4bcb85a9015cdfbbee4aa47df30991fa09e09d07e8cdbb4
@@ -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
 
@@ -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 = "friends is a volunteer project. If you find it useful, please "\
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"]
@@ -3,5 +3,4 @@
3
3
  require "friends/version"
4
4
 
5
5
  module Friends
6
- TAG_REGEX = /(?<!\p{Alnum})@\p{Alnum}(?:[:-]?\p{Alnum})*/
7
6
  end
@@ -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
@@ -7,6 +7,7 @@ require "chronic"
7
7
  require "paint"
8
8
  require "set"
9
9
 
10
+ require "friends/tag_regex"
10
11
  require "friends/serializable"
11
12
 
12
13
  module Friends
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Friend represents a friend. You know, a real-life friend!
4
4
 
5
- require "friends"
5
+ require "friends/tag_regex"
6
6
  require "friends/regex_builder"
7
7
  require "friends/serializable"
8
8
 
@@ -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
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Friends
4
+ TAG_REGEX = /(?<!\p{Alnum})@\p{Alnum}(?:[:-]?\p{Alnum})*/
5
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Friends
4
- VERSION = "0.40".freeze
4
+ VERSION = "0.41".freeze
5
5
  end
@@ -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.40'
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: "friends is a volunteer project. If you find it useful, please
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