gray_scott_gtk3 0.5.1 → 0.5.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/exe/grayscott +2 -4
- data/lib/gray_scott.rb +3 -3
- data/lib/gray_scott/controller.rb +1 -2
- data/lib/gray_scott/model.rb +1 -1
- data/lib/gray_scott/version.rb +1 -1
- data/resources/gray_scott.glade +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 619dd20951e2057e5362709441c9b1718cfa111994e2345981e0f8b2be43a7a2
|
4
|
+
data.tar.gz: 6be4ff2a3fa5bf46e4dab1ac73640dd5e70a3686dbddbf2385a1f426160c3b6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eefb5c874d361b87314d9cf197e3f574c1d0afe9dde3b2b5c25235ca682a33211b2943e958ea0b5f122824721aa14b4a40575472a7ff577f16e79e36fc7e7a8c
|
7
|
+
data.tar.gz: 7b306142375e6221e52b969f9718f6e0e7415226b60f1d1d7c530066cb303ba0b25d2e445dabd6bc49a6c80fa77bc39d96fb4d1536d097cadf4f903f1c5dc759
|
data/exe/grayscott
CHANGED
@@ -6,13 +6,11 @@ opt = {}
|
|
6
6
|
OptionParser.new do |op|
|
7
7
|
op.on('-h val', '--height', 'height of the model') { |v| opt[:height] = v.to_i }
|
8
8
|
op.on('-w val', '--width', 'width of the model') { |v| opt[:width] = v.to_i }
|
9
|
-
op.on('-g', '--gpu', 'use GPU(Cumo)'){ |v| opt[:gpu] = v }
|
9
|
+
op.on('-g', '--gpu', 'use GPU(Cumo)') { |v| opt[:gpu] = v }
|
10
10
|
op.parse!(ARGV)
|
11
11
|
end
|
12
12
|
|
13
|
-
if opt[:gpu]
|
14
|
-
require 'cumo/narray'
|
15
|
-
end
|
13
|
+
require 'cumo/narray' if opt[:gpu]
|
16
14
|
opt.delete(:gpu)
|
17
15
|
|
18
16
|
require 'gray_scott'
|
data/lib/gray_scott.rb
CHANGED
@@ -48,7 +48,6 @@ module GrayScott
|
|
48
48
|
@msec = msec.value.to_i
|
49
49
|
end
|
50
50
|
|
51
|
-
|
52
51
|
def display
|
53
52
|
@gimage.pixbuf = to_pixbuf(@show_u ? model.u : model.v)
|
54
53
|
end
|
@@ -93,7 +92,7 @@ module GrayScott
|
|
93
92
|
if dialog.run == :accept
|
94
93
|
filename = dialog.filename
|
95
94
|
str = File.read(filename)
|
96
|
-
#
|
95
|
+
# TODO: check model
|
97
96
|
@model = Marshal.load(str)
|
98
97
|
display
|
99
98
|
end
|
data/lib/gray_scott/model.rb
CHANGED
data/lib/gray_scott/version.rb
CHANGED
data/resources/gray_scott.glade
CHANGED
@@ -254,6 +254,7 @@
|
|
254
254
|
<property name="label" translatable="yes">save</property>
|
255
255
|
<property name="use_underline">True</property>
|
256
256
|
<property name="stock_id">gtk-save</property>
|
257
|
+
<signal name="clicked" handler="on_save_clicked" swapped="no"/>
|
257
258
|
</object>
|
258
259
|
<packing>
|
259
260
|
<property name="expand">False</property>
|
@@ -276,7 +277,7 @@
|
|
276
277
|
</packing>
|
277
278
|
</child>
|
278
279
|
<child>
|
279
|
-
<object class="GtkToggleToolButton">
|
280
|
+
<object class="GtkToggleToolButton" id="execute_button">
|
280
281
|
<property name="visible">True</property>
|
281
282
|
<property name="can_focus">False</property>
|
282
283
|
<property name="tooltip_text" translatable="yes">execute</property>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gray_scott_gtk3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
@@ -123,7 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.7.6
|
127
128
|
signing_key:
|
128
129
|
specification_version: 4
|
129
130
|
summary: Gray-Scott model.
|