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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 359b926c35f918f3a2cc77c41f95384eb225248e4ca53de0f5c4887e7d25694f
4
- data.tar.gz: a0df3f7a795805fde28ccfd280a4ad0053ad331066e46df8200900c5420f170f
3
+ metadata.gz: d43165d03d518eb31001ab176b1200778d528a8586fb984b63946bd728c79051
4
+ data.tar.gz: 5a9fc83e8949085d4fcf756bef38d298d8272bfb59eeb602295a68b04fa41e61
5
5
  SHA512:
6
- metadata.gz: 814054a961e75133cd959ec9a70b0745f18a40f2bf14d1f8137d7cf48b8956254a02f908084c2343d49dc7d1bb5c2481ef3ea3f01faac62cd574b330e007999c
7
- data.tar.gz: 8f12097c0901eb28c3776ee14f2a28ef438ef10bb51c3e6a6aa07c3ebb02cc08a242ba17a0fe2edd17d2ea4230edb4e8f606f8881e6a03cab00729d73b1a4237
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: 120
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
@@ -12,3 +12,5 @@ gem 'minitest', '~> 5.0'
12
12
  gem 'rubocop', '~> 1.7'
13
13
  gem 'rubocop-minitest'
14
14
  gem 'rubocop-rake'
15
+
16
+ #em 'glimmer-dsl-tk'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- circule (0.1.3)
4
+ circule (0.1.4)
5
5
  chunky_png
6
6
 
7
7
  GEM
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
- frame {
74
- entry { text <=> [self, :hex] }
75
-
76
- label { text 'bit0:' }
77
- spinbox { from 0; to 255; text <=> [self, :bit0] }
78
- label { text 'step:' }
79
- spinbox { from 4; to 64; text <=> [self, :step] }
80
- label { text 'bitn:' }
81
- spinbox { from 0; to 255; text <=> [self, :bitn] }
82
- label { text 'canvas:' }
83
- spinbox { from 24; to 96; text <=> [self, :canvas] }
84
- label { text 'ox:' }
85
- spinbox { from -96; to 96; text <=> [self, :ox] }
86
- label { text 'oy:' }
87
- spinbox { from -96; to 96; text <=> [self, :oy] }
88
- label { text 'scale:' }
89
- spinbox { from 1; to 24; text <=> [self, :scale] }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Circule
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
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.3
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-04 00:00:00.000000000 Z
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.1.6
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: []