cryptoruby 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/lib/cryptoruby/blockchain.rb +1 -1
- data/lib/cryptoruby/version.rb +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: c061e9771668bf15ce313c8bae9357fbaf82eec1
|
4
|
+
data.tar.gz: 3dcb70c9af2121ae57ae4c6d78bb58e45a801fb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d862fac4481aa006eedf39e3362a9fd39abafd7bdda61edca15c686958bdd6dc595043bd0b7e307a36524bc65151817de09e01f7d0ba07a1317668c5bf230fed
|
7
|
+
data.tar.gz: 641c90555d2b71efa33c04b6529b6afcf525046cd9b37957981159232ffacbfc2f70fff60059bf68d8d0313e4650ea6109503ba6acc538f89e1e87195dbae408
|
data/.DS_Store
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# Cryptoruby
|
7
7
|
|
8
|
-
How about to have your own blockchain? This gems allow
|
8
|
+
How about to have your own blockchain? This gems allow your application to have it...
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
@@ -41,13 +41,13 @@ blockchain << data
|
|
41
41
|
|
42
42
|
You see... data can be anything. You can store strings, jsons, arrays, even base64 files.
|
43
43
|
|
44
|
-
Then, after adding blocks, you'll need to check if your
|
44
|
+
Then, after adding blocks, you'll need to check if your chain is still valid right?
|
45
45
|
````ruby
|
46
46
|
blockchain.is_valid? # returns true or false
|
47
47
|
````
|
48
|
-
Try
|
48
|
+
Try changing something in the blocks and validating again... this works man... for real!
|
49
49
|
|
50
|
-
Ah... almost forgot... you can set
|
50
|
+
Ah... almost forgot... you can set yours blockchain's difficult too...
|
51
51
|
To do so, all you need to do is to change (or instantiate from the beginning) the difficult parameter
|
52
52
|
````ruby
|
53
53
|
blockchain = Cryptoruby::Blockchain.new(3)
|
data/lib/cryptoruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptoruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Hamdan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|