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 +13 -5
- data/README.md +8 -0
- data/lib/fullwidth/string_ext.rb +2 -0
- data/lib/fullwidth/version.rb +1 -1
- data/spec/fullwidth_spec.rb +2 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZGRjM2FmNmZiODUwZTk5NGNlMDI3MDI2YWRiZGU0MDJlM2U4ZTI2ZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZThiNjc3OGJkMDY4OGNjODUzNzU3OGJjOTA3M2UzYmIxNWE2ZGE4MQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
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
|
|
data/lib/fullwidth/string_ext.rb
CHANGED
data/lib/fullwidth/version.rb
CHANGED
data/spec/fullwidth_spec.rb
CHANGED
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.
|
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.
|
96
|
+
rubygems_version: 2.1.9
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Convert ASCII to equivalent fullwidth characters.
|