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.
- checksums.yaml +4 -4
- data/README.md +45 -10
- data/lib/tate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5199b949ebc1efadf042cbb06f99d0701620e464
|
4
|
+
data.tar.gz: d805ee53642bd09655732a545b560459fe9c54a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f04b40a7581eaf2a75bc750df7476a59b96b7bc5a268c9dca7302c27565f6584cd76cf5346d52ce2ee502d4e5b270186a99ccc982bf5aea0602c11cbbe93800
|
7
|
+
data.tar.gz: db19087b78f6e9abd26872a6fc09cd4f1ccd656ac65c8d23041aa7bb1d02349de49c96cdcbb7dfa7286de9947fedb2bb1c07b8cac13888c5761e8e238f1ffc07
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Tate
|
2
2
|
|
3
|
-
|
3
|
+
**tate** helps you convert accented characters to ASCII.
|
4
4
|
|
5
|
-
|
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
|
-
|
17
|
+
```sh
|
18
|
+
$ bundle
|
19
|
+
```
|
18
20
|
|
19
21
|
Or install it yourself as:
|
20
22
|
|
21
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
50
|
+
## Is it any good?
|
30
51
|
|
31
|
-
|
52
|
+
Yes.
|
32
53
|
|
33
54
|
## Contributing
|
34
55
|
|
35
|
-
|
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