Commit 12fe0ae

mo <mo.khan@gmail.com>
2018-04-29 21:18:41
add version command and update README. tag: v0.1.9
1 parent 780be23
Changed files (3)
lib/del/cli.rb
@@ -30,5 +30,10 @@ module Del
     ensure
       socket&.close
     end
+
+    desc "version", "Print the version of this gem"
+    def version
+      say Del::VERSION, :green
+    end
   end
 end
lib/del/version.rb
@@ -1,3 +1,3 @@
 module Del
-  VERSION = "0.1.8"
+  VERSION = "0.1.9"
 end
README.md
@@ -35,7 +35,24 @@ DEL_ROOMS=1_pidge,2_hunk,3_shiro
 
 Start the chat server:
 
-    $ del routes.rb # see lib/del/examples/routes.rb for an example
+    $ del server
+
+Start the server with a file containing custom chat routes:
+
+    $ del server lib/del/examples/routes.rb
+
+Start the server with a remote file:
+
+    $ del server https://gist.githubusercontent.com/mokhan/15882e15908273f7880eaeaa336d12d9/raw/a54db41e7824315b63b3e4e88df5c2f74ce27e30/routes.rb
+
+Once the server is started, you may use the client to send messages
+through it.
+
+    $ del message 1_79@chat.btf.hipchat.com "Hello, World!"
+
+See the help for additional information:
+
+    $ del help
 
 ## Development