RubyApp 0.0.6 → 0.0.7

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.
@@ -28,13 +28,10 @@ module RubyApp
28
28
  protected
29
29
 
30
30
  def on_changed(event)
31
- duration = ChronicDuration.parse(event.value)
32
- if duration
33
- @duration = duration
34
- @value = ChronicDuration.output(@duration)
35
- event.update_value("##{self.element_id}", @value)
36
- changed(event)
37
- end
31
+ @duration = event.value ? ChronicDuration.parse(event.value) : nil
32
+ @value = @duration ? ChronicDuration.output(@duration) : nil
33
+ event.update_value("##{self.element_id}", @value)
34
+ changed(event)
38
35
  end
39
36
 
40
37
  end
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
9
+ - 7
10
10
  segments_generated: true
11
- version: 0.0.6
11
+ version: 0.0.7
12
12
  platform: ruby
13
13
  authors:
14
14
  - Frank G. Ficnar