slacktail 0.0.1 → 0.0.2

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: 90c2bc64c84bf955e31f8ffc852e30d84811d3e8efe62d55e1c18186215fd938
4
- data.tar.gz: aed391d0419c87b308dd909eaa7d515e1c84cdd24374eb56e1b779a3e7dbabf3
3
+ metadata.gz: 2e33683910867a751ceb282ae4c4d3ce24fff694a54b7a1d54038301e9fa2d70
4
+ data.tar.gz: 79c8568107c9ff8374514dd56e6dbc85f815750b7d9b95dcb0ee4026e844c2dd
5
5
  SHA512:
6
- metadata.gz: ea9f8f39ce1bf2c03fa72402f6feb06828de1674bb9d91aa57add31eefda72afb2a1c6243fd5a17c6d7884d3ff5752473a2b8907c729f4337d52a7e105da5445
7
- data.tar.gz: fbe56116ee1b230ba647f3af890d3f962365b8d2e222f41c2130848d05c52e04717174861c36a2e41877c5b1ed6d082f45fe72cc0dedac3f844dc0d730cf4d59
6
+ metadata.gz: eb2530f19b0d19657b255442152a55be621f2598911b2b837cad816a710fd406c9485da98408b1e6767af8016031d42b8394c1dc1a5b2766c89171de77aef876
7
+ data.tar.gz: 1ced8967e9816012bbb7fb244b41a5d644ee4bac12c83d9d64319fff7e5c40fe91005ff3519e10ad18d28dc0bb6723a7ea94a76606f0d24fed27e621885e4b10
data/README.md CHANGED
@@ -3,14 +3,17 @@ Slacktail
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/slacktail.svg)](https://badge.fury.io/rb/slacktail)
5
5
  [![Build Status](https://travis-ci.com/DannyBen/slacktail.svg?branch=master)](https://travis-ci.com/DannyBen/slacktail)
6
- [![Maintainability](https://api.codeclimate.com/v1/badges/.../maintainability)](https://codeclimate.com/github/DannyBen/slacktail/maintainability)
7
-
8
- ---
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/c81fe947a0e4b5bd1bdc/maintainability)](https://codeclimate.com/github/DannyBen/slacktail/maintainability)
9
7
 
10
8
  Slacktail is a single-purpose command line utility for follwoing messages
11
9
  sent to your Slack organization chat.
12
10
 
13
- ---
11
+
12
+ Demo
13
+ --------------------------------------------------
14
+
15
+ ![Demo](https://raw.githubusercontent.com/DannyBen/slacktail/master/demo.gif)
16
+
14
17
 
15
18
  Installation
16
19
  --------------------------------------------------
@@ -41,10 +44,33 @@ Follow all channels:
41
44
 
42
45
  $ slacktail
43
46
 
44
- Follow specific channels
47
+ Follow specific channels:
45
48
 
46
49
  $ slacktail general development lobby
47
50
 
51
+ Full Usage Help:
52
+
53
+ $ slacktail --help
54
+ Show and follow slack messages in real time
55
+
56
+ Usage:
57
+ slacktail [CHANNELS...]
58
+ slacktail (-h|--help|--version)
59
+
60
+ Options:
61
+ -h --help
62
+ Show this help
63
+
64
+ --version
65
+ Show version number
66
+
67
+ Parameters:
68
+ CHANNELS
69
+ Channels to follow
70
+
71
+ Examples:
72
+ slacktail
73
+ slacktail general debug
48
74
 
49
75
 
50
76
  ---
@@ -1,5 +1,7 @@
1
1
  module Slacktail
2
2
  module HasText
3
+ include Colsole
4
+
3
5
  def text
4
6
  @text ||= text!
5
7
  end
@@ -9,7 +11,7 @@ module Slacktail
9
11
  end
10
12
 
11
13
  def text_lines
12
- text.split "\n"
14
+ word_wrap(" #{text}").split("\n").map(&:strip)
13
15
  end
14
16
  end
15
17
  end
@@ -5,7 +5,7 @@ module Slacktail
5
5
  def render
6
6
  prefix = "!txt#{color}!▌!txtrst! "
7
7
  now = Time.now.strftime "%H:%M"
8
- say "#{prefix}!txtcyn!#{now} !bldcyn!@#{user}!txtcyn! #{channel}".strip
8
+ say "#{prefix}!txtcyn!#{now} : !bldcyn!@#{user}!txtcyn! : #{channel}".strip
9
9
 
10
10
  items.each do |line|
11
11
  if line.is_a? String
@@ -1,3 +1,3 @@
1
1
  module Slacktail
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slacktail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.4'
83
- description: Slacktail is a single-purpose command line utility for follwoing messages
83
+ description: Slacktail is a single-purpose command line utility for following messages
84
84
  sent to your Slack organization chat.
85
85
  email: db@dannyben.com
86
86
  executables:
@@ -125,5 +125,5 @@ rubyforge_project:
125
125
  rubygems_version: 2.7.6
126
126
  signing_key:
127
127
  specification_version: 4
128
- summary: Command line tool for following slack messages in real time
128
+ summary: Command line utility for following your Slack chat from the terminal
129
129
  test_files: []