wonder 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/lib/wonder/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: 376dd96b0c679d9bfdbe93b749fbae152ce57aa4
|
4
|
+
data.tar.gz: 2ba2fd9ea1878f93d55e74c6628739290f1052d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2af1e6778f8def7601e1f27921cd59a5c6842f3ab4b5d60eeeaa8670798a1c9a61bf853d57e7c5ce49a794c5959b2cb4e991b3f17bd36f0c7f91b8b3ee042772
|
7
|
+
data.tar.gz: 27fd8b21a675edff1663252236973ad20c4b94184e482986e768824bdbd63818f47443394cd44c87d45f780cd914c526e52278f95cb57671760a7ce7630fd176
|
data/README.md
CHANGED
@@ -20,19 +20,22 @@ Or install it yourself as:
|
|
20
20
|
## Usage
|
21
21
|
|
22
22
|
You can use your private key to encryp or uncryp one string, for example:
|
23
|
+
|
23
24
|
key = "thisismykey"
|
24
25
|
|
25
|
-
encryped_str = 'HelloWorld'.to_encryp
|
26
|
+
encryped_str = 'HelloWorld'.to_encryp(key)
|
26
27
|
|
27
|
-
uncryped_str = encryped_str.to_uncryp
|
28
|
+
uncryped_str = encryped_str.to_uncryp(key)
|
28
29
|
|
29
30
|
puts uncryped_str
|
30
31
|
|
31
32
|
Also you can use commas function to format an Integer or a Float
|
32
33
|
|
33
|
-
puts 123.commas
|
34
|
-
|
35
|
-
puts
|
34
|
+
puts 123.commas #123.00
|
35
|
+
|
36
|
+
puts 123.4.commas #123.40
|
37
|
+
|
38
|
+
puts 12345.67.commas #12,345.67
|
36
39
|
|
37
40
|
|
38
41
|
## Contributing
|
data/lib/wonder/version.rb
CHANGED