circule 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68e4e4894325d1bf81df66128c33d88c322dd4e08d0faf0b6c18bdc2eed8ae2b
4
- data.tar.gz: 650614530ad282450742196f3ca0d5a508ed7d596c45c0ec5c0f989ae507ec04
3
+ metadata.gz: 87915c12b5e6c349eb173949f59eda6e6fbd706ec7d4a9d44ea1fa1ba550714c
4
+ data.tar.gz: 92fbd34f5f934f96decb84a3b7e54568cfaef6e41f9f9988701ece62907c9fd9
5
5
  SHA512:
6
- metadata.gz: 2ddb1e5028f38a1fef77c042c1dadda261b031959b5ef9949c6f37399dc321cf77b988df5b2fba4dc4b883e5e9aa02538d294915747ff9bcb5bf8122be0df31f
7
- data.tar.gz: 47ce9b8709463319b71d2d6797ba2032cecd71bdfd149ed511f5097263e8d36e3799ef92be9a3011a48161bf6e3e659c71e28bfb6be70231196f5cef71aaa3e8
6
+ metadata.gz: 423863eceeeb72a2024b63be95c5e10975dd197fe887a98b3d79589b39c617c9ed891fa27bc37ffb41459dd75ad0e669d8ea40baf366b7cb954cabaa10f1adf0
7
+ data.tar.gz: d5b08d2b430c2b81533151139889245029bf233c4ea08015601e3587f016cc736ecd52804494e989c4da17ecc82e04274fb18d0c54cd97ab1660b9584e5e67e0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- circule (0.1.1)
4
+ circule (0.1.2)
5
5
  chunky_png
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,11 +1,16 @@
1
1
  # Circule
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you
4
- need to be able to package up your Ruby library into a gem. Put your
5
- Ruby code in the file `lib/circule`. To experiment with that code, run
6
- `bin/console` for an interactive prompt.
3
+ Generate an icon of overlapping circles derived from a hash.
7
4
 
8
- TODO: Delete this and the text above, and describe your gem
5
+ 1. Slice the hash into 16-bit slices starting at bit `bn`, stepping `s`
6
+ bits at a time, ending after bit `bn`.
7
+
8
+ 2. From each slice define a circle such that bits 0 through 4 is the `x`
9
+ coordinate of the center, bits 5 through 9 is the `y` coordinate of
10
+ the center, and bits 10 through 15 is the radius of the circle.
11
+
12
+ 3. Each pixel in the output will be colored based on the number of
13
+ circles that point is inside.
9
14
 
10
15
  ## Installation
11
16
 
@@ -25,7 +30,23 @@ Or install it yourself as:
25
30
 
26
31
  ## Usage
27
32
 
28
- TODO: Write usage instructions here
33
+ ### CLI Options
34
+
35
+ | Short Option | Long Option | Description |
36
+ |--------------|---------------|----------------------------------|
37
+ | -h HEXSTRING | --hex | Use this hash |
38
+ | -b INTEGER | --btc-block | Use hash from this bitcoin block |
39
+ | -0 INTEGER | --bit0 | Starting bit |
40
+ | -s INTEGER | --step | Step bit |
41
+ | -n INTEGER | --bitn | Starting bit |
42
+ | -c INTEGER | --canvas | Canvas size |
43
+ | -x INTEGER | --ox | Offset x |
44
+ | -y INTEGER | --oy | Offset y |
45
+ | -z INTEGER | --zoom | Zoom in GUI |
46
+ | -f FILENAME | --file | Use hash from file |
47
+ | -s FILENAME | --save | Save image to file |
48
+ | -g | --gui | Run GUI (requires glimmer & tk) |
49
+ | -i | --interactive | Run GUI with pry |
29
50
 
30
51
  ## Development
31
52
 
@@ -41,7 +62,7 @@ push the `.gem` file to [rubygems.org](https://rubygems.org).
41
62
 
42
63
  ## Contributing
43
64
 
44
- Bug reports and pull requests are welcome on GitHub at
65
+ Bug reports and pull requests are welcome on GitLab at
45
66
  https://gitlab.com/fjc/circule.
46
67
 
47
68
  ## License
data/circule.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ['Frank J. Cameron']
9
9
  spec.email = ['fjc@fastmail.net']
10
10
 
11
- spec.summary = ''
11
+ spec.summary = 'Generate an icon of overlapping circles derived from a hash.'
12
12
  spec.homepage = 'https://gitlab.com/fjc/circule'
13
13
  spec.license = 'MIT'
14
14
  spec.required_ruby_version = '>= 2.7.0'
data/exe/circule CHANGED
@@ -6,7 +6,7 @@ require 'optparse'
6
6
 
7
7
  options = {}
8
8
  OptionParser.new do |opts|
9
- opts.banner = ''
9
+ opts.banner = 'Generate an icon of overlapping circles derived from a hash.'
10
10
 
11
11
  opts.on('-h HEXSTRING', '--hex', 'Use this hash') do |h|
12
12
  options[:hex] = h
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Circule
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circule
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank J. Cameron
@@ -69,5 +69,5 @@ requirements: []
69
69
  rubygems_version: 3.1.6
70
70
  signing_key:
71
71
  specification_version: 4
72
- summary: ''
72
+ summary: Generate an icon of overlapping circles derived from a hash.
73
73
  test_files: []