RubyApp 0.5.32 → 0.5.33

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.5.32)
4
+ RubyApp (0.5.33)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -37,10 +37,10 @@ module RubyApp
37
37
 
38
38
  event :changed
39
39
 
40
- def initialize(today = Date.today)
40
+ def initialize(today = Date.today, value = Date.today)
41
41
  super()
42
42
  @today = today
43
- @value = @today
43
+ @value = value
44
44
  @display = @value
45
45
  end
46
46
 
@@ -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)
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.5.32"
2
+ VERSION = "0.5.33"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
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: 75
4
+ hash: 73
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 32
10
- version: 0.5.32
9
+ - 33
10
+ version: 0.5.33
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar