rabbit-mm 1.0.0
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 +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +63 -0
- data/Rakefile +22 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/rabbit.rb +30 -0
- data/lib/rabbit/version.rb +4 -0
- data/rabbit.gemspec +31 -0
- metadata +112 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0bb36812e9f7dc101ea9cc1ee74667f1d86e06cd
|
4
|
+
data.tar.gz: f7f8bfde727e7ff17545d6fd45bfa9230acb016c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4839004a5bc80987ddd6f02bae685a664430779ef35db9da24b2ff82d551bcd8f8073a8b621688c3aedd4fdb38f3673416b8a73563d87d1fe7df511de09ecd96
|
7
|
+
data.tar.gz: f12bbb4c520c5c74ef2218828895c7e31d01ca2aae59a497aaf3ca136dc5c9be2c62817796918de1306c750ff9325ed40b0ae016f1d170a76b99f68cd9a04c37
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Htain Lin Shwe/Rabbit-Converter
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# Rabbit-Ruby
|
2
|
+
|
3
|
+
[](https://travis-ci.org/Rabbit-Converter/Rabbit-Ruby)
|
4
|
+
|
5
|
+
**Another Zawgyi <=> Unicode Converter as a ruby gem**. Written in [Ruby](https://www.ruby-lang.org/en).
|
6
|
+
|
7
|
+
## About
|
8
|
+
|
9
|
+
Zawgyi to Unicode has been written in [2011](https://github.com/saturngod/ZG2Uni_JS/commits/master). Now, unicode to zawgyi has been finished.
|
10
|
+
|
11
|
+
## Motivation
|
12
|
+
|
13
|
+
When I was writting [ZG2uni](https://github.com/saturngod/ZG2Uni_JS/), [Parabaik](https://github.com/ngwestar/parabaik) is not opensource. At that time, I need to use for [MYSTERY ZILLION](http://www.mysteryzillion.org) for converting the whole database to Unicode.
|
14
|
+
|
15
|
+
For Unicode to Zawgyi, Parabaik is under the GPL license and cannot use in iOS app and Android App. So, I decided to write new one with **WTFPL license**. This ruby gem is under MIT License.
|
16
|
+
|
17
|
+
> I cannot promise , it's correct 100% after converting.
|
18
|
+
|
19
|
+
> If you are not using in app or program and just for converting the text , please use [Parabaik](https://github.com/ngwestar/parabaik)
|
20
|
+
|
21
|
+
## Installation
|
22
|
+
|
23
|
+
Add this line to your application's Gemfile:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
gem 'rabbit-mm'
|
27
|
+
```
|
28
|
+
|
29
|
+
And then execute:
|
30
|
+
|
31
|
+
```bash
|
32
|
+
$ bundle
|
33
|
+
```
|
34
|
+
|
35
|
+
Or install it yourself as:
|
36
|
+
|
37
|
+
```bash
|
38
|
+
$ gem install rabbit-mm
|
39
|
+
```
|
40
|
+
|
41
|
+
## Usage
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
require 'rabbit-mm'
|
45
|
+
|
46
|
+
rabbit = Rabbit::Converter.new
|
47
|
+
|
48
|
+
rabbit.uni2zg("မင်္ဂလာပါ") # returns zg strings "မဂၤလာပါ"
|
49
|
+
|
50
|
+
rabbit.zg2uni("မဂၤလာပါ") # returns unicode strings "မင်္ဂလာပါ"
|
51
|
+
|
52
|
+
```
|
53
|
+
|
54
|
+
## Contributing
|
55
|
+
|
56
|
+
1. Fork it ( https://github.com/Rabbit-Converter/Rabbit-Ruby )
|
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
|
+
## License
|
63
|
+
MIT
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
|
3
|
+
require 'rake/testtask'
|
4
|
+
require 'rubocop/rake_task'
|
5
|
+
|
6
|
+
Rake::TestTask.new do |t|
|
7
|
+
t.libs << 'lib'
|
8
|
+
t.libs << 'spec'
|
9
|
+
t.test_files = FileList['test/*_test.rb']
|
10
|
+
end
|
11
|
+
|
12
|
+
# Run robocop
|
13
|
+
desc 'Run RuboCop on the lib directory'
|
14
|
+
RuboCop::RakeTask.new(:rubocop) do |task|
|
15
|
+
task.patterns = ['lib/**/*.rb']
|
16
|
+
# only show the files with failures
|
17
|
+
task.formatters = ['files']
|
18
|
+
# don't abort rake on failure
|
19
|
+
task.fail_on_error = false
|
20
|
+
end
|
21
|
+
|
22
|
+
task default: :test
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'rabbit'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/rabbit.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'rabbit/version'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Rabbit Module
|
5
|
+
module Rabbit
|
6
|
+
# Rabbit Convert Class
|
7
|
+
# Create an instance as follow
|
8
|
+
# Rabbit::Converter.new
|
9
|
+
class Converter
|
10
|
+
def uni2zg(unicode)
|
11
|
+
json_data = '[ { "from": "\u1004\u103a\u1039", "to": "\u1064" }, { "from": "\u1039\u1010\u103d", "to": "\u1096" }, { "from": "\u1014(?=[\u1030\u103d\u103e\u102f\u1039])", "to": "\u108f" }, { "from": "\u102b\u103a", "to": "\u105a" }, { "from": "\u100b\u1039\u100c", "to": "\u1092" }, { "from": "\u102d\u1036", "to": "\u108e" }, { "from": "\u104e\u1004\u103a\u1038", "to": "\u104e" }, { "from": "[\u1025\u1009](?=[\u1039\u102f\u1030])", "to": "\u106a" }, { "from": "[\u1025\u1009](?=[\u103a])", "to": "\u1025" }, { "from": "\u100a(?=[\u1039\u102f\u1030\u103d])", "to": "\u106b" }, { "from": "(\u1039[\u1000-\u1021])\u102f", "to": "\\\\1\u1033" }, { "from": "(\u1039[\u1000-\u1021])\u1030", "to": "\\\\1\u1034" }, { "from": "\u1039\u1000", "to": "\u1060" }, { "from": "\u1039\u1001", "to": "\u1061" }, { "from": "\u1039\u1002", "to": "\u1062" }, { "from": "\u1039\u1003", "to": "\u1063" }, { "from": "\u1039\u1005", "to": "\u1065" }, { "from": "\u1039\u1007", "to": "\u1068" }, { "from": "\u1039\u1008", "to": "\u1069" }, { "from": "\u100a(?=[\u1039\u102f\u1030])", "to": "\u106b" }, { "from": "\u1039\u100b", "to": "\u106c" }, { "from": "\u1039\u100c", "to": "\u106d" }, { "from": "\u100d\u1039\u100d", "to": "\u106e" }, { "from": "\u100e\u1039\u100d", "to": "\u106f" }, { "from": "\u1039\u100f", "to": "\u1070" }, { "from": "\u1039\u1010", "to": "\u1071" }, { "from": "\u1039\u1011", "to": "\u1073" }, { "from": "\u1039\u1012", "to": "\u1075" }, { "from": "\u1039\u1013", "to": "\u1076" }, { "from": "\u1039\u1013", "to": "\u1076" }, { "from": "\u1039\u1014", "to": "\u1077" }, { "from": "\u1039\u1015", "to": "\u1078" }, { "from": "\u1039\u1016", "to": "\u1079" }, { "from": "\u1039\u1017", "to": "\u107a" }, { "from": "\u1039\u1018", "to": "\u107b" }, { "from": "\u1039\u1019", "to": "\u107c" }, { "from": "\u1039\u101c", "to": "\u1085" }, { "from": "\u103f", "to": "\u1086" }, { "from": "(\u103c)\u103e", "to": "\\\\1\u1087" }, { "from": "\u103d\u103e", "to": "\u108a" }, { "from": "(\u1064)([\u1031]?)([\u103c]?)([\u1000-\u1021])\u102d", "to": "\\\\2\\\\3\\\\4\u108b" }, { "from": "(\u1064)([\u1031]?)([\u103c]?)([\u1000-\u1021])\u102e", "to": "\\\\2\\\\3\\\\4\u108c" }, { "from": "(\u1064)([\u1031]?)([\u103c]?)([\u1000-\u1021])\u1036", "to": "\\\\2\\\\3\\\\4\u108d" }, { "from": "(\u1064)([\u1031]?)([\u103c]?)([\u1000-\u1021])", "to": "\\\\2\\\\3\\\\4\\\\1" }, { "from": "\u101b(?=[\u102f\u1030\u103d\u108a])", "to": "\u1090" }, { "from": "\u100f\u1039\u100d", "to": "\u1091" }, { "from": "\u100b\u1039\u100b", "to": "\u1097" }, { "from": "([\u1000-\u1021\u1029\u1090])([\u1060-\u1069\u106c\u106d\u1070-\u107c\u1085\u108a])?([\u103b-\u103e]*)?\u1031", "to": "\u1031\\\\1\\\\2\\\\3" }, { "from": "([\u1000-\u1021\u1029])([\u1060-\u1069\u106c\u106d\u1070-\u107c\u1085])?(\u103c)", "to": "\\\\3\\\\1\\\\2" }, { "from": "\u103a", "to": "\u1039" }, { "from": "\u103b", "to": "\u103a" }, { "from": "\u103c", "to": "\u103b" }, { "from": "\u103d", "to": "\u103c" }, { "from": "\u103e", "to": "\u103d" }, { "from": "\u103d\u102f", "to": "\u1088" }, { "from": "([\u102f\u1030\u1014\u101b\u103c\u108a\u103d\u1088])([\u1032\u1036]{0,1})\u1037", "to": "\\\\1\\\\2\u1095" }, { "from": "\u102f\u1095", "to": "\u102f\u1094" }, { "from": "([\u1014\u101b])([\u1032\u1036\u102d\u102e\u108b\u108c\u108d\u108e])\u1037", "to": "\\\\1\\\\2\u1095" }, { "from": "\u1095\u1039", "to": "\u1094\u1039" }, { "from": "([\u103a\u103b])([\u1000-\u1021])([\u1036\u102d\u102e\u108b\u108c\u108d\u108e]?)\u102f", "to": "\\\\1\\\\2\\\\3\u1033" }, { "from": "([\u103a\u103b])([\u1000-\u1021])([\u1036\u102d\u102e\u108b\u108c\u108d\u108e]?)\u1030", "to": "\\\\1\\\\2\\\\3\u1034" }, { "from": "\u103a\u102f", "to": "\u103a\u1033" }, { "from": "\u103a([\u1036\u102d\u102e\u108b\u108c\u108d\u108e])\u102f", "to": "\u103a\\\\1\u1033" }, { "from": "([\u103a\u103b])([\u1000-\u1021])\u1030", "to": "\\\\1\\\\2\u1034" }, { "from": "\u103a\u1030", "to": "\u103a\u1034" }, { "from": "\u103a([\u1036\u102d\u102e\u108b\u108c\u108d\u108e])\u1030", "to": "\u103a\\\\1\u1034" }, { "from": "\u103d\u1030", "to": "\u1089" }, { "from": "\u103b([\u1000\u1003\u1006\u100f\u1010\u1011\u1018\u101a\u101c\u101a\u101e\u101f])", "to": "\u107e\\\\1" }, { "from": "\u107e([\u1000\u1003\u1006\u100f\u1010\u1011\u1018\u101a\u101c\u101a\u101e\u101f])([\u103c\u108a])([\u1032\u1036\u102d\u102e\u108b\u108c\u108d\u108e])", "to": "\u1084\\\\1\\\\2\\\\3" }, { "from": "\u107e([\u1000\u1003\u1006\u100f\u1010\u1011\u1018\u101a\u101c\u101a\u101e\u101f])([\u103c\u108a])", "to": "\u1082\\\\1\\\\2" }, { "from": "\u107e([\u1000\u1003\u1006\u100f\u1010\u1011\u1018\u101a\u101c\u101a\u101e\u101f])([\u1033\u1034]?)([\u1032\u1036\u102d\u102e\u108b\u108c\u108d\u108e])", "to": "\u1080\\\\1\\\\2\\\\3" }, { "from": "\u103b([\u1000-\u1021])([\u103c\u108a])([\u1032\u1036\u102d\u102e\u108b\u108c\u108d\u108e])", "to": "\u1083\\\\1\\\\2\\\\3" }, { "from": "\u103b([\u1000-\u1021])([\u103c\u108a])", "to": "\u1081\\\\1\\\\2" }, { "from": "\u103b([\u1000-\u1021])([\u1033\u1034]?)([\u1032\u1036\u102d\u102e\u108b\u108c\u108d\u108e])", "to": "\u107f\\\\1\\\\2\\\\3" }, { "from": "\u103a\u103d", "to": "\u103d\u103a" }, { "from": "\u103a([\u103c\u108a])", "to": "\\\\1\u107d" }, { "from": "([\u1033\u1034])\u1094", "to": "\\\\1\u1095" }]'
|
12
|
+
rule = JSON.parse(json_data)
|
13
|
+
replace_with_rule(rule, unicode)
|
14
|
+
end
|
15
|
+
|
16
|
+
def zg2uni(zawgyi)
|
17
|
+
json_data = '[ { "from": "(\u103d|\u1087)", "to": "\u103e" }, { "from": "\u103c", "to": "\u103d" }, { "from": "(\u103b|\u107e|\u107f|\u1080|\u1081|\u1082|\u1083|\u1084)", "to": "\u103c" }, { "from": "(\u103a|\u107d)", "to": "\u103b" }, { "from": "\u1039", "to": "\u103a" }, { "from": "\u106a", "to": "\u1009" }, { "from": "\u106b", "to": "\u100a" }, { "from": "\u106c", "to": "\u1039\u100b" }, { "from": "\u106d", "to": "\u1039\u100c" }, { "from": "\u106e", "to": "\u100d\u1039\u100d" }, { "from": "\u106f", "to": "\u100d\u1039\u100e" }, { "from": "\u1070", "to": "\u1039\u100f" }, { "from": "(\u1071|\u1072)", "to": "\u1039\u1010" }, { "from": "\u1060", "to": "\u1039\u1000" }, { "from": "\u1061", "to": "\u1039\u1001" }, { "from": "\u1062", "to": "\u1039\u1002" }, { "from": "\u1063", "to": "\u1039\u1003" }, { "from": "\u1065", "to": "\u1039\u1005" }, { "from": "\u1068", "to": "\u1039\u1007" }, { "from": "\u1069", "to": "\u1039\u1008" }, { "from": "/(\u1073|\u1074)/g", "to": "\u1039\u1011" }, { "from": "\u1075", "to": "\u1039\u1012" }, { "from": "\u1076", "to": "\u1039\u1013" }, { "from": "\u1077", "to": "\u1039\u1014" }, { "from": "\u1078", "to": "\u1039\u1015" }, { "from": "\u1079", "to": "\u1039\u1016" }, { "from": "\u107a", "to": "\u1039\u1017" }, { "from": "\u107c", "to": "\u1039\u1019" }, { "from": "\u1085", "to": "\u1039\u101c" }, { "from": "\u1033", "to": "\u102f" }, { "from": "\u1034", "to": "\u1030" }, { "from": "\u103f", "to": "\u1030" }, { "from": "\u1086", "to": "\u103f" }, { "from": "\u1088", "to": "\u103e\u102f" }, { "from": "\u1089", "to": "\u103e\u1030" }, { "from": "\u108a", "to": "\u103d\u103e" }, { "from": "([\u1000-\u1021])\u1064", "to": "\u1004\u103a\u1039\\\\1" }, { "from": "([\u1000-\u1021])\u108b", "to": "\u1004\u103a\u1039\\\\1\u102d" }, { "from": "([\u1000-\u1021])\u108c", "to": "\u1004\u103a\u1039\\\\1\u102e" }, { "from": "([\u1000-\u1021])\u108d", "to": "\u1004\u103a\u1039\\\\1\u1036" }, { "from": "\u108e", "to": "\u102d\u1036" }, { "from": "\u108f", "to": "\u1014" }, { "from": "\u1090", "to": "\u101b" }, { "from": "\u1091", "to": "\u100f\u1039\u1091" }, { "from": "\u1019\u102c(\u107b|\u1093)", "to": "\u1019\u1039\u1018\u102c" }, { "from": "(\u107b|\u1093)", "to": "\u103a\u1018" }, { "from": "(\u1094|\u1095)", "to": "\u1037" }, { "from": "\u1096", "to": "\u1039\u1010\u103d" }, { "from": "\u1097", "to": "\u100b\u1039\u100b" }, { "from": "\u103c([\u1000-\u1021])([\u1000-\u1021])?", "to": "\\\\1\u103c\\\\2" }, { "from": "([\u1000-\u1021])\u103c\u103a", "to": "\u103c\\\\1\u103a" }, { "from": "\u1031([\u1000-\u1021])(\u103e)?(\u103b)?", "to": "\\\\1\\\\2\\\\3\u1031" }, { "from": "([\u1000-\u1021])\u1031([\u103b\u103c\u103d])", "to": "\\\\1\\\\2\u1031" }, { "from": "\u1032\u103d", "to": "\u103d\u1032" }, { "from": "\u103d\u103b", "to": "\u103b\u103d" }, { "from": "\u103a\u1037", "to": "\u1037\u103a" }, { "from": "\u102f(\u102d|\u102e|\u1036|\u1037)\u102f", "to": "\u102f\\\\1" }, { "from": "\u102f\u102f", "to": "\u102f" }, { "from": "(\u102f|\u1030)(\u102d|\u102e)", "to": "\\\\2\\\\1" }, { "from": "(\u103e)(\u103b|\u1037)", "to": "\\\\2\\\\1" }, { "from": "\u1025(\u103a|\u102c)", "to": "\u1009\\\\1" }, { "from": "\u1025\u102e", "to": "\u1026" }, { "from": "\u1005\u103b", "to": "\u1008" }, { "from": "\u1036(\u102f|\u1030)", "to": "\\\\1\u1036" }, { "from": "\u1031\u1037\u103e", "to": "\u103e\u1031\u1037" }, { "from": "\u1031\u103e\u102c", "to": "\u103e\u1031\u102c" }, { "from": "\u105a", "to": "\u102b\u103a" }, { "from": "\u1031\u103b\u103e", "to": "\u103b\u103e\u1031" }, { "from": "(\u102d|\u102e)(\u103d|\u103e)", "to": "\\\\2\\\\1" }, { "from": "\u102c\u1039([\u1000-\u1021])", "to": "\u1039\\\\1\u102c" }, { "from": "\u103c\u1004\u103a\u1039([\u1000-\u1021])", "to": "\u1004\u103a\u1039\\\\1\u103c" }, { "from": "\u1039\u103c\u103a\u1039([\u1000-\u1021])", "to": "\u103a\u1039\\\\1\u103c" }, { "from": "\u103c\u1039([\u1000-\u1021])", "to": "\u1039\\\\1\u103c" }, { "from": "\u1036\u1039([\u1000-\u1021])", "to": "\u1039\\\\1\u1036" }, { "from": "\u1092", "to": "\u100b\u1039\u100c" }, { "from": "\u104e", "to": "\u104e\u1004\u103a\u1038" }, { "from": "\u1040(\u102b|\u102c|\u1036)", "to": "\u101d\\\\1" }, { "from": "\u1025\u1039", "to": "\u1009\u1039" }, { "from": "([\u1000-\u1021])\u103c\u1031\u103d", "to": "\\\\1\u103c\u103d\u1031" }, { "from": "([\u1000-\u1021])\u103d\u1031\u103b", "to": "\\\\1\u103b\u103d\u1031" }]'
|
18
|
+
rule = JSON.parse(json_data)
|
19
|
+
replace_with_rule(rule, zawgyi)
|
20
|
+
end
|
21
|
+
|
22
|
+
def replace_with_rule(rule, output)
|
23
|
+
rule.each do |data|
|
24
|
+
from = Regexp.new data['from']
|
25
|
+
output = output.gsub(from, data['to'])
|
26
|
+
end
|
27
|
+
output
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/rabbit.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rabbit/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'rabbit-mm'
|
8
|
+
spec.version = Rabbit::VERSION
|
9
|
+
spec.authors = ['Ye Lin Aung']
|
10
|
+
spec.email = ['me@yelinaung.com']
|
11
|
+
|
12
|
+
spec.summary = 'Rabbit - Another Zawgyi <=> Unicode Converter'
|
13
|
+
spec.description = 'Rabbit is another Zawgyi <=> Unicode Converter under MIT liecnse.'
|
14
|
+
spec.homepage = 'http://saturngod.github.io/Rabbit'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
if spec.respond_to?(:metadata)
|
23
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.add_dependency 'rubocop'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.9'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
|
+
spec.add_development_dependency 'minitest'
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rabbit-mm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ye Lin Aung
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.9'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.9'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Rabbit is another Zawgyi <=> Unicode Converter under MIT liecnse.
|
70
|
+
email:
|
71
|
+
- me@yelinaung.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
|
+
- Gemfile
|
79
|
+
- LICENSE
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- bin/console
|
83
|
+
- bin/setup
|
84
|
+
- lib/rabbit.rb
|
85
|
+
- lib/rabbit/version.rb
|
86
|
+
- rabbit.gemspec
|
87
|
+
homepage: http://saturngod.github.io/Rabbit
|
88
|
+
licenses:
|
89
|
+
- MIT
|
90
|
+
metadata:
|
91
|
+
allowed_push_host: https://rubygems.org
|
92
|
+
post_install_message:
|
93
|
+
rdoc_options: []
|
94
|
+
require_paths:
|
95
|
+
- lib
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
requirements: []
|
107
|
+
rubyforge_project:
|
108
|
+
rubygems_version: 2.4.6
|
109
|
+
signing_key:
|
110
|
+
specification_version: 4
|
111
|
+
summary: Rabbit - Another Zawgyi <=> Unicode Converter
|
112
|
+
test_files: []
|