basecustom 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,9 @@
1
1
  class BaseCustom
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
4
4
 
5
+ # Version 0.1.5
6
+ # * Added jmchambers' debug from jtzemp/base62 to avoid infinite loop in Rails 3.0.7
5
7
  # Version 0.1.4
6
8
  # * My father suggested delimiter splitting on String initialization made more sense.
7
9
  # * Test-Unit assertions fixed/updated.
data/lib/basecustom.rb CHANGED
@@ -46,7 +46,7 @@ class BaseCustom
46
46
  result = ''
47
47
  while(number != 0)
48
48
  result = @BASE_PRIMITIVES_ARRAY[number % @BASE_PRIMITIVES_ARRAY.size ].to_s + @delim + result
49
- number /= @BASE_PRIMITIVES_ARRAY.size
49
+ number = Integer(number/@BASE_PRIMITIVES_ARRAY.size)
50
50
  end
51
51
  result
52
52
  # end input_val.is_a?(Integer)
metadata CHANGED
@@ -1,70 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: basecustom
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 4
10
- version: 0.1.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Daniel P. Clark / 6ftDan(TM)
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-11-22 00:00:00 Z
12
+ date: 2013-01-26 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
- description: Define any base conversion with any identifier for each value. Let the fun begin!
14
+ description: Define any base conversion with any identifier for each value. Let the
15
+ fun begin!
22
16
  email: webmaster@6ftdan.com
23
17
  executables: []
24
-
25
18
  extensions: []
26
-
27
- extra_rdoc_files:
19
+ extra_rdoc_files:
28
20
  - README
29
- files:
21
+ files:
30
22
  - lib/basecustom.rb
31
23
  - lib/basecustom/version.rb
32
24
  - test/test_bc.rb
33
25
  - README
34
26
  - LICENSE
35
27
  homepage: http://www.github.com/danielpclark/BaseCustom
36
- licenses:
28
+ licenses:
37
29
  - The MIT License (MIT)
38
30
  post_install_message: Enjoy BaseCustom! You may now define your own numbering systems.
39
- rdoc_options:
31
+ rdoc_options:
40
32
  - --main
41
33
  - README
42
- require_paths:
34
+ require_paths:
43
35
  - lib
44
- required_ruby_version: !ruby/object:Gem::Requirement
36
+ required_ruby_version: !ruby/object:Gem::Requirement
45
37
  none: false
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- hash: 3
50
- segments:
51
- - 0
52
- version: "0"
53
- required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
43
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
62
48
  requirements: []
63
-
64
49
  rubyforge_project:
65
50
  rubygems_version: 1.8.24
66
51
  signing_key:
67
52
  specification_version: 3
68
53
  summary: Define any base conversion with any identifier for each value.
69
- test_files:
54
+ test_files:
70
55
  - test/test_bc.rb