RubyApp 0.5.32 → 0.5.33
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/ruby_app/elements/mobile/calendars/month.rb +2 -2
- data/lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb +1 -1
- data/lib/ruby_app/elements/mobile/default/features/dialogs_page.rb +1 -1
- data/lib/ruby_app/elements/mobile/dialogs/calendars/month_dialog.rb +2 -2
- data/lib/ruby_app/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -24,7 +24,7 @@ module RubyApp
|
|
24
24
|
|
25
25
|
@back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new
|
26
26
|
|
27
|
-
@month = RubyApp::Elements::Mobile::Calendars::Month.new
|
27
|
+
@month = RubyApp::Elements::Mobile::Calendars::Month.new(Date.today, Date.today << 1)
|
28
28
|
@month.changed do |element, event|
|
29
29
|
RubyApp::Elements::Mobile::Dialog.show(event, RubyApp::Elements::Mobile::Dialogs::AcknowledgementDialog.new('Month', "You selected day #{@month.value.day}."), :transition => 'pop')
|
30
30
|
end
|
@@ -47,7 +47,7 @@ module RubyApp
|
|
47
47
|
|
48
48
|
@month_link = RubyApp::Elements::Mobile::Button.new
|
49
49
|
@month_link.clicked do |element, event|
|
50
|
-
RubyApp::Elements::Mobile::Dialog.show(event, RubyApp::Elements::Mobile::Dialogs::Calendars::MonthDialog.new(event.today), :transition => 'pop') do |_event, response|
|
50
|
+
RubyApp::Elements::Mobile::Dialog.show(event, RubyApp::Elements::Mobile::Dialogs::Calendars::MonthDialog.new(event.today, event.today << 1), :transition => 'pop') do |_event, response|
|
51
51
|
RubyApp::Elements::Mobile::Dialog.show(_event, RubyApp::Elements::Mobile::Dialogs::AcknowledgementDialog.new('Acknowledgement', "You responded day #{response.day}."), :transition => 'pop')
|
52
52
|
end
|
53
53
|
end
|
@@ -17,10 +17,10 @@ module RubyApp
|
|
17
17
|
|
18
18
|
attr_accessor :value
|
19
19
|
|
20
|
-
def initialize(today = Date.today)
|
20
|
+
def initialize(today = Date.today, value = Date.today)
|
21
21
|
super()
|
22
22
|
|
23
|
-
@month = RubyApp::Elements::Mobile::Calendars::Month.new(today)
|
23
|
+
@month = RubyApp::Elements::Mobile::Calendars::Month.new(today, value)
|
24
24
|
@month.changed do |element, event|
|
25
25
|
@response = @month.value
|
26
26
|
self.hide(event, @today_link.options)
|
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: 73
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 33
|
10
|
+
version: 0.5.33
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|