fullwidth 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0c7487d75ddd961756696937519defb041781b78
4
- data.tar.gz: c20b251d13e3f4bf371231d65498bb02e998eab0
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZGRjM2FmNmZiODUwZTk5NGNlMDI3MDI2YWRiZGU0MDJlM2U4ZTI2ZA==
5
+ data.tar.gz: !binary |-
6
+ ZThiNjc3OGJkMDY4OGNjODUzNzU3OGJjOTA3M2UzYmIxNWE2ZGE4MQ==
5
7
  SHA512:
6
- metadata.gz: 36bdfb5b6719440a65a1aef9c1537d541d8940c160a187ead8adea2036ebcd6ace6bd1171093a44430ccc52cfcef6b79797102fe2250d0d4ede80050acc789d1
7
- data.tar.gz: f51352efdfa1e8f3c94f78c26ff17c68db2b8678056e69f6b0221d8bd640116e85b2e3339e0722fbb7ccf7219bbcd136c50a5a2472a4c6640f108b4aa5dcc2c2
8
+ metadata.gz: !binary |-
9
+ OTE2Mzk3NDZkNDZhNmY2MzljMzQyNTkyOTQ4YTQ4NmM1MmU4ZTU1MGVlM2U3
10
+ OTc3ZGFmYjBjNzY1NGQ5OGVmM2ZiNGY4ZDIyMGRkYzViOTQ3YjBmZjhjZDIx
11
+ YWU1Y2MxMmNiNmMwMWZhOTM4ZWMwMDEwMmViOTlmMzU0MTUzMjI=
12
+ data.tar.gz: !binary |-
13
+ OTgzYmY1MGRkY2I2NjA1MGY0OGIwMTBlNWRhMTJkZDRjZDM0ZDUxNDU1ZWFj
14
+ ZDRjN2JlOTQzMzI0YWRjYWMwMWM3YWY0Y2NlOTk4ZDNkYjJiMGQxNjgyNDUy
15
+ OThiNjU2ZDU3MDgxMjE0YmViYzEzZDUyYWI1ZjRmYzc3ZjVjYTg=
data/README.md CHANGED
@@ -19,8 +19,16 @@ Or install it yourself as:
19
19
  ## Usage
20
20
 
21
21
  ``` ruby
22
+ # Letters
22
23
  "foobar".to_fullwidth # => "foobar"
24
+
25
+ # Punctuation and spaces
23
26
  "hello, world.".to_fullwidth # => "hello, world."
27
+
28
+ # Katakana
29
+ "ハローワールド".to_fullwidth # => "ハローワールド"
30
+
31
+ # Other characters are unchanged
24
32
  "鋸".to_fullwidth # => "鋸"
25
33
  ```
26
34
 
@@ -1,3 +1,5 @@
1
+ # Encoding: utf-8
2
+
1
3
  class String
2
4
  HALFWIDTH_KANA = '。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚'
3
5
  FULLWIDTH_KANA = '。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜'
@@ -1,3 +1,3 @@
1
1
  module Fullwidth
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,3 +1,5 @@
1
+ # Encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe ".to_fullwidth" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullwidth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
@@ -28,28 +28,28 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Convert ASCII to equivalent fullwidth characters.
@@ -83,17 +83,17 @@ require_paths:
83
83
  - lib
84
84
  required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ! '>='
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - '>='
91
+ - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.1.11
96
+ rubygems_version: 2.1.9
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Convert ASCII to equivalent fullwidth characters.