eucalypt 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dd8989666dd4b95e017bc50fcb59257a2d1137239fa285c4c91bdd90e9b15a8
4
- data.tar.gz: 6758de1df95de41ef8aafdb3c904bbd2c86555b1c9b02ac49d5d0c850e6f7045
3
+ metadata.gz: bc29a501c06a2832d199e3adfc34cbcb0410c4fab787bf535b2a0e7c68d4ec15
4
+ data.tar.gz: 40f90cc6191688056a47c13a635456fa8dc01953cbc642845ceeaa89c1bbb9ef
5
5
  SHA512:
6
- metadata.gz: 2d38e7bfe7f9e53011b7fb4955b6509a45f08fdbc52b2294b17838c15f88095415f700d64ab34a7dc4a7f8feb27e68348fad6f4ec4e37d9be725bfd10cfa6708
7
- data.tar.gz: 3d1a8a905f2beec4298c9c2767bc3b0b688e42becc33f36dc7092f2316ee39a1c6b5623309cde3301cb7e99bc4b18e950d0f00df18f4a10ce4c938123a032a6b
6
+ metadata.gz: 11a97eb10a5e60708c8ea3d74364cda1f3a86afe048d206bdd143c23c75c553d388be7bb6e3f623daedab3ecb545ffc6637cf5e52dedf11ad2640d0e1f65cc7b
7
+ data.tar.gz: d80dffdfa61a1c3214fb7ff233788d20a49f2e13d181cb11aceb033509bfcbc7fff95231b04f5acccf0d250328402f3f376ca5604c7fa4387a46675116cef01c
@@ -3,7 +3,7 @@ require_relative '../spec_helper'
3
3
  describe BlogHelper do
4
4
  include BlogHelper
5
5
 
6
- it "should expect true to be true" do
6
+ it "should expect true to be false" do
7
7
  expect(true).to be false
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ require_relative '../spec_helper'
3
3
  describe ApplicationController do
4
4
  def app() ApplicationController end
5
5
 
6
- it "should expect true to be true" do
6
+ it "should expect true to be false" do
7
7
  expect(true).to be false
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ require_relative '../spec_helper'
3
3
  describe ApplicationHelper do
4
4
  include ApplicationHelper
5
5
 
6
- it "should expect true to be true" do
6
+ it "should expect true to be false" do
7
7
  expect(true).to be false
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ require_relative '../spec_helper'
3
3
  describe <%= config[:class_name] %> do
4
4
  def app() <%= config[:class_name] %> end
5
5
 
6
- it "should expect true to be true" do
6
+ it "should expect true to be false" do
7
7
  expect(true).to be false
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ require_relative '../spec_helper'
3
3
  describe <%= config[:class_name] %> do
4
4
  include <%= config[:class_name] %>
5
5
 
6
- it "should expect true to be true" do
6
+ it "should expect true to be false" do
7
7
  expect(true).to be false
8
8
  end
9
9
  end
@@ -2,7 +2,7 @@ require_relative '../spec_helper'
2
2
 
3
3
  describe <%= config[:class_name] %>, type: :model do
4
4
 
5
- it "should expect true to be true" do
5
+ it "should expect true to be false" do
6
6
  expect(true).to be false
7
7
  end
8
8
  end
data/lib/eucalypt/list.rb CHANGED
@@ -7,17 +7,17 @@ module Eucalypt
7
7
  include Eucalypt::Helpers
8
8
  using Colorize
9
9
 
10
- INDENT = 2.freeze
11
-
12
10
  def help(shell, subcommand = false)
13
11
  list = printable_commands(true, subcommand)
14
12
  Thor::Util.thor_classes_in(self).each do |klass|
15
13
  list += klass.printable_commands(false)
16
14
  end
17
15
 
16
+ indent = 2.freeze
17
+
18
18
  list.reject! do |l|
19
19
  cmd = l.first
20
- cmd.include?('help') || cmd.include?('-H')
20
+ (/.*help.*/.match?(cmd) && /^(?!.*(helper))/.match?(cmd)) || cmd.include?('-H')
21
21
  end
22
22
  list.map {|l| l.last.sub!(?#, '·'.colorize(:pale_blue, :bold)+'›')}
23
23
 
@@ -28,7 +28,7 @@ module Eucalypt
28
28
  shell.say "#{"Commands".colorize(:bold)}:"
29
29
  end
30
30
 
31
- shell.print_table(list, indent: INDENT, truncate: false)
31
+ shell.print_table(list, indent: indent, truncate: false)
32
32
  shell.say
33
33
  class_options_help(shell)
34
34
 
@@ -1,3 +1,3 @@
1
1
  module Eucalypt
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eucalypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin Onuonga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-25 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler