tate 0.1.1 → 0.1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -10
  3. data/lib/tate/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c15ce5da2418254dc9031e1d23b887de52b07d2a
4
- data.tar.gz: 0d50f23086897df764f919ca69fb2435d4147a73
3
+ metadata.gz: 5199b949ebc1efadf042cbb06f99d0701620e464
4
+ data.tar.gz: d805ee53642bd09655732a545b560459fe9c54a4
5
5
  SHA512:
6
- metadata.gz: 991d0290e7257074bbda1c82faea67d11cfccfdfbdea4ce95394d0e8ee1b29322f6e6e1403c96d4ceb852e54c93937513663318813f9723252869d2a1de69255
7
- data.tar.gz: d10a64fd566f8a77ce18938125bc056db7a98342ca8a3aa7e4737ab9c22445a8d3e3bca281f0538f71d89d645b3f5f4988deb3c8f5b5b757df8cf8ed8b4527d5
6
+ metadata.gz: 5f04b40a7581eaf2a75bc750df7476a59b96b7bc5a268c9dca7302c27565f6584cd76cf5346d52ce2ee502d4e5b270186a99ccc982bf5aea0602c11cbbe93800
7
+ data.tar.gz: db19087b78f6e9abd26872a6fc09cd4f1ccd656ac65c8d23041aa7bb1d02349de49c96cdcbb7dfa7286de9947fedb2bb1c07b8cac13888c5761e8e238f1ffc07
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Tate
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/tate`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ **tate** helps you convert accented characters to ASCII.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ **tate** is a productivity tool, it behaves like a standard Unix application and can be chained with other Unix commands. It only reads from standard input and writes to standard output.
6
6
 
7
7
  ## Installation
8
8
 
@@ -14,22 +14,57 @@ gem 'tate'
14
14
 
15
15
  And then execute:
16
16
 
17
- $ bundle
17
+ ```sh
18
+ $ bundle
19
+ ```
18
20
 
19
21
  Or install it yourself as:
20
22
 
21
- $ gem install tate
23
+ ```sh
24
+ $ gem install tate
25
+ ```
26
+
27
+ ## Examples
28
+
29
+ Let's say you have a French sentence with a lot of weird characters and you want to convert it into ASCII in the most representative way. You can use:
30
+
31
+ ```sh
32
+ echo "Le cœur de la crémiére" | tate
33
+ ```
34
+
35
+ This will output:
36
+
37
+ ```
38
+ Le coeur de la cremiere
39
+ ```
22
40
 
23
- ## Usage
41
+ Or you might want to create a purely ASCII version of some file:
42
+
43
+ ```sh
44
+ cat customers.csv | tate > customers_tated.csv
45
+ ```
24
46
 
25
- TODO: Write usage instructions here
47
+ If you call `tate` without providing any input, like a standard Unix command it will expect you to provide input using the keyboard. After you are done typing you can use `cmd + D` shortcut to trigger `EOL (End of Line)`. You will see that the text you typed into the terminal is converted to ASCII.
26
48
 
27
- ## Development
28
49
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
50
+ ## Is it any good?
30
51
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
52
+ Yes.
32
53
 
33
54
  ## Contributing
34
55
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/krmbzds/tate.
56
+ 1. Fork it (https://github.com/krmbzds/tate/fork)
57
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
58
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
59
+ 4. Push to the branch (`git push origin my-new-feature`)
60
+ 5. Create a new Pull Request
61
+
62
+ ## Trivia
63
+
64
+ **tate** is short for **transliterate**.
65
+ Nobody has time to type transliterate in the terminal.
66
+
67
+ ## License
68
+
69
+ The MIT License (MIT)
70
+ Copyright (c) 2016 Kerem Bozdas
data/lib/tate/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tate
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerem Bozdas