human_codes 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,48 +1,54 @@
1
- = Human Codes
1
+ Human Codes
2
+ =
2
3
 
3
- * http://github.com/JackDanger/human_codes
4
+ [http://github.com/JackDanger/human_codes](http://github.com/JackDanger/human_codes)
4
5
 
5
- == DESCRIPTION:
6
+ DESCRIPTION
7
+ ==
6
8
 
7
9
  Convert integers to short, human-scannable alphanumeric strings (skipping 'l', '1', 'o', '0', etc.) and back.
8
10
 
9
11
  Unlike the code behind url shorteners, this supports case-insensitive conversion and
10
12
  omits letters and numbers that are difficult to distinguish by sight (like 'l' and '1')
11
13
 
12
- == SYNOPSIS:
13
-
14
- # 45.human_code
15
- # => '2E'
16
- # 5234233.human_code
17
- # '5ZRJT'
18
- # 'AYH783XM3AJZ99'.human_code
19
- # => 367212504123260337416
20
- # 367212504123260337416.human_code
21
- # => 'AYH783XM3AJZ99'
22
- #
23
- ## strings that weren't generated by this library don't get converted
24
- #
25
- # "ajYz2".human_code
26
- # => "ajyz2"
27
- #
28
- ## But your users shouldn't have to use the shift key
29
- #
30
- # "AJYZ2".human_code
31
- # => 10025953
32
- # "ajYz2".human_code :fix_case => true
33
- # => 10025953
34
-
35
-
36
- == INSTALL:
37
-
38
- * sudo gem install human_codes
39
-
40
- == WHERE CREDIT IS DUE
14
+ SYNOPSIS
15
+ ==
16
+
17
+ # 45.human_code
18
+ # => '3G'
19
+ # 5234233.human_code
20
+ # '7PQP9'
21
+ # 'AYH783XM3AJZ99'.human_code
22
+ # => 218567976681298046129
23
+ # 218567976681298046129.human_code
24
+ # => 'AYH783XM3AJZ99'
25
+ #
26
+ ## strings that weren't generated by this library don't get converted
27
+ #
28
+ # "ajYz2".human_code
29
+ # => "ajyz2"
30
+ #
31
+ ## But your users shouldn't have to use the shift key
32
+ #
33
+ # 'AJYZ2'.human_code
34
+ # => 7893623
35
+ # "ajYz2".human_code :fix_case => true
36
+ # => 7893623
37
+
38
+
39
+ INSTALL
40
+ ==
41
+
42
+ * sudo gem install human_codes
43
+
44
+ WHERE CREDIT IS DUE
45
+ ==
41
46
 
42
47
  This project was inspired by my and Mike Mondragon's alphadecimal, Shane Becker's
43
48
  NewBase60, and busy retail workers everywhere who need to enter coupon codes.
44
49
 
45
- == LICENSE:
50
+ LICENSE:
51
+ ==
46
52
 
47
53
  (The MIT License)
48
54
 
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ begin
3
3
  Jeweler::Tasks.new do |gem|
4
4
  gem.name = "human_codes"
5
5
  gem.summary = %Q{Convert integers to human-readable compressed alphanumeric strings and back. Lets humans enter very long integers quickly.}
6
- gem.description = %Q{Convert integers to human-readable compressed alphanumeric strings and back. Lets humans enter very long integers quickly. Uses base-32 compression of integers.}
6
+ gem.description = %Q{Convert integers to human-readable compressed alphanumeric strings and back. Lets humans enter very long integers quickly. Uses base-31 compression of integers.}
7
7
  gem.email = "rubygems@6brand.com"
8
8
  gem.homepage = "http://github.com/JackDanger/human_codes"
9
9
  gem.authors = ["Jack Danger Canty"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/human_codes.gemspec CHANGED
@@ -5,19 +5,19 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{human_codes}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Danger Canty"]
12
12
  s.date = %q{2010-07-12}
13
- s.description = %q{Convert integers to human-readable compressed alphanumeric strings and back. Lets humans enter very long integers quickly. Uses base-32 compression of integers.}
13
+ s.description = %q{Convert integers to human-readable compressed alphanumeric strings and back. Lets humans enter very long integers quickly. Uses base-31 compression of integers.}
14
14
  s.email = %q{rubygems@6brand.com}
15
15
  s.extra_rdoc_files = [
16
- "README.txt"
16
+ "README.markdown"
17
17
  ]
18
18
  s.files = [
19
19
  "Manifest.txt",
20
- "README.txt",
20
+ "README.markdown",
21
21
  "Rakefile",
22
22
  "VERSION",
23
23
  "human_codes.gemspec",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 0
9
- version: 1.1.0
8
+ - 1
9
+ version: 1.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jack Danger Canty
@@ -18,17 +18,17 @@ date: 2010-07-12 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
21
- description: Convert integers to human-readable compressed alphanumeric strings and back. Lets humans enter very long integers quickly. Uses base-32 compression of integers.
21
+ description: Convert integers to human-readable compressed alphanumeric strings and back. Lets humans enter very long integers quickly. Uses base-31 compression of integers.
22
22
  email: rubygems@6brand.com
23
23
  executables: []
24
24
 
25
25
  extensions: []
26
26
 
27
27
  extra_rdoc_files:
28
- - README.txt
28
+ - README.markdown
29
29
  files:
30
30
  - Manifest.txt
31
- - README.txt
31
+ - README.markdown
32
32
  - Rakefile
33
33
  - VERSION
34
34
  - human_codes.gemspec