pokebell 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +20 -0
- data/README.md +77 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/lib/pokebell.rb +160 -0
- data/pokebell.gemspec +61 -0
- data/spec/pokebell_spec.rb +7 -0
- data/spec/spec_helper.rb +29 -0
- metadata +142 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.8.0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0"
|
12
|
+
gem "jeweler", "~> 2.0.1"
|
13
|
+
gem "simplecov", ">= 0"
|
14
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 riocampos
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# pokebell
|
2
|
+
|
3
|
+
This gem is convert from Japanese message written by Hiragana / Katakana / alphabet / digit to Japanese pager aka "Pokebell" 2-digits format codes.
|
4
|
+
|
5
|
+
## usage
|
6
|
+
|
7
|
+
```
|
8
|
+
pokeberu = Pokebell.new("ぽけべる")
|
9
|
+
pokeberu.pokebell #=> "650524640493"
|
10
|
+
pokeberu.code #=> "650524640493"
|
11
|
+
pokeberu.str #=> "ぽけべる"
|
12
|
+
pokeberu.to_a #=> "ぽけべる"
|
13
|
+
```
|
14
|
+
|
15
|
+
## convert table
|
16
|
+
|
17
|
+
```
|
18
|
+
Pokebell.new("あいうえお").pokebell #=> "1112131415"
|
19
|
+
Pokebell.new("かきくけこ").pokebell #=> "2122232425"
|
20
|
+
Pokebell.new("さしすせそ").pokebell #=> "3132333435"
|
21
|
+
Pokebell.new("たちつてと").pokebell #=> "4142434445"
|
22
|
+
Pokebell.new("なにぬねの").pokebell #=> "5152535455"
|
23
|
+
Pokebell.new("はひふへほ").pokebell #=> "6162636465"
|
24
|
+
Pokebell.new("まみむめも").pokebell #=> "7172737475"
|
25
|
+
Pokebell.new("やゆよ").pokebell #=> "818385"
|
26
|
+
Pokebell.new("()").pokebell #=> "8284"
|
27
|
+
Pokebell.new("らりるれろ").pokebell #=> "9192939495"
|
28
|
+
Pokebell.new("わをん").pokebell #=> "010203"
|
29
|
+
Pokebell.new("゛゜").pokebell #=> "0405"
|
30
|
+
|
31
|
+
Pokebell.new("ABCDE").pokebell #=> "1617181910"
|
32
|
+
Pokebell.new("FGHIJ").pokebell #=> "2627282920"
|
33
|
+
Pokebell.new("KLMNO").pokebell #=> "3637383930"
|
34
|
+
Pokebell.new("PQRST").pokebell #=> "4647484940"
|
35
|
+
Pokebell.new("UVWXY").pokebell #=> "5657585950"
|
36
|
+
Pokebell.new("Z?!ー/").pokebell #=> "6667686960"
|
37
|
+
Pokebell.new("¥&").pokebell #=> "7677"
|
38
|
+
Pokebell.new("*# ").pokebell #=> "868788"
|
39
|
+
Pokebell.new("12345").pokebell #=> "9697989990"
|
40
|
+
Pokebell.new("67890").pokebell #=> "0607080900"
|
41
|
+
```
|
42
|
+
|
43
|
+
## example
|
44
|
+
|
45
|
+
```
|
46
|
+
Pokebell.new("ぱーる").pokebell #=> "61056993"
|
47
|
+
Pokebell.new("パール").pokebell #=> "61056993"
|
48
|
+
Pokebell.new("るびー").pokebell #=> "93620469"
|
49
|
+
Pokebell.new("ルビー").pokebell #=> "93620469"
|
50
|
+
|
51
|
+
Pokebell.new("perl").pokebell #=> "46104837"
|
52
|
+
Pokebell.new("ruby").pokebell #=> "48561750"
|
53
|
+
Pokebell.new("hello pokebell").pokebell
|
54
|
+
#=> "2810373730884630361017103737"
|
55
|
+
```
|
56
|
+
|
57
|
+
##TODO
|
58
|
+
|
59
|
+
* RSpec
|
60
|
+
* Emoji (Clock="78", Phone="79", Cup="70", Heart="89")
|
61
|
+
* Convert (Decode) from codes to Japanese charactors
|
62
|
+
|
63
|
+
## Contributing to pokebell
|
64
|
+
|
65
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
66
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
67
|
+
* Fork the project.
|
68
|
+
* Start a feature/bugfix branch.
|
69
|
+
* Commit and push until you are happy with your contribution.
|
70
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
71
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
72
|
+
|
73
|
+
## Copyright
|
74
|
+
|
75
|
+
Copyright (c) 2014 riocampos. See LICENSE.txt for
|
76
|
+
further details.
|
77
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "pokebell"
|
18
|
+
gem.homepage = "http://github.com/riocampos/pokebell"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Japanese "Pokebell" pager message encoder}
|
21
|
+
gem.description = %Q{Japanese charactor displayed by hiragana, alphabet, or number encode to 2-digit in used "Pokebell" pager.}
|
22
|
+
gem.email = "riocampos22@gmail.com"
|
23
|
+
gem.authors = ["riocampos"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Code coverage detail"
|
35
|
+
task :simplecov do
|
36
|
+
ENV['COVERAGE'] = "true"
|
37
|
+
Rake::Task['spec'].execute
|
38
|
+
end
|
39
|
+
|
40
|
+
task :default => :spec
|
41
|
+
|
42
|
+
require 'rdoc/task'
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
44
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
+
|
46
|
+
rdoc.rdoc_dir = 'rdoc'
|
47
|
+
rdoc.title = "pokebell #{version}"
|
48
|
+
rdoc.rdoc_files.include('README*')
|
49
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.2
|
data/lib/pokebell.rb
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# coding: utf-8
|
3
|
+
require 'nkf'
|
4
|
+
|
5
|
+
class Pokebell
|
6
|
+
# Set message and make Pokebell codes.
|
7
|
+
# @param str [String] message (contains Hiragana / Katakana / alphabet / digit)
|
8
|
+
# @return [Pokebell]
|
9
|
+
def initialize(str)
|
10
|
+
@str = str.gsub(/\\/, "")
|
11
|
+
@pokebell = pick_hankaku_code(zenkaku2hankaku(@str)).map{ |code| encode(code) }.join
|
12
|
+
end
|
13
|
+
|
14
|
+
# @!method pokebell
|
15
|
+
# @return [String] Pokebell codes (2-digit string)
|
16
|
+
attr_reader :pokebell
|
17
|
+
alias :code :pokebell
|
18
|
+
|
19
|
+
# @!method str
|
20
|
+
# @return [String] original message
|
21
|
+
attr_reader :str
|
22
|
+
alias :to_a :str
|
23
|
+
|
24
|
+
private
|
25
|
+
def zenkaku2hankaku(str)
|
26
|
+
NKF.nkf('-j -Z4', NKF.nkf('-w -h2', str))
|
27
|
+
end
|
28
|
+
|
29
|
+
def escape_char?(char)
|
30
|
+
char.unpack("C") == "\e".unpack("C")
|
31
|
+
end
|
32
|
+
|
33
|
+
def detect_char_encoding(char_ary_after_escape_char)
|
34
|
+
if unescape?(char_ary_after_escape_char)
|
35
|
+
:ascii
|
36
|
+
elsif escape_to_hankaku?(char_ary_after_escape_char)
|
37
|
+
:hankaku
|
38
|
+
elsif escape_to_jis?(char_ary_after_escape_char)
|
39
|
+
:jis
|
40
|
+
else
|
41
|
+
raise "escape error"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def jis_char(char, jis_array)
|
46
|
+
second_char = jis_array.shift
|
47
|
+
if char.unpack("C") == "\x21".unpack("C")
|
48
|
+
case second_char.unpack("C")
|
49
|
+
when "\x6F".unpack("C") # ¥
|
50
|
+
92
|
51
|
+
when "\x21".unpack("C") # 全角スペース
|
52
|
+
32
|
53
|
+
else
|
54
|
+
raise "out of aiming JIS charactor area"
|
55
|
+
end
|
56
|
+
else
|
57
|
+
raise "out of aiming JIS charactor area"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def pick_hankaku_code(jis_str)
|
62
|
+
char_status = :ascii
|
63
|
+
code_array = []
|
64
|
+
jis_array = jis_str.each_char.map { |char| char }
|
65
|
+
loop do
|
66
|
+
char = jis_array.shift
|
67
|
+
break unless char
|
68
|
+
|
69
|
+
if escape_char?(char)
|
70
|
+
char_ary_after_escape_char = jis_array.shift(2)
|
71
|
+
char_status = detect_char_encoding(char_ary_after_escape_char)
|
72
|
+
else
|
73
|
+
code = case char_status
|
74
|
+
when :ascii
|
75
|
+
char.unpack("C").first
|
76
|
+
when :hankaku
|
77
|
+
char.unpack("C").first + 128
|
78
|
+
when :jis
|
79
|
+
jis_char(char, jis_array)
|
80
|
+
end
|
81
|
+
code_array << code
|
82
|
+
end
|
83
|
+
end
|
84
|
+
code_array
|
85
|
+
end
|
86
|
+
|
87
|
+
def char_check(array, check_array)
|
88
|
+
array.each_with_index.all? { |char, i|char.unpack("C") == check_array[i].unpack("C") }
|
89
|
+
end
|
90
|
+
|
91
|
+
def escape_to_hankaku?(char_ary_after_escape_char)
|
92
|
+
char_check(char_ary_after_escape_char, ["\x28", "\x49"])
|
93
|
+
end
|
94
|
+
|
95
|
+
def escape_to_jis?(char_ary_after_escape_char)
|
96
|
+
char_check(char_ary_after_escape_char, ["\x24", "\x42"])
|
97
|
+
end
|
98
|
+
|
99
|
+
def unescape?(char_ary_after_escape_char)
|
100
|
+
char_check(char_ary_after_escape_char, ["\x28", "\x42"])
|
101
|
+
end
|
102
|
+
|
103
|
+
def digit(code, base, first_digit_base, second_digit_base)
|
104
|
+
second_digit, first_digit = (code - base).divmod(5)
|
105
|
+
"#{(second_digit + first_digit_base) % 10}#{(first_digit + second_digit_base) % 10}"
|
106
|
+
end
|
107
|
+
|
108
|
+
def encode(code)
|
109
|
+
code2pokebell_hash = {
|
110
|
+
166 => "02", # を
|
111
|
+
63 => "67", # ?
|
112
|
+
33 => "68", # !
|
113
|
+
45 => "69", # −
|
114
|
+
304 => "69", # ー
|
115
|
+
47 => "60", # /
|
116
|
+
92 => "76", # ¥
|
117
|
+
38 => "77", # &
|
118
|
+
40 => "82", # (
|
119
|
+
41 => "84", # )
|
120
|
+
42 => "86", # *
|
121
|
+
35 => "87", # #
|
122
|
+
32 => "88", # 全角スペース
|
123
|
+
350 => "04", # ゛
|
124
|
+
351 => "05", # ゜
|
125
|
+
}
|
126
|
+
|
127
|
+
case code
|
128
|
+
when 167..171 # ぁ-ぉ
|
129
|
+
code = code + 10
|
130
|
+
when 172..174 # ゃ-ょ
|
131
|
+
code = code + 40
|
132
|
+
when 175 # っ
|
133
|
+
code = code + 19
|
134
|
+
when 97..122 # a-z
|
135
|
+
code = code - 32
|
136
|
+
end
|
137
|
+
|
138
|
+
case code
|
139
|
+
when 177..211 # あ-も
|
140
|
+
digit(code, 177, 1, 1)
|
141
|
+
when 215..220 # ら-わ
|
142
|
+
digit(code, 215, 9, 1)
|
143
|
+
when 221..223 # ん゛゜
|
144
|
+
digit(code, 220, 0, 2)
|
145
|
+
when 212..214 # や-よ
|
146
|
+
second_digit, first_digit = (code - 212).divmod(3)
|
147
|
+
"#{(second_digit + 8) % 10}#{first_digit * 2 + 1}"
|
148
|
+
when 65..90 # A-Z
|
149
|
+
digit(code, 65, 1, 6)
|
150
|
+
when 49..57 # 1-9
|
151
|
+
digit(code, 49, 9, 6)
|
152
|
+
when 48 # 0
|
153
|
+
"00"
|
154
|
+
when *code2pokebell_hash.keys
|
155
|
+
code2pokebell_hash[code]
|
156
|
+
else
|
157
|
+
raise "out of aiming charactor area"
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
data/pokebell.gemspec
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "pokebell"
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["riocampos"]
|
12
|
+
s.date = "2014-06-26"
|
13
|
+
s.description = "Japanese charactor displayed by hiragana, alphabet, or number encode to 2-digit in used \"Pokebell\" pager."
|
14
|
+
s.email = "riocampos22@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"README.md",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/pokebell.rb",
|
27
|
+
"pokebell.gemspec",
|
28
|
+
"spec/pokebell_spec.rb",
|
29
|
+
"spec/spec_helper.rb"
|
30
|
+
]
|
31
|
+
s.homepage = "http://github.com/riocampos/pokebell"
|
32
|
+
s.licenses = ["MIT"]
|
33
|
+
s.require_paths = ["lib"]
|
34
|
+
s.rubygems_version = "1.8.23"
|
35
|
+
s.summary = "Japanese \"Pokebell\" pager message encoder"
|
36
|
+
|
37
|
+
if s.respond_to? :specification_version then
|
38
|
+
s.specification_version = 3
|
39
|
+
|
40
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
42
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
43
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
44
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
45
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
46
|
+
else
|
47
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
48
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
49
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
50
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
51
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
52
|
+
end
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
58
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
module SimpleCov::Configuration
|
4
|
+
def clean_filters
|
5
|
+
@filters = []
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.configure do
|
10
|
+
clean_filters
|
11
|
+
load_adapter 'test_frameworks'
|
12
|
+
end
|
13
|
+
|
14
|
+
ENV["COVERAGE"] && SimpleCov.start do
|
15
|
+
add_filter "/.rvm/"
|
16
|
+
end
|
17
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
18
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
19
|
+
|
20
|
+
require 'rspec'
|
21
|
+
require 'pokebell'
|
22
|
+
|
23
|
+
# Requires supporting files with custom matchers and macros, etc,
|
24
|
+
# in ./support/ and its subdirectories.
|
25
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
26
|
+
|
27
|
+
RSpec.configure do |config|
|
28
|
+
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pokebell
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- riocampos
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.8.0
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.8.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rdoc
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.12'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.12'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bundler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: jeweler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.0.1
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.0.1
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: simplecov
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: Japanese charactor displayed by hiragana, alphabet, or number encode
|
95
|
+
to 2-digit in used "Pokebell" pager.
|
96
|
+
email: riocampos22@gmail.com
|
97
|
+
executables: []
|
98
|
+
extensions: []
|
99
|
+
extra_rdoc_files:
|
100
|
+
- LICENSE.txt
|
101
|
+
- README.md
|
102
|
+
files:
|
103
|
+
- .document
|
104
|
+
- .rspec
|
105
|
+
- Gemfile
|
106
|
+
- README.md
|
107
|
+
- Rakefile
|
108
|
+
- VERSION
|
109
|
+
- lib/pokebell.rb
|
110
|
+
- pokebell.gemspec
|
111
|
+
- spec/pokebell_spec.rb
|
112
|
+
- spec/spec_helper.rb
|
113
|
+
- LICENSE.txt
|
114
|
+
homepage: http://github.com/riocampos/pokebell
|
115
|
+
licenses:
|
116
|
+
- MIT
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
hash: -2424198896221565706
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
requirements: []
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 1.8.23
|
139
|
+
signing_key:
|
140
|
+
specification_version: 3
|
141
|
+
summary: Japanese "Pokebell" pager message encoder
|
142
|
+
test_files: []
|