chars 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +4 -0
- data/.rspec +1 -0
- data/.yardopts +1 -0
- data/{History.txt → ChangeLog.md} +8 -3
- data/LICENSE.txt +22 -0
- data/{README.txt → README.md} +19 -37
- data/Rakefile +29 -18
- data/chars.gemspec +10 -0
- data/gemspec.yml +16 -0
- data/lib/chars/char_set.rb +30 -22
- data/lib/chars/version.rb +1 -1
- data/spec/spec_helper.rb +1 -3
- metadata +76 -72
- data.tar.gz.sig +0 -0
- data/Manifest.txt +0 -18
- data/TODO.txt +0 -13
- data/tasks/spec.rb +0 -10
- metadata.gz.sig +0 -4
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour --format documentation
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--markup markdown --title 'Chars Documentation' --protected --files ChangeLog.md,LICENSE.txt
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
### 0.2.0 / 2010-10-27
|
2
|
+
|
3
|
+
* Make sure all enumerable methods in {Chars::CharSet} return an
|
4
|
+
`Enumerator` object if no block is given.
|
5
|
+
|
6
|
+
### 0.1.2 / 2009-09-21
|
2
7
|
|
3
8
|
* Require Hoe >= 2.3.3.
|
4
9
|
* Require YARD >= 0.2.3.5.
|
@@ -10,12 +15,12 @@
|
|
10
15
|
* Moved to YARD based documentation.
|
11
16
|
* All specs now pass on JRuby 1.3.1.
|
12
17
|
|
13
|
-
|
18
|
+
### 0.1.1 / 2009-04-01
|
14
19
|
|
15
20
|
* Renamed CharSet#=~ to CharSet#===.
|
16
21
|
* Added an alias from CharSet#=~ to CharSet#===.
|
17
22
|
|
18
|
-
|
23
|
+
### 0.1.0 / 2009-03-16
|
19
24
|
|
20
25
|
* Initial release.
|
21
26
|
* Provides character sets for:
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2009-2010 Hal Brodigan
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/{README.txt → README.md}
RENAMED
@@ -1,15 +1,15 @@
|
|
1
|
-
|
1
|
+
# Chars
|
2
2
|
|
3
3
|
* http://chars.rubyforge.org/
|
4
4
|
* http://github.com/postmodern/chars/
|
5
5
|
* Postmodern (postmodern.mod3 at gmail.com)
|
6
6
|
|
7
|
-
|
7
|
+
## Description
|
8
8
|
|
9
9
|
Chars is a Ruby library for working with various character sets,
|
10
10
|
recognizing text and generating random text from specific character sets.
|
11
11
|
|
12
|
-
|
12
|
+
## Features
|
13
13
|
|
14
14
|
* Provides character sets for:
|
15
15
|
* Numeric ('0' - '9')
|
@@ -38,74 +38,56 @@ recognizing text and generating random text from specific character sets.
|
|
38
38
|
* Signed ASCII ('\x00' - '\x7f')
|
39
39
|
* ASCII ('\x00' - '\xff')
|
40
40
|
|
41
|
-
|
41
|
+
## Examples
|
42
42
|
|
43
|
-
|
43
|
+
Determine whether a byte belongs to a character set:
|
44
44
|
|
45
45
|
0x41.alpha?
|
46
46
|
# => true
|
47
47
|
|
48
|
-
|
48
|
+
Determine whether a String belongs to a character set:
|
49
49
|
|
50
50
|
"22e1c0".hex?
|
51
51
|
# => true
|
52
52
|
|
53
|
-
|
53
|
+
Find all sub-strings that belong to a character set within a String:
|
54
54
|
|
55
55
|
ls = File.read('/bin/ls')
|
56
56
|
Chars.printable.strings_in(ls)
|
57
57
|
# => ["/lib64/ld-linux-x86-64.so.2", "KIq/", "5J~!", "%L~!", ...]
|
58
58
|
|
59
|
-
|
59
|
+
Return a random character from the set of all characters:
|
60
60
|
|
61
61
|
Chars.all.random_char
|
62
62
|
# => "\x94"
|
63
63
|
|
64
|
-
|
64
|
+
Return a random Array of characters from the alpha-numeric character set:
|
65
65
|
|
66
66
|
Chars.alpha_numeric.random_chars(10)
|
67
67
|
# => ["Q", "N", "S", "4", "x", "z", "3", "M", "F", "F"]
|
68
68
|
|
69
|
-
|
69
|
+
Return a random Array of a random length of unique characters from the
|
70
|
+
visible character set:
|
71
|
+
|
70
72
|
Chars.visible.random_distinct_chars(1..10)
|
71
73
|
# => ["S", "l", "o", "8", "'", "q"]
|
72
74
|
|
73
|
-
|
75
|
+
Return a random String from the set of all characters:
|
74
76
|
|
75
77
|
Chars.all.random_string(10)
|
76
78
|
# => "\xc2h\xad\xccm7\x1e6J\x13"
|
77
79
|
|
78
|
-
|
79
|
-
|
80
|
+
Return a random String with a random length between 5 and 10, from the
|
81
|
+
set of space characters:
|
80
82
|
|
81
83
|
Chars.space.random_string(5..10)
|
82
84
|
# => "\r\v\n\t\n\f"
|
83
85
|
|
84
|
-
|
85
|
-
|
86
|
-
$ sudo gem install chars
|
87
|
-
|
88
|
-
== LICENSE:
|
89
|
-
|
90
|
-
The MIT License
|
86
|
+
## Install
|
91
87
|
|
92
|
-
|
88
|
+
$ sudo gem install chars
|
93
89
|
|
94
|
-
|
95
|
-
a copy of this software and associated documentation files (the
|
96
|
-
'Software'), to deal in the Software without restriction, including
|
97
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
98
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
99
|
-
permit persons to whom the Software is furnished to do so, subject to
|
100
|
-
the following conditions:
|
90
|
+
## License
|
101
91
|
|
102
|
-
|
103
|
-
included in all copies or substantial portions of the Software.
|
92
|
+
See {file:LICENSE.txt} for license information.
|
104
93
|
|
105
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
106
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
107
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
108
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
109
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
110
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
111
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -1,24 +1,35 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
1
|
require 'rubygems'
|
4
|
-
require '
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
gem 'ore-tasks', '~> 0.1.2'
|
6
|
+
require 'ore/tasks'
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
['yard', '>=0.2.3.5']
|
15
|
-
]
|
8
|
+
Ore::Tasks.new
|
9
|
+
rescue LoadError => e
|
10
|
+
STDERR.puts e.message
|
11
|
+
STDERR.puts "Run `gem install ore-tasks` to install 'ore/tasks'."
|
12
|
+
end
|
16
13
|
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
begin
|
15
|
+
gem 'rspec', '~> 2.0.0'
|
16
|
+
require 'rspec/core/rake_task'
|
20
17
|
|
21
|
-
|
18
|
+
RSpec::Core::RakeTask.new
|
19
|
+
rescue LoadError => e
|
20
|
+
task :spec do
|
21
|
+
abort "Please run `gem install rspec` to install RSpec."
|
22
|
+
end
|
22
23
|
end
|
24
|
+
task :default => :spec
|
23
25
|
|
24
|
-
|
26
|
+
begin
|
27
|
+
gem 'yard', '~> 0.6.0'
|
28
|
+
require 'yard'
|
29
|
+
|
30
|
+
YARD::Rake::YardocTask.new
|
31
|
+
rescue LoadError => e
|
32
|
+
task :yard do
|
33
|
+
abort "Please run `gem install yard` to install YARD."
|
34
|
+
end
|
35
|
+
end
|
data/chars.gemspec
ADDED
data/gemspec.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
name: chars
|
2
|
+
summary: A Ruby library for working with various character sets
|
3
|
+
description:
|
4
|
+
Chars is a Ruby library for working with various character sets,
|
5
|
+
recognizing text and generating random text from specific character sets.
|
6
|
+
|
7
|
+
license: MIT
|
8
|
+
homepage: http://github.com/postmodern/chars
|
9
|
+
authors: Postmodern
|
10
|
+
email: postmodern.mod3@gmail.com
|
11
|
+
has_yard: true
|
12
|
+
|
13
|
+
development_dependencies:
|
14
|
+
ore: ~> 0.2.0
|
15
|
+
ore-tasks: ~> 0.1.2
|
16
|
+
rspec: ~> 2.0.0
|
data/lib/chars/char_set.rb
CHANGED
@@ -42,10 +42,10 @@ module Chars
|
|
42
42
|
# character set.
|
43
43
|
#
|
44
44
|
def include_char?(char)
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
if char.respond_to?(:each_byte)
|
46
|
+
char.each_byte.any? { |b| include?(b) }
|
47
|
+
else
|
48
|
+
false
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -69,8 +69,13 @@ module Chars
|
|
69
69
|
# @yieldparam [String] char
|
70
70
|
# Each character in the character set.
|
71
71
|
#
|
72
|
-
|
73
|
-
|
72
|
+
# @return [Enumerator]
|
73
|
+
# If no block is given, an enumerator object will be returned.
|
74
|
+
#
|
75
|
+
def each_char
|
76
|
+
return enum_for(:each_char) unless block_given?
|
77
|
+
|
78
|
+
each { |b| yield b.chr }
|
74
79
|
end
|
75
80
|
|
76
81
|
#
|
@@ -135,11 +140,14 @@ module Chars
|
|
135
140
|
# @yieldparam [Integer] byte
|
136
141
|
# The random byte from the character set.
|
137
142
|
#
|
138
|
-
# @return [
|
139
|
-
#
|
143
|
+
# @return [Enumerator]
|
144
|
+
# If no block is given, an enumerator object will be returned.
|
140
145
|
#
|
141
146
|
def each_random_byte(n,&block)
|
142
|
-
|
147
|
+
return enum_for(:each_random_byte,n) unless block_given?
|
148
|
+
|
149
|
+
n.times { yield random_byte }
|
150
|
+
return nil
|
143
151
|
end
|
144
152
|
|
145
153
|
#
|
@@ -154,11 +162,13 @@ module Chars
|
|
154
162
|
# @yieldparam [String] char
|
155
163
|
# The random character from the character set.
|
156
164
|
#
|
157
|
-
# @return [
|
158
|
-
#
|
165
|
+
# @return [Enumerator]
|
166
|
+
# If no block is given, an enumerator object will be returned.
|
159
167
|
#
|
160
168
|
def each_random_char(n,&block)
|
161
|
-
|
169
|
+
return enum_for(:each_random_char,n) unless block_given?
|
170
|
+
|
171
|
+
each_random_byte(n) { |b| yield b.chr }
|
162
172
|
end
|
163
173
|
|
164
174
|
#
|
@@ -172,9 +182,9 @@ module Chars
|
|
172
182
|
#
|
173
183
|
def random_bytes(length)
|
174
184
|
if (length.kind_of?(Array) || length.kind_of?(Range))
|
175
|
-
|
185
|
+
Array.new(length.sort_by { rand }.first) { random_byte }
|
176
186
|
else
|
177
|
-
|
187
|
+
Array.new(length) { random_byte }
|
178
188
|
end
|
179
189
|
end
|
180
190
|
|
@@ -189,9 +199,9 @@ module Chars
|
|
189
199
|
#
|
190
200
|
def random_distinct_bytes(length)
|
191
201
|
if (length.kind_of?(Array) || length.kind_of?(Range))
|
192
|
-
|
202
|
+
self.entries.sort_by { rand }.slice(0...(length.sort_by { rand }.first))
|
193
203
|
else
|
194
|
-
|
204
|
+
self.entries.sort_by { rand }.slice(0...length)
|
195
205
|
end
|
196
206
|
end
|
197
207
|
|
@@ -342,13 +352,11 @@ module Chars
|
|
342
352
|
# # => true
|
343
353
|
#
|
344
354
|
def ===(string)
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
355
|
+
if string.respond_to?(:each_byte)
|
356
|
+
string.each_byte.all? { |b| include?(b) }
|
357
|
+
else
|
358
|
+
false
|
349
359
|
end
|
350
|
-
|
351
|
-
return true
|
352
360
|
end
|
353
361
|
|
354
362
|
alias =~ ===
|
data/lib/chars/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,88 +1,87 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Postmodern
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
- |
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDQDCCAiigAwIBAgIBADANBgkqhkiG9w0BAQUFADBGMRgwFgYDVQQDDA9wb3N0
|
14
|
-
bW9kZXJuLm1vZDMxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
|
15
|
-
ARkWA2NvbTAeFw0wOTA2MDMwNDU5MDNaFw0xMDA2MDMwNDU5MDNaMEYxGDAWBgNV
|
16
|
-
BAMMD3Bvc3Rtb2Rlcm4ubW9kMzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYK
|
17
|
-
CZImiZPyLGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
|
18
|
-
1wvANkTDHFgVih5XLjuTwTZjgBq1lBGybXJiH6Id1lY2JOMqM5FB1DDHVvvij94i
|
19
|
-
mJabN0zkzu6VKWC70y0IwOxY7CPokr0eFdK/D0y7mCq1P8QITv76i2YqAl0eYqIt
|
20
|
-
W+IhIkANQ7E6uMZIZcdnfadC6lPAtlKkqtd9crvRbFgr6e3kyflmohbRnTEJHoRd
|
21
|
-
7SHHsybE6DSn7oTDs6XBTNrNIn5VfZA0z01eeos/+zBm1zKJOK2+/7xtLLDuDU9G
|
22
|
-
+Rd+ltUBbvxUrMNZmDG29pnmN2xTRH+Q8HxD2AxlvM5SRpK6OeZaHV7PaCCAVZ4L
|
23
|
-
T9BFl1sfMvRlABeGEkSyuQIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE
|
24
|
-
sDAdBgNVHQ4EFgQUKwsd+PqEYmBvyaTyoL+uRuk+PhEwDQYJKoZIhvcNAQEFBQAD
|
25
|
-
ggEBAB4TvHsrlbcXcKg6gX5BIb9tI+zGkpzo0Z7jnxMEcNO7NGGwmzafDBI/xZYv
|
26
|
-
xkRH3/HXbGGYDOi6Q6gWt5GujSx0bOImDtYTJTH8jnzN92HzEK5WdScm1QpZKF1e
|
27
|
-
cezArMbxbSPaosxTCtG6LQTkE28lFQsmFZ5xzouugS4h5+LVJiVMmiP+l3EfkjFa
|
28
|
-
GOURU+rNEMPWo8MCWivGW7jes6BMzWHcW7DQ0scNVmIcCIgdyMmpscuAEOSeghy9
|
29
|
-
/fFs57Ey2OXBL55nDOyvN/ZQ2Vab05UH4t+GCxjAPeirzL/29FBtePT6VD44c38j
|
30
|
-
pDj+ws7QjtH/Qcrr1l9jfN0ehDs=
|
31
|
-
-----END CERTIFICATE-----
|
15
|
+
cert_chain: []
|
32
16
|
|
33
|
-
date:
|
17
|
+
date: 2010-10-27 00:00:00 -07:00
|
34
18
|
default_executable:
|
35
19
|
dependencies:
|
36
20
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
|
39
|
-
|
40
|
-
|
21
|
+
name: ore
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
41
25
|
requirements:
|
42
|
-
- -
|
26
|
+
- - ~>
|
43
27
|
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
-
|
47
|
-
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 2
|
31
|
+
- 0
|
32
|
+
version: 0.2.0
|
48
33
|
type: :development
|
49
|
-
|
50
|
-
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: ore-tasks
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
51
40
|
requirements:
|
52
|
-
- -
|
41
|
+
- - ~>
|
53
42
|
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
56
|
-
-
|
57
|
-
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
- 1
|
46
|
+
- 2
|
47
|
+
version: 0.1.2
|
58
48
|
type: :development
|
59
|
-
|
60
|
-
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rspec
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
61
55
|
requirements:
|
62
|
-
- -
|
56
|
+
- - ~>
|
63
57
|
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
58
|
+
segments:
|
59
|
+
- 2
|
60
|
+
- 0
|
61
|
+
- 0
|
62
|
+
version: 2.0.0
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
65
|
+
description: Chars is a Ruby library for working with various character sets, recognizing text and generating random text from specific character sets.
|
66
|
+
email: postmodern.mod3@gmail.com
|
71
67
|
executables: []
|
72
68
|
|
73
69
|
extensions: []
|
74
70
|
|
75
71
|
extra_rdoc_files:
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
- TODO.txt
|
72
|
+
- README.md
|
73
|
+
- ChangeLog.md
|
74
|
+
- LICENSE.txt
|
80
75
|
files:
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
76
|
+
- .document
|
77
|
+
- .rspec
|
78
|
+
- .yardopts
|
79
|
+
- ChangeLog.md
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
85
82
|
- Rakefile
|
83
|
+
- chars.gemspec
|
84
|
+
- gemspec.yml
|
86
85
|
- lib/chars.rb
|
87
86
|
- lib/chars/char_set.rb
|
88
87
|
- lib/chars/chars.rb
|
@@ -90,40 +89,45 @@ files:
|
|
90
89
|
- lib/chars/extensions/integer.rb
|
91
90
|
- lib/chars/extensions/string.rb
|
92
91
|
- lib/chars/version.rb
|
93
|
-
- tasks/spec.rb
|
94
|
-
- spec/spec_helper.rb
|
95
92
|
- spec/char_set_spec.rb
|
96
93
|
- spec/chars_spec.rb
|
97
94
|
- spec/integer_spec.rb
|
95
|
+
- spec/spec_helper.rb
|
98
96
|
- spec/string_spec.rb
|
99
97
|
has_rdoc: yard
|
100
|
-
homepage: http://
|
101
|
-
licenses:
|
102
|
-
|
98
|
+
homepage: http://github.com/postmodern/chars
|
99
|
+
licenses:
|
100
|
+
- MIT
|
103
101
|
post_install_message:
|
104
|
-
rdoc_options:
|
105
|
-
|
106
|
-
- README.txt
|
102
|
+
rdoc_options: []
|
103
|
+
|
107
104
|
require_paths:
|
108
105
|
- lib
|
109
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
110
108
|
requirements:
|
111
109
|
- - ">="
|
112
110
|
- !ruby/object:Gem::Version
|
111
|
+
segments:
|
112
|
+
- 0
|
113
113
|
version: "0"
|
114
|
-
version:
|
115
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
+
segments:
|
120
|
+
- 0
|
119
121
|
version: "0"
|
120
|
-
version:
|
121
122
|
requirements: []
|
122
123
|
|
123
124
|
rubyforge_project: chars
|
124
|
-
rubygems_version: 1.3.
|
125
|
+
rubygems_version: 1.3.7
|
125
126
|
signing_key:
|
126
127
|
specification_version: 3
|
127
|
-
summary:
|
128
|
-
test_files:
|
129
|
-
|
128
|
+
summary: A Ruby library for working with various character sets
|
129
|
+
test_files:
|
130
|
+
- spec/integer_spec.rb
|
131
|
+
- spec/chars_spec.rb
|
132
|
+
- spec/char_set_spec.rb
|
133
|
+
- spec/string_spec.rb
|
data.tar.gz.sig
DELETED
Binary file
|
data/Manifest.txt
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
README.txt
|
4
|
-
TODO.txt
|
5
|
-
Rakefile
|
6
|
-
lib/chars.rb
|
7
|
-
lib/chars/char_set.rb
|
8
|
-
lib/chars/chars.rb
|
9
|
-
lib/chars/extensions.rb
|
10
|
-
lib/chars/extensions/integer.rb
|
11
|
-
lib/chars/extensions/string.rb
|
12
|
-
lib/chars/version.rb
|
13
|
-
tasks/spec.rb
|
14
|
-
spec/spec_helper.rb
|
15
|
-
spec/char_set_spec.rb
|
16
|
-
spec/chars_spec.rb
|
17
|
-
spec/integer_spec.rb
|
18
|
-
spec/string_spec.rb
|
data/TODO.txt
DELETED
data/tasks/spec.rb
DELETED
metadata.gz.sig
DELETED