satoshi-unit 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/satoshi.rb +1 -0
- data/satoshi-unit.gemspec +3 -3
- data/spec/satoshi_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdb279ef09cb9e4937e2dcedbfef5d78c4588de2
|
4
|
+
data.tar.gz: cd8a2c2b8924a4a2ab4f75cc61aee5bf2916c941
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 832af23c57375567304fef946768d11d8b927c7ec9b2b76947af7f5a17500736137e18156662b47287c703923f3b5589798df683564b68665406b25cc690cc1b
|
7
|
+
data.tar.gz: dd116f5d126fc000a6a947d405bd17c98e955998c741d48b2d07546bfa4bf67ba07fc92be5a167b4afb9a9653cafd3c9cea2192430e4e581bda0852033a051ae
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/satoshi.rb
CHANGED
data/satoshi-unit.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: satoshi-unit 0.1.
|
5
|
+
# stub: satoshi-unit 0.1.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "satoshi-unit"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Roman Snitko"]
|
14
|
-
s.date = "2014-06-
|
14
|
+
s.date = "2014-06-02"
|
15
15
|
s.description = "Converts various bitcoin denominations in Satoshis and back"
|
16
16
|
s.email = "roman.snitko@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
data/spec/satoshi_spec.rb
CHANGED
@@ -29,4 +29,10 @@ describe Satoshi do
|
|
29
29
|
expect(Satoshi.new(100, unit: 'mbtc').to_i).to eq(10000000)
|
30
30
|
end
|
31
31
|
|
32
|
+
it "treats nil in value as 0" do
|
33
|
+
expect(Satoshi.new < 1).to be_true
|
34
|
+
expect(Satoshi.new > 1).to be_false
|
35
|
+
expect(Satoshi.new == 0).to be_true
|
36
|
+
end
|
37
|
+
|
32
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: satoshi-unit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Snitko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|