Skip to content

Commit

Permalink
gitignore .idea directory, make executable a bit more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Aug 21, 2015
1 parent 7248588 commit 817ad70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
.idea
9 changes: 8 additions & 1 deletion bin/rumoji
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-

$: << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rubygems'
require 'rumoji'

Rumoji.decode_io(STDIN, STDOUT)
if ARGV.first == 'encode'
Rumoji.encode_io(STDIN, STDOUT)
else
Rumoji.decode_io(STDIN, STDOUT)
end

0 comments on commit 817ad70

Please sign in to comment.