base58 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/README.rdoc +3 -2
- data/VERSION +1 -1
- data/base58.gemspec +2 -2
- data/lib/base58.rb +1 -0
- data/test/test_base58.rb +6 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -8,8 +8,9 @@ Paypal address: mailto:dougal.s@gmail.com
|
|
8
8
|
|
9
9
|
=== Install
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
Base58 is hosted by http://gemcutter.com. Please make sure you have added them to your gem sources.
|
12
|
+
|
13
|
+
$ sudo gem install base58
|
13
14
|
|
14
15
|
== Usage
|
15
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/base58.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{base58}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Douglas F Shearer"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-27}
|
13
13
|
s.description = %q{Base58 is a Ruby library for converting ints to and from base58.}
|
14
14
|
s.email = %q{dougal.s@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/base58.rb
CHANGED
data/test/test_base58.rb
CHANGED
@@ -515,4 +515,10 @@ EXAMPLES = { "6hKMCS" => 3471391110,
|
|
515
515
|
assert_equal expected, Base58.base58_to_int(base_58)
|
516
516
|
end
|
517
517
|
end
|
518
|
+
|
519
|
+
def test_string_instead_of_int
|
520
|
+
e = assert_raise(ArgumentError) { Base58.int_to_base58('3470432637') }
|
521
|
+
assert_equal 'Value passed is not an Integer.', e.message
|
522
|
+
end
|
523
|
+
|
518
524
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: base58
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas F Shearer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-27 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|