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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2848b4f727b12fa95dcba0afe83643a216201c678ae94918c0f53923976a847
4
- data.tar.gz: c346e077c51659b64e2485428fd0aeb657601b5cda1bc8a4777934b9668374b4
3
+ metadata.gz: 619dd20951e2057e5362709441c9b1718cfa111994e2345981e0f8b2be43a7a2
4
+ data.tar.gz: 6be4ff2a3fa5bf46e4dab1ac73640dd5e70a3686dbddbf2385a1f426160c3b6a
5
5
  SHA512:
6
- metadata.gz: 680f450887b2c54379e1887304c628cbc011dd216d2dd25daba0fcb416269bce2a092c8600470867a6df857843e4fdd10c3105b683fd2a858858f0a594f5bcd6
7
- data.tar.gz: 46482327777a55e15c78c02365ea1895a6fa4d6b025df03a59b98f495c746dc214567a7196d9f455d2bd6919dc8d7d0ad39911da1c13d320384ce84c24631890
6
+ metadata.gz: eefb5c874d361b87314d9cf197e3f574c1d0afe9dde3b2b5c25235ca682a33211b2943e958ea0b5f122824721aa14b4a40575472a7ff577f16e79e36fc7e7a8c
7
+ data.tar.gz: 7b306142375e6221e52b969f9718f6e0e7415226b60f1d1d7c530066cb303ba0b25d2e445dabd6bc49a6c80fa77bc39d96fb4d1536d097cadf4f903f1c5dc759
@@ -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'
@@ -1,10 +1,10 @@
1
1
  require 'gtk3'
2
2
 
3
- unless Object.const_defined? :Cumo
3
+ if Object.const_defined? :Cumo
4
+ Xumo = Cumo
5
+ else
4
6
  require 'numo/narray'
5
7
  Xumo = Numo
6
- else
7
- Xumo = Cumo
8
8
  end
9
9
 
10
10
  module XumoShortHand
@@ -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
- # todo: check model
95
+ # TODO: check model
97
96
  @model = Marshal.load(str)
98
97
  display
99
98
  end
@@ -1,6 +1,6 @@
1
1
  module GrayScott
2
2
  class Model
3
- include XumoShortHand
3
+ include XumoShortHand
4
4
 
5
5
  Dx = 0.01
6
6
  Dt = 1
@@ -1,3 +1,3 @@
1
1
  module GrayScott
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
@@ -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.1
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
- rubygems_version: 3.0.1
126
+ rubyforge_project:
127
+ rubygems_version: 2.7.6
127
128
  signing_key:
128
129
  specification_version: 4
129
130
  summary: Gray-Scott model.