basecustom 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDlhNzJkN2E3MzE4N2NhZjk3YmE4YWFhNDA3NmU3M2Q0YWU4MWQyMQ==
5
+ data.tar.gz: !binary |-
6
+ N2Y2OTYzODAzZmY3YzBlNTAxMjNkMTY0ODVjNjNlNGUzNTEyNzMzMw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ N2NkNjBiYWY3NjM0ZDVlMjEwNDY1ZTc2OTdlMDEwNTk0NDg4N2M1ZWMyMDQ1
10
+ ZjI4ZWQ0ZjhkMjZhYjdmZjlmM2M5ODJmZGRlMDkwZGFhOGFiNjQzNmMwMjk5
11
+ YzA4MDFiM2JhMGNjODc0NjRlMzA0NzhkMTQyMjA1ZDE1Zjc2MmY=
12
+ data.tar.gz: !binary |-
13
+ ZTIwMzQ3MzIxNjk1MGZhYjFjMDVkODRhZWY0NzU5NDE4YmE4NjkwOTVlZmM4
14
+ ZjQ5ZTdiY2I5YmQzMDdlZmJmN2I4ZGI0ZjM4YjFmZTE1Yjc2ZDcyYjQ3NTA5
15
+ MDcxNTgxZjUzMGMxMzAxOWRhYWIxY2NmZDEzOTExZGYyYmE4NjI=
@@ -4,12 +4,13 @@ by Daniel P. Clark
4
4
  Inspired by:
5
5
  * base62 by "JT Zemp" and contributors "Saadiq Rodgers-King", "Derrick Camerino"
6
6
 
7
- Version 0.1.3 created from assistance and advice by my father Robert Clark.
7
+ Version 0.1.3 created from assistance and advice by my father Robert Clark. This version now includes a delimiter.
8
8
 
9
9
  Description
10
10
  * Define any base conversion with any identifier for each value.
11
11
 
12
- require 'basecustom'
12
+
13
+ <code>require 'basecustom'
13
14
 
14
15
  base2 = BaseCustom.new('01')
15
16
  base2.base('00001')
@@ -25,4 +26,9 @@ Description
25
26
  baseABC.base('ABC')
26
27
  => 5
27
28
  baseABC.base(123)
28
- => "BBBCA"
29
+ => "BBBCA"</code>
30
+
31
+
32
+ Usage Video Below:
33
+
34
+ [![ScreenShot](http://img.youtube.com/vi/b7TdvicxIrs/0.jpg)](http://www.youtube.com/embed/b7TdvicxIrs)
@@ -1,7 +1,9 @@
1
1
  class BaseCustom
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
4
4
 
5
+ # Version 0.1.6
6
+ # * Fixed 0 as 0 bug.
5
7
  # Version 0.1.5
6
8
  # * Added jmchambers' debug from jtzemp/base62 to avoid infinite loop in Rails 3.0.7
7
9
  # Version 0.1.4
data/lib/basecustom.rb CHANGED
@@ -41,7 +41,7 @@ class BaseCustom
41
41
  i_out
42
42
  # end input_val.is_a?(String)
43
43
  elsif input_val.is_a?(Integer)
44
- return "0" if input_val == 0
44
+ return @BASE_PRIMITIVES_HASH.first[0] if input_val == 0
45
45
  number = input_val
46
46
  result = ''
47
47
  while(number != 0)
metadata CHANGED
@@ -1,55 +1,48 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecustom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
5
- prerelease:
4
+ version: 0.1.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Daniel P. Clark / 6ftDan(TM)
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-26 00:00:00.000000000 Z
11
+ date: 2014-04-30 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: Define any base conversion with any identifier for each value. Let the
15
- fun begin!
13
+ description: Define your own numberic base! Highly advanced and ultimately simple!
16
14
  email: webmaster@6ftdan.com
17
15
  executables: []
18
16
  extensions: []
19
- extra_rdoc_files:
20
- - README
17
+ extra_rdoc_files: []
21
18
  files:
19
+ - LICENSE
20
+ - README.md
22
21
  - lib/basecustom.rb
23
22
  - lib/basecustom/version.rb
24
23
  - test/test_bc.rb
25
- - README
26
- - LICENSE
27
- homepage: http://www.github.com/danielpclark/BaseCustom
24
+ homepage: https://rubygems.org/gems/basecustom
28
25
  licenses:
29
26
  - The MIT License (MIT)
30
- post_install_message: Enjoy BaseCustom! You may now define your own numbering systems.
31
- rdoc_options:
32
- - --main
33
- - README
27
+ metadata: {}
28
+ post_install_message: Create your own number base(s)!
29
+ rdoc_options: []
34
30
  require_paths:
35
31
  - lib
36
32
  required_ruby_version: !ruby/object:Gem::Requirement
37
- none: false
38
33
  requirements:
39
34
  - - ! '>='
40
35
  - !ruby/object:Gem::Version
41
36
  version: '0'
42
37
  required_rubygems_version: !ruby/object:Gem::Requirement
43
- none: false
44
38
  requirements:
45
39
  - - ! '>='
46
40
  - !ruby/object:Gem::Version
47
41
  version: '0'
48
42
  requirements: []
49
43
  rubyforge_project:
50
- rubygems_version: 1.8.24
44
+ rubygems_version: 2.2.2
51
45
  signing_key:
52
- specification_version: 3
53
- summary: Define any base conversion with any identifier for each value.
54
- test_files:
55
- - test/test_bc.rb
46
+ specification_version: 4
47
+ summary: Define your own numberic base!
48
+ test_files: []