copycats 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fc77be01f1cb22a3dc5a00f14ea2ca82607602b
4
- data.tar.gz: 74770f25d33f910afb03b7f6c1a2ceebb9d575ef
3
+ metadata.gz: 193a7fca413f909c49b164c401c759c59558b588
4
+ data.tar.gz: d17d5bfcdc7b4a33326bae50f242e63d6a9cd3f5
5
5
  SHA512:
6
- metadata.gz: b0b2b1aff76fbb87e38ffb8cd029b8d602b123fcd30906028e9129e299f9ff590f6f75e90f65e1682e9e1c336c740881fed9deba2d599646c5195d8d6bfbc6b6
7
- data.tar.gz: 522d81bb5f67f503cbb4c83221d30a6548efb6e357037326c6ac565e0cdfc3cd0c7ad4562ac7f66729df796281f44601c60a5a2ed6666fe9e07c58b374c21b66
6
+ metadata.gz: 38214f3ca5802623507c017de1301aeba073fa7a2f2a69305ca999a5202531f4fa2936069e5fabe1f8602ae60092d710f7606644b50862590d336f9b50c1e1a1
7
+ data.tar.gz: c24978227a5dfe9b53010b66cc9cbf25b0798df20398865ee69982a61b886bb62f7db4c0eb34e3fc70c12c9e47aa12fa6b23e9d5d94cccede5ead4b841f183ee
data/README.md CHANGED
@@ -16,15 +16,15 @@ copycats command line tool (and core library) - crypto cats / kitties collectibl
16
16
 
17
17
  Use the `kitty` command line tool to (auto-)read kitty data records
18
18
  (in comma-separated values (CSV)) into an in-memory SQLite database
19
- and print reports. Example - [`kitties_1-100.csv`](data/kitties_1-100.csv):
19
+ and print reports. Example - [`kitties/1-99_999/000.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/000.csv):
20
20
 
21
21
  ```
22
- id,gen,genes_kai
23
- 1,0,ccac7787fa7fafaa16467755f9ee444467667366cccceede
24
- 2,0,ca9c7575f442af9g666455577777444466868667ccccffec
25
- 3,0,ac9a6686ff7f99aa66665575779f444467867748ccccdcfc
26
- 4,0,ccac568622fff99g16167555ffed444486684687ccccdcff
27
- 5,0,ca9c8777747fg99g44117775f77d444477886377ccccffef
22
+ id,gen,matron_id,sire_id,birthdate,genes,name
23
+ 1,0,,,2017-11-23 06:19:59,ccac 7787 fa7f afaa 1646 7755 f9ee 4444 6766 7366 cccc eede,
24
+ 2,0,,,2017-11-23 06:19:59,ca9c 7575 f442 af9g 6664 5557 7777 4444 6686 8667 cccc ffec,
25
+ 3,0,,,2017-11-23 06:19:59,ac9a 6686 ff7f 99aa 6666 5575 779f 4444 6786 7748 cccc dcfc,
26
+ 4,0,,,2017-11-23 06:19:59,ccac 5686 22ff f99g 1616 7555 ffed 4444 8668 4687 cccc dcff,
27
+ 5,0,,,2017-11-23 06:19:59,ca9c 8777 747f g99g 4411 7775 f77d 4444 7788 6377 cccc ffef,
28
28
  ...
29
29
  ```
30
30
 
@@ -33,6 +33,7 @@ get (auto-)read. Use the `-i/--include` option to change the data directory.
33
33
 
34
34
 
35
35
 
36
+
36
37
  ### Kitty Genes Reader / Report
37
38
 
38
39
  Pass in the id (e.g. `1`, `43`, etc.) of the kitty to print a genes report.
@@ -247,6 +248,22 @@ Mouth (Genes 32-35)
247
248
 
248
249
 
249
250
 
251
+ ## Datasets
252
+
253
+ [(Crypto) Kitties on the Blockchain](https://github.com/openblockchains/kitties) -
254
+ public dataset in comma-separated values (CSV) format in blocks of a thousand kitties each (e.g.
255
+ [`000.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/000.csv) incl. 1-999,
256
+ [`001.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/001.csv) incl. 1000-1999,
257
+ [`002.csv`](https://github.com/openblockchains/kitties/blob/master/1-99_999/002.csv) incl. 2000-2999,
258
+ and so on). The data records for kitties incl. id, gen(eration), matron+sire ids, birthdate, 48 (12x4) genes in kai (base32) notation, and more.
259
+
260
+ [(Crypto) Kittydex Kitty Data](https://cryptokittydex.com/resources) - public dataset in comma-separated values (CSV) format in a single file (+250 MiB).
261
+ The data records for kitties incl. id, gen(eration), matron+sire ids, birthdate, 48 (12x4) genes in kai (base32) notation, and more.
262
+
263
+
264
+ Add your dataset here!
265
+
266
+
250
267
 
251
268
  ## Installation - I Can Has Copycats?
252
269
 
data/lib/copycats/data.rb CHANGED
@@ -87,7 +87,7 @@ def setup( data_dir: './data' )
87
87
  k = Copycats::Model::Kitty.new
88
88
  k.id = row['id'].to_i
89
89
  k.gen = row['gen'].to_i
90
- k.genes = row['genes_kai']
90
+ k.genes = (row['genes'] || row['genes_kai'] || '').gsub( ' ', '' ) ## remove all spaces - why? why not?
91
91
  ## pp k
92
92
 
93
93
  ## print ids for progress report - why? why not?
@@ -5,7 +5,7 @@ module Copycats
5
5
 
6
6
  MAJOR = 0
7
7
  MINOR = 5
8
- PATCH = 0
8
+ PATCH = 1
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copycats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-07 00:00:00.000000000 Z
11
+ date: 2018-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord