RubyApp 0.0.52 → 0.0.53
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -6,6 +6,8 @@ Feature: Input elements
|
|
6
6
|
Then I should see "Input"
|
7
7
|
And I fill in the "Input" field with "value" and I press enter
|
8
8
|
Then I should see "You input 'value'."
|
9
|
+
When I fill in the "Input" field with "" and I press enter
|
10
|
+
Then I should see "You input '(nil)'."
|
9
11
|
Then I click "Close"
|
10
12
|
Then I quit
|
11
13
|
|
@@ -16,7 +16,8 @@ module RubyApp
|
|
16
16
|
|
17
17
|
def initialize(data)
|
18
18
|
super(data)
|
19
|
-
@value = data['value']
|
19
|
+
@value = data['value'].strip
|
20
|
+
@value = @value.empty? ? nil : @value
|
20
21
|
end
|
21
22
|
|
22
23
|
def to_hash
|
@@ -33,6 +34,7 @@ module RubyApp
|
|
33
34
|
|
34
35
|
def initialize
|
35
36
|
super
|
37
|
+
@value = nil
|
36
38
|
end
|
37
39
|
|
38
40
|
protected
|
@@ -24,13 +24,13 @@ module RubyApp
|
|
24
24
|
@input = RubyApp::Elements::Input.new
|
25
25
|
@input.changed do |element, event|
|
26
26
|
RubyApp::Session.show_dialog(event, RubyApp::Elements::Dialogs::MessageDialog.new(self.translate.message_dialog.message.title,
|
27
|
-
|
27
|
+
self.translate.message_dialog.message.message(@input.value || '(nil)')))
|
28
28
|
end
|
29
29
|
|
30
30
|
@duration_input = RubyApp::Elements::Inputs::DurationInput.new
|
31
31
|
@duration_input.changed do |element, event|
|
32
32
|
RubyApp::Session.show_dialog(event, RubyApp::Elements::Dialogs::MessageDialog.new(self.translate.message_dialog.message.title,
|
33
|
-
|
33
|
+
self.translate.message_dialog.message.message(@duration_input.duration)))
|
34
34
|
end
|
35
35
|
|
36
36
|
end
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 117
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 53
|
10
|
+
version: 0.0.53
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
prerelease: false
|