to_gal 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/README.md +4 -0
- data/lib/to_gal/version.rb +1 -1
- data/spec/extention/string_spec.rb +80 -2
- data/spec/spec_helper.rb +3 -0
- data/to_gal.gemspec +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bff3bf8eab5468bb62eb9969eb686b0745737ad1
|
4
|
+
data.tar.gz: 2a6f5fe6a91d3c3826c09639138e25767e1b3259
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23babc3af5ef80c05881e072b8b3b9e866b31ae005b3ae44ca794b3c04051fcfbd116ba610462cb080dc8beab6fae48669005a763903223ba209d6987cbe2084
|
7
|
+
data.tar.gz: 1df7ec6902a0a1a1e5a2a1ebac5113cf322652470c0b44406aeeb475bd5d5b5dd571217a594f43ea3d42954006808b55ccdcd8119f2483e1322dba103a427b43
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/README.md
CHANGED
data/lib/to_gal/version.rb
CHANGED
@@ -1,7 +1,85 @@
|
|
1
1
|
require File.expand_path(File.join('../', 'spec_helper'), File.dirname(__FILE__))
|
2
2
|
|
3
3
|
describe String do
|
4
|
-
|
4
|
+
describe '#to_gal' do
|
5
5
|
|
6
|
-
|
6
|
+
context 'あいうえおやゆよわつは。' do
|
7
|
+
subject { 'あいうえおやゆよわつは。'.to_gal }
|
8
|
+
|
9
|
+
it { should eq 'ぁぃぅぇぉゃゅょゎっゎo' }
|
10
|
+
end
|
11
|
+
|
12
|
+
context 'あ' do
|
13
|
+
subject { 'あ'.to_gal }
|
14
|
+
|
15
|
+
it { should eq 'ぁ' }
|
16
|
+
end
|
17
|
+
|
18
|
+
context 'い' do
|
19
|
+
subject { 'い'.to_gal }
|
20
|
+
|
21
|
+
it { should eq 'ぃ' }
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'う' do
|
25
|
+
subject { 'う'.to_gal }
|
26
|
+
|
27
|
+
it { should eq 'ぅ' }
|
28
|
+
end
|
29
|
+
|
30
|
+
context 'え' do
|
31
|
+
subject { 'え'.to_gal }
|
32
|
+
|
33
|
+
it { should eq 'ぇ' }
|
34
|
+
end
|
35
|
+
|
36
|
+
context 'お' do
|
37
|
+
subject { 'お'.to_gal }
|
38
|
+
|
39
|
+
it { should eq 'ぉ' }
|
40
|
+
end
|
41
|
+
|
42
|
+
context 'や' do
|
43
|
+
subject { 'や'.to_gal }
|
44
|
+
|
45
|
+
it { should eq 'ゃ' }
|
46
|
+
end
|
47
|
+
|
48
|
+
context 'ゆ' do
|
49
|
+
subject { 'ゆ'.to_gal }
|
50
|
+
|
51
|
+
it { should eq 'ゅ' }
|
52
|
+
end
|
53
|
+
|
54
|
+
context 'よ' do
|
55
|
+
subject { 'よ'.to_gal }
|
56
|
+
|
57
|
+
it { should eq 'ょ' }
|
58
|
+
end
|
59
|
+
|
60
|
+
context 'わ' do
|
61
|
+
subject { 'わ'.to_gal }
|
62
|
+
|
63
|
+
it { should eq 'ゎ' }
|
64
|
+
end
|
65
|
+
|
66
|
+
context 'つ' do
|
67
|
+
subject { 'つ'.to_gal }
|
68
|
+
|
69
|
+
it { should eq 'っ' }
|
70
|
+
end
|
71
|
+
|
72
|
+
context 'は' do
|
73
|
+
subject { 'は'.to_gal }
|
74
|
+
|
75
|
+
it { should eq 'ゎ' }
|
76
|
+
end
|
77
|
+
|
78
|
+
context '。' do
|
79
|
+
subject { '。'.to_gal }
|
80
|
+
|
81
|
+
it { should eq 'o' }
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
7
85
|
end
|
data/spec/spec_helper.rb
CHANGED
data/to_gal.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: to_gal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- onigra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: replace to gal-moji
|
42
56
|
email:
|
43
57
|
- 3280467rec@gmail.com
|
@@ -46,6 +60,8 @@ extensions: []
|
|
46
60
|
extra_rdoc_files: []
|
47
61
|
files:
|
48
62
|
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- ".travis.yml"
|
49
65
|
- Gemfile
|
50
66
|
- LICENSE.txt
|
51
67
|
- README.md
|