ellen 0.2.4 → 0.2.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: 212431648bbc746967e2f232d4dfedf714e52f60
4
- data.tar.gz: 25b4c48f6037b23e6accbf509c460f8561a20127
3
+ metadata.gz: b48f797e2220337f5bceb478fa8543b9754d47f6
4
+ data.tar.gz: a1fd533f05151b984481e700e53604c5e10bfb77
5
5
  SHA512:
6
- metadata.gz: 9d03a31da1b337ac911e2f9e820d2c9199a93a9a42887d5cdaa5b9fb74fb9f91380258e1f809456142074a290996a79ccd85e008d2c96e74155899d1e795b252
7
- data.tar.gz: 65da8ae322cee72f0b620518bd7ad912545574a65cc363a793e5f55a953b1985bcd826ea11eda0c7205805959b3ad7c5567a93bdf33453b6b509dd6557b16fce
6
+ metadata.gz: 4deb83f98d8366059279d4a4eaf86333e838138398655760f6b56e391176efa041a7d42077f8b18dafcca36fffa82037a70b9b30fbf5af736e267eca6f17c639
7
+ data.tar.gz: f6fa7db604b6de626bcdbeb0a57389815f5231795e4d37cc9bae99c08cbe677db166c22b4ac3e4c8950f6311291f01d11461373937ae85f0950d58ec1c9156e8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.2.5
2
+ * Hide action defined with `:hidden` option in Help message
3
+
1
4
  ## 0.2.4
2
5
  * Reveal message prefix pattern as a class method
3
6
 
data/lib/ellen/action.rb CHANGED
@@ -23,6 +23,10 @@ module Ellen
23
23
  options[:description] || "(no description)"
24
24
  end
25
25
 
26
+ def hidden?
27
+ !!options[:hidden]
28
+ end
29
+
26
30
  def name
27
31
  options[:name]
28
32
  end
@@ -12,7 +12,7 @@ module Ellen
12
12
  end
13
13
 
14
14
  def action_descriptions
15
- Ellen.actions.map do |action|
15
+ Ellen.actions.reject(&:hidden?).map do |action|
16
16
  prefix = ""
17
17
  prefix << message.robot.name << " " unless action.all?
18
18
  "%-#{pattern_max_length + prefix.size}s - #{action.description}" % "#{prefix}#{action.pattern.inspect}"
data/lib/ellen/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ellen
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ellen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura