satoshi-unit 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3ffee94337e7fe5b35b863b99659a05c9bb229a
4
- data.tar.gz: dc30daf09e0be18b38764ad1de401393748102b9
3
+ metadata.gz: f35628627d806990fa1473a646119f10c7426bef
4
+ data.tar.gz: dd7e513645db5756dc3a12aa9c322f34cfedc4c2
5
5
  SHA512:
6
- metadata.gz: 09b562dcc071fd68576977f4107f5a55e309d575a4b7b365565af8b8ed69ede2c56867d28419b718e6b5b9ee86978140489d20934c803ec54885d9de4ad9a9f8
7
- data.tar.gz: cfe3ac10b47ffbe591daaf0815ff7a7715f00aa09c79c4033ef00573d18032d275e6e51058d6483f1b9f821865be264e469002e85caade642a1f414d85e129d1
6
+ metadata.gz: d73f370a77bef70981e130a5a0ad8ff069779eb137da7b5ef5cc971d814580394934f635adef5e18f8a9e64d060c849fa97fb4ff4477a4a3488b82d106fdb08d
7
+ data.tar.gz: 3a646842b7f83da37df6ce72e262a6afe86fcaae748a80057b51f68743c93bed4409969dd0a0fde6e35fe4a68b1f5d5f474d606c6d1d360c4bd8c76e107a62f9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -53,6 +53,14 @@ class Satoshi
53
53
  self.to_i < i
54
54
  end
55
55
 
56
+ def >=(i)
57
+ self.to_i >= i
58
+ end
59
+
60
+ def <=(i)
61
+ self.to_i <= i
62
+ end
63
+
56
64
  def ==(i)
57
65
  self.to_i == i
58
66
  end
@@ -65,6 +73,10 @@ class Satoshi
65
73
  self.to_i - i
66
74
  end
67
75
 
76
+ def *(i)
77
+ self.to_i * i
78
+ end
79
+
68
80
  def coerce(other)
69
81
  if other.kind_of?(Integer)
70
82
  [other, self.to_i]
@@ -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.1 ruby lib
5
+ # stub: satoshi-unit 0.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "satoshi-unit"
9
- s.version = "0.1.1"
9
+ s.version = "0.1.2"
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-05-27"
14
+ s.date = "2014-06-01"
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 = [
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.1
4
+ version: 0.1.2
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-05-27 00:00:00.000000000 Z
11
+ date: 2014-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler