openname 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -0
  3. data/lib/openname/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12fa57d0eddaa6b5e7024a8020060c07c85207ee
4
- data.tar.gz: 8ecea83221d00a389cd5285e82438c4ad140dcb0
3
+ metadata.gz: cd17a3d6eb5dd6fd7cabc78a9b2ef8653d59526d
4
+ data.tar.gz: cec3ac486e87161e411803bdae34e0a5794236db
5
5
  SHA512:
6
- metadata.gz: 209ba518efcf73b42c5eae62256518d63f2a365d638f268ed59dd05b7a49235e356f57ed4198fdcc4e4a50848e7798c1c3c5af8aa4954bb4b04368aa7e786485
7
- data.tar.gz: 050dacec96225c9016d045ce8d87e3b939b4b3f366015d2c197402f83f035357305c62ff0750a213a69502dfa01d1601644d4de5857f6334b9720c64cd79748f
6
+ metadata.gz: ba21031a56cc038f14f8b3af0b2af11ae38f1085e42d0671bb4bd7f791f6e4164aa722a388afe76f640b087be696d9bc6e48905b03b6b9bf29f680e0b6c2291f
7
+ data.tar.gz: fee9ad61ccf8093f7e1cc5918064fc4d110b34d33b82a4846cf10ad13713fc8d98420bd0ba93caa8da230a393fb9c342982c94700ee6162fbd17a2530df9bfde
data/README.md CHANGED
@@ -25,6 +25,18 @@ Or install it yourself as:
25
25
  larrys_bitcoin_address = user.bitcoin_address
26
26
  larrys_website = user.website
27
27
  ```
28
+
29
+ Convenience method `git_bitcoin_address` can be used for retrieving Bitcoin addresses. If you give it a Bitcoin address it will return the same Bitcoin address; if you give it an Openname it will return the Openname user's Bitcoin address. Useful for allowing end users to either directly specify a Bitcoin address or provide a Openname in the same input field.
30
+
31
+ ```
32
+ require "openname"
33
+
34
+ larrys_bitcoin_address = Openname.get_bitcoin_address("larry")
35
+
36
+ an_address = "143xFrxppUD9oQE7mGvQFe23h814YorMBs
37
+ an_address == Openname.get_bitcoin_address("143xFrxppUD9oQE7mGvQFe23h814YorMBs") # evaluates to true
38
+
39
+ ```
28
40
 
29
41
  ## Contributing
30
42
 
@@ -1,3 +1,3 @@
1
1
  module Openname
2
- VERSION = "0.4"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openname
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Salibra