akchabar 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 7f7972dd013657fd3af45844ebe8788d70dd4b3d
4
- data.tar.gz: fc3a4a0bc691a8efb8a9b601f2201c39fa8b56f2
3
+ metadata.gz: 8be8239d1df3fa22b92ce70b3acf12082bb47315
4
+ data.tar.gz: 0721629f4217811b7d5c56525c96b808f13df1bf
5
5
  SHA512:
6
- metadata.gz: 66850a26c3edecc15cd4f15ede207b05ac848b1e4d64202235b27452f7129e183f69630470af92c932682de414c9417e83af2bef9d5480d884d46ae31017c080
7
- data.tar.gz: 925dff3699f1da67a76e73ff9bcab73cd566b232deacb79e2b5be35c1347380b0059fc0db6dd2088a37d52cd3fa920a8ce83d513de5ec4ba7d28109c8a5ef874
6
+ metadata.gz: 9771c6315fcf97a56392f65a8f493e7388e9551e83ef7574970acf46b0f895fc0878c0f80203193031f46512607d43a27d4ab4eb286025be34e6140810aca70f
7
+ data.tar.gz: 1410ebce05e72adf7e9136d14b11304118b553cc6229dc1a1b74c96fdc3850b15b2bcdda871b44485827d2b3088106e162bcfec136ec2626005fab0dd450f4cd
@@ -1,6 +1,7 @@
1
1
  require "akchabar/version"
2
2
  require 'net/http'
3
3
  require 'json'
4
+ require 'bigdecimal'
4
5
 
5
6
  module Akchabar
6
7
 
@@ -9,6 +10,6 @@ module Akchabar
9
10
  end
10
11
 
11
12
  def self.btc_rate
12
- self.rates["rates"]["btc"].to_f
13
+ BigDecimal.new self.rates["rates"]["btc"]
13
14
  end
14
15
  end
@@ -1,3 +1,3 @@
1
1
  module Akchabar
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akchabar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kalys Osmonov