openname 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/lib/openname/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd17a3d6eb5dd6fd7cabc78a9b2ef8653d59526d
|
4
|
+
data.tar.gz: cec3ac486e87161e411803bdae34e0a5794236db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/openname/version.rb
CHANGED