to_gal 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 579c96a953ea934eb751eba7f9c693b7781caef5
4
- data.tar.gz: 95aa5d6631c65875f6e878e59a429562fcff04bc
3
+ metadata.gz: bff3bf8eab5468bb62eb9969eb686b0745737ad1
4
+ data.tar.gz: 2a6f5fe6a91d3c3826c09639138e25767e1b3259
5
5
  SHA512:
6
- metadata.gz: a8de9534de85ac93522b13ce7c66c71e1b6ab13b9f51b49f20a41187c291524d608e4ea497a688cebe6a8c23e269cad14f95f785c0d5442bd694b596ac519a12
7
- data.tar.gz: 816c52b25cacf29fb109971c351f7209157c7dd5cebef27791bfcc7d3c128cdeca2a0b258ac35483450125c6b1a833da465b2557d67e2c0b93ac2cff21ab1563
6
+ metadata.gz: 23babc3af5ef80c05881e072b8b3b9e866b31ae005b3ae44ca794b3c04051fcfbd116ba610462cb080dc8beab6fae48669005a763903223ba209d6987cbe2084
7
+ data.tar.gz: 1df7ec6902a0a1a1e5a2a1ebac5113cf322652470c0b44406aeeb475bd5d5b5dd571217a594f43ea3d42954006808b55ccdcd8119f2483e1322dba103a427b43
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.1
5
+ script: bundle exec rspec
6
+ notifications:
7
+ on_success: always
8
+ on_failure: always
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ # String#to_gal
2
+
3
+ [![Build Status](https://travis-ci.org/onigra/to_gal.svg?branch=master)](https://travis-ci.org/onigra/to_gal)
4
+
1
5
  ## Installation
2
6
 
3
7
  Add this line to your application's Gemfile:
@@ -1,3 +1,3 @@
1
1
  module ToGal
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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
- subject { 'あいうえおやゆよわつは。'.to_gal }
4
+ describe '#to_gal' do
5
5
 
6
- it { should eq 'ぁぃぅぇぉゃゅょゎっゎo' }
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
@@ -1 +1,4 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
1
4
  require 'to_gal'
data/to_gal.gemspec CHANGED
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
23
24
  end
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.1
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-27 00:00:00.000000000 Z
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