sibit 0.12.0 → 0.12.1

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
  SHA256:
3
- metadata.gz: 8fa2a41b4b9d7893fac773a90d7a9fcb3866339aa616b7a8e291d53bed50618f
4
- data.tar.gz: d4f81c3c74df3927c5fec8dce9c7218cbf0a76d8cf6d1094ea2474aadd7e4525
3
+ metadata.gz: 838205037231a25997f696f1cb3cc3dec81da480c548aae986a4f2edf82e6d98
4
+ data.tar.gz: 9aa427a6a709917f7f3de90ea21f7f65d4c280cf5bdfeccbb799b8bb2e116c14
5
5
  SHA512:
6
- metadata.gz: 4ebf4d8cf70cef85a6d9d914cdec60cfa5c0164b8e7070f37e245d7b92267cf4fd6d1dd59ba6ff843c309861cbe5df2c19ec31af4a06874ad9e7b6a1191b371b
7
- data.tar.gz: 6a9c5fca263fbec6b2aa61075c33314de00a0b22397d04662e135be46fbd556b699f21e3a4d856d43b9fcadb31eb306cb20134900125e91a3e0d9371fd1c676e
6
+ metadata.gz: 6ee8f7ad712dd4fc000a22e791d135b132265b358fe00600277ab0b9c9d82beb70950838b0b1ff85f2ef3e933ddc26e33f86d2bd4f7cd194fd577efebb64a9ce
7
+ data.tar.gz: dd31f9b9c94c29053a14861319c6b077a8942df719c79dd2e8ae368aaa2bcac942dbe934353968eb47df2075e83507b0eb51f77c619ac7d4e8b252f6210ba30d
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <img src="/logo.png" width="64px"/>
1
+ <img src="/logo.svg" width="64px"/>
2
2
 
3
3
  [![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
4
4
  [![Managed by Zerocracy](https://www.0crat.com/badge/C3RFVLU72.svg)](https://www.0crat.com/p/C3RFVLU72)
data/lib/sibit/version.rb CHANGED
@@ -26,5 +26,5 @@
26
26
  # License:: MIT
27
27
  class Sibit
28
28
  # Current version of the library.
29
- VERSION = '0.12.0'
29
+ VERSION = '0.12.1'
30
30
  end
data/lib/sibit.rb CHANGED
@@ -45,6 +45,10 @@ class Sibit
45
45
  4_000
46
46
  end
47
47
 
48
+ def fees
49
+ { S: 12, M: 45, L: 100, XL: 200 }
50
+ end
51
+
48
52
  def generate
49
53
  'fd2333686f49d8647e1ce8d5ef39c304520b08f3c756b67068b30a3db217dcb2'
50
54
  end
data/logo.svg ADDED
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Group</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="Group" transform="translate(0.000000, -1.000000)">
9
+ <g id="Bitcoin" fill-rule="nonzero">
10
+ <path d="M63.0393088,40.7409802 C58.7653088,57.8839802 41.4023088,68.3169802 24.2573088,64.0419802 C7.11930876,59.7679802 -3.31369124,42.4039802 0.96230876,25.2619802 C5.23430876,8.11698016 22.5973088,-2.31701984 39.7373088,1.95698016 C56.8813088,6.23098016 67.3133088,23.5969802 63.0393088,40.7409802 Z" id="Shape" fill="#F7931A"></path>
11
+ <path d="M46.1093088,28.4409802 C46.7463088,24.1829802 43.5043088,21.8939802 39.0713088,20.3669802 L40.5093088,14.5989802 L36.9983088,13.7239802 L35.5983088,19.3399802 C34.6753088,19.1099802 33.7273088,18.8929802 32.7853088,18.6779802 L34.1953088,13.0249802 L30.6863088,12.1499802 L29.2473088,17.9159802 C28.4833088,17.7419802 27.7333088,17.5699802 27.0053088,17.3889802 L27.0093088,17.3709802 L22.1673088,16.1619802 L21.2333088,19.9119802 C21.2333088,19.9119802 23.8383088,20.5089802 23.7833088,20.5459802 C25.2053088,20.9009802 25.4623088,21.8419802 25.4193088,22.5879802 L23.7813088,29.1589802 C23.8793088,29.1839802 24.0063088,29.2199802 24.1463088,29.2759802 C24.0293088,29.2469802 23.9043088,29.2149802 23.7753088,29.1839802 L21.4793088,38.3889802 C21.3053088,38.8209802 20.8643088,39.4689802 19.8703088,39.2229802 C19.9053088,39.2739802 17.3183088,38.5859802 17.3183088,38.5859802 L15.5753088,42.6049802 L20.1443088,43.7439802 C20.9943088,43.9569802 21.8273088,44.1799802 22.6473088,44.3899802 L21.1943088,50.2239802 L24.7013088,51.0989802 L26.1403088,45.3269802 C27.0983088,45.5869802 28.0283088,45.8269802 28.9383088,46.0529802 L27.5043088,51.7979802 L31.0153088,52.6729802 L32.4683088,46.8499802 C38.4553088,47.9829802 42.9573088,47.5259802 44.8523088,42.1109802 C46.3793088,37.7509802 44.7763088,35.2359802 41.6263088,33.5959802 C43.9203088,33.0669802 45.6483088,31.5579802 46.1093088,28.4409802 L46.1093088,28.4409802 Z M38.0873088,39.6899802 C37.0023088,44.0499802 29.6613088,41.6929802 27.2813088,41.1019802 L29.2093088,33.3729802 C31.5893088,33.9669802 39.2213088,35.1429802 38.0873088,39.6899802 Z M39.1733088,28.3779802 C38.1833088,32.3439802 32.0733088,30.3289802 30.0913088,29.8349802 L31.8393088,22.8249802 C33.8213088,23.3189802 40.2043088,24.2409802 39.1733088,28.3779802 L39.1733088,28.3779802 Z" id="Shape" fill="#FFFFFF"></path>
12
+ </g>
13
+ <rect id="Rectangle-2" fill="#2B2B2B" x="23" y="44" width="41" height="21" rx="2"></rect>
14
+ <text id="&gt;_" font-family="Courier" font-size="20" font-weight="normal" fill="#FFFFFF">
15
+ <tspan x="28.4980469" y="59">&gt;_</tspan>
16
+ </text>
17
+ </g>
18
+ </g>
19
+ </svg>
data/test/test_sibit.rb CHANGED
@@ -160,6 +160,7 @@ class TestSibit < Minitest::Test
160
160
  def test_fake_object_works
161
161
  sibit = Sibit::Fake.new
162
162
  assert_equal(4_000, sibit.price)
163
+ assert_equal(12, sibit.fees[:S])
163
164
  assert_equal('fd2333686f49d8647e1ce8d5ef39c304520b08f3c756b67068b30a3db217dcb2', sibit.generate)
164
165
  assert_equal('1JvCsJtLmCxEk7ddZFnVkGXpr9uhxZPmJi', sibit.create(''))
165
166
  assert_equal(100_000_000, sibit.balance(''))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
@@ -240,7 +240,7 @@ files:
240
240
  - features/support/env.rb
241
241
  - lib/sibit.rb
242
242
  - lib/sibit/version.rb
243
- - logo.png
243
+ - logo.svg
244
244
  - sibit.gemspec
245
245
  - test/test__helper.rb
246
246
  - test/test_sibit.rb
data/logo.png DELETED
Binary file