wonder 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -2
- data/lib/wonder/version.rb +1 -1
- data/wonder.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 331421dd05c1e29efd59c32c2dd23a8cdbc0d569
|
4
|
+
data.tar.gz: bd26e7c5472914f3da2dc2ac3003d25d524d4cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57145baaaf774344f09226f9df02e6348d3113513e165fb6cc240af4a3edd6c1ece5c534af50baa628fbec08c95bdaf293d2429093744037dfbfeb708a480990
|
7
|
+
data.tar.gz: 1311ff50aed0ece01857e9aa8ef484cfcb5aed81d811d0ae399558ea9e09ddd239f72ac34e2da1b3867dacd56d0e5b6237973b6ea1d246b4edcbfc12781d87f3
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Wonder
|
2
2
|
|
3
|
-
|
3
|
+
This gem add encryp and uncryp function to String, also add a format
|
4
|
+
function to Integer and Float
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -18,7 +19,21 @@ Or install it yourself as:
|
|
18
19
|
|
19
20
|
## Usage
|
20
21
|
|
21
|
-
|
22
|
+
You can use your private key to encryp or uncryp one string, for example:
|
23
|
+
key = "thisismykey"
|
24
|
+
|
25
|
+
encryped_str = 'HelloWorld'.to_encryp
|
26
|
+
|
27
|
+
uncryped_str = encryped_str.to_uncryp
|
28
|
+
|
29
|
+
puts uncryped_str
|
30
|
+
|
31
|
+
Also you can use commas function to format an Integer or a Float
|
32
|
+
|
33
|
+
puts 123.commas #123.00
|
34
|
+
puts 123.4.commas #123.40
|
35
|
+
puts 12345.67.commas #12,345.67
|
36
|
+
|
22
37
|
|
23
38
|
## Contributing
|
24
39
|
|
data/lib/wonder/version.rb
CHANGED
data/wonder.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["sdr@263.net"]
|
11
11
|
spec.summary = %q{add encryp and uncryp function to String and add format function to Integer and Float.}
|
12
12
|
spec.description = %q{String.to_encryp String.to_uncryp Integer.commas Float.commas}
|
13
|
-
spec.homepage = "
|
13
|
+
spec.homepage = "https://github.com/sdr/wonder"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wonder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sdr
|
@@ -54,7 +54,7 @@ files:
|
|
54
54
|
- lib/wonder/core_ext.rb
|
55
55
|
- lib/wonder/version.rb
|
56
56
|
- wonder.gemspec
|
57
|
-
homepage:
|
57
|
+
homepage: https://github.com/sdr/wonder
|
58
58
|
licenses:
|
59
59
|
- MIT
|
60
60
|
metadata: {}
|