circule 0.1.3 → 0.1.4
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/.rubocop.yml +11 -2
- data/Gemfile +2 -0
- data/Gemfile.lock +1 -1
- data/lib/circule/gui.rb +23 -21
- data/lib/circule/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d43165d03d518eb31001ab176b1200778d528a8586fb984b63946bd728c79051
|
4
|
+
data.tar.gz: 5a9fc83e8949085d4fcf756bef38d298d8272bfb59eeb602295a68b04fa41e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34c059aea8a7919bd2c2316b518f5eeb47c4884cc06082f4defed64e736b1263aa4bf8c5dcde9d3956b1f2e2e433d258d7b3b75c59c330c22959e2cc2bbfc0da
|
7
|
+
data.tar.gz: d48266b32c4b2e876de388a1c5485e4f671159f958e2e1b6023c9b3468714e58b0b6c59d06fb813114fcb05c5d9d9480f103b836a2f53b2770c79e2b23e96ef5
|
data/.rubocop.yml
CHANGED
@@ -11,8 +11,11 @@ Layout/FirstHashElementIndentation:
|
|
11
11
|
Layout/HashAlignment:
|
12
12
|
Enabled: false
|
13
13
|
|
14
|
+
Layout/LeadingCommentSpace:
|
15
|
+
Enabled: false
|
16
|
+
|
14
17
|
Layout/LineLength:
|
15
|
-
Max:
|
18
|
+
Max: 160
|
16
19
|
|
17
20
|
Layout/MultilineMethodCallBraceLayout:
|
18
21
|
Enabled: false
|
@@ -26,6 +29,9 @@ Layout/SpaceAroundOperators:
|
|
26
29
|
Layout/SpaceBeforeFirstArg:
|
27
30
|
Enabled: false
|
28
31
|
|
32
|
+
Layout/SpaceBeforeSemicolon:
|
33
|
+
Enabled: false
|
34
|
+
|
29
35
|
Layout/SpaceInsideArrayLiteralBrackets:
|
30
36
|
Enabled: false
|
31
37
|
|
@@ -38,6 +44,9 @@ Lint/AmbiguousOperatorPrecedence:
|
|
38
44
|
Lint/EmptyWhen:
|
39
45
|
Enabled: false
|
40
46
|
|
47
|
+
Lint/Void:
|
48
|
+
Enabled: false
|
49
|
+
|
41
50
|
Metrics/AbcSize:
|
42
51
|
Enabled: false
|
43
52
|
|
@@ -59,7 +68,7 @@ Naming/MemoizedInstanceVariableName:
|
|
59
68
|
|
60
69
|
Style/BlockDelimiters:
|
61
70
|
EnforcedStyle: semantic
|
62
|
-
BracesRequiredMethods: [button, entry, frame, label, spinbox]
|
71
|
+
BracesRequiredMethods: [button, command, entry, frame, label, spinbox]
|
63
72
|
|
64
73
|
Style/ClassAndModuleChildren:
|
65
74
|
EnforcedStyle: compact
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/lib/circule/gui.rb
CHANGED
@@ -70,31 +70,33 @@ class Circule::GUI
|
|
70
70
|
@root ||= root {
|
71
71
|
title 'Circule GUI'
|
72
72
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
label { text '
|
79
|
-
spinbox { from
|
80
|
-
label { text '
|
81
|
-
spinbox { from
|
82
|
-
label { text '
|
83
|
-
spinbox { from
|
84
|
-
label { text '
|
85
|
-
spinbox { from
|
86
|
-
label { text '
|
87
|
-
spinbox { from -96; to 96; text <=> [self, :
|
88
|
-
label { text '
|
89
|
-
spinbox { from
|
73
|
+
scrollbar_frame {
|
74
|
+
xscrollbar false
|
75
|
+
|
76
|
+
entry { text <=> [self, :hex] ; grid row: 1, column: 1, column_span: 2, column_weight: 1 }
|
77
|
+
|
78
|
+
label { text 'bit0:' ; grid row: 2, column: 1, column_span: 1, column_weight: 0 }
|
79
|
+
spinbox { from 0; to 255; text <=> [self, :bit0] ; grid row: 2, column: 2, column_span: 1, column_weight: 1 }
|
80
|
+
label { text 'step:' ; grid row: 3, column: 1, column_span: 1, column_weight: 0 }
|
81
|
+
spinbox { from 4; to 64; text <=> [self, :step] ; grid row: 3, column: 2, column_span: 1, column_weight: 1 }
|
82
|
+
label { text 'bitn:' ; grid row: 4, column: 1, column_span: 1, column_weight: 0 }
|
83
|
+
spinbox { from 0; to 255; text <=> [self, :bitn] ; grid row: 4, column: 2, column_span: 1, column_weight: 1 }
|
84
|
+
label { text 'canvas:' ; grid row: 5, column: 1, column_span: 1, column_weight: 0 }
|
85
|
+
spinbox { from 24; to 96; text <=> [self, :canvas] ; grid row: 5, column: 2, column_span: 1, column_weight: 1 }
|
86
|
+
label { text 'ox:' ; grid row: 6, column: 1, column_span: 1, column_weight: 0 }
|
87
|
+
spinbox { from -96; to 96; text <=> [self, :ox] ; grid row: 6, column: 2, column_span: 1, column_weight: 1 }
|
88
|
+
label { text 'oy:' ; grid row: 7, column: 1, column_span: 1, column_weight: 0 }
|
89
|
+
spinbox { from -96; to 96; text <=> [self, :oy] ; grid row: 7, column: 2, column_span: 1, column_weight: 1 }
|
90
|
+
label { text 'scale:' ; grid row: 8, column: 1, column_span: 1, column_weight: 0 }
|
91
|
+
spinbox { from 1; to 24; text <=> [self, :scale] ; grid row: 8, column: 2, column_span: 1, column_weight: 1 }
|
90
92
|
|
91
93
|
frame {
|
92
|
-
@image_label = label { anchor 'center' }
|
94
|
+
@image_label = label { anchor 'center' } ; grid row: 9, column: 1, column_span: 2, column_weight: 1
|
93
95
|
}
|
94
96
|
|
95
|
-
button { text 'Open'; command { open } }
|
96
|
-
button { text 'Save'; command { save } }
|
97
|
-
button { text 'Exit'; command { exit(0) } }
|
97
|
+
button { text 'Open'; command { open } ; grid row: 10, column: 1, column_span: 2, column_weight: 1 }
|
98
|
+
button { text 'Save'; command { save } ; grid row: 11, column: 1, column_span: 2, column_weight: 1 }
|
99
|
+
button { text 'Exit'; command { exit(0) } ; grid row: 12, column: 1, column_span: 2, column_weight: 1 }
|
98
100
|
}
|
99
101
|
}
|
100
102
|
end
|
data/lib/circule/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: circule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank J. Cameron
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chunky_png
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- fjc@fastmail.net
|
30
30
|
executables:
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
- MIT
|
53
53
|
metadata:
|
54
54
|
homepage_uri: https://gitlab.com/fjc/circule
|
55
|
-
post_install_message:
|
55
|
+
post_install_message:
|
56
56
|
rdoc_options: []
|
57
57
|
require_paths:
|
58
58
|
- lib
|
@@ -67,8 +67,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
71
|
-
signing_key:
|
70
|
+
rubygems_version: 3.2.5
|
71
|
+
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Generate an icon of overlapping circles derived from a hash.
|
74
74
|
test_files: []
|