RubyApp 0.5.87 → 0.5.88

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.87)
4
+ RubyApp (0.5.88)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -12,8 +12,8 @@ default:
12
12
  authentication:
13
13
  facebook:
14
14
  authentication_document:
15
- access_key: '123'
16
- secret_key: 'abc'
15
+ access_key: 'ABC'
16
+ secret_key: '123'
17
17
  open_id:
18
18
  ax_authentication_document:
19
19
  attributes:
@@ -0,0 +1,3 @@
1
+ = RubyApp::Elements::Mobile::Hash.render(:css)
2
+ = RubyApp::Elements::Mobile::Navigation::BackButton.render(:css)
3
+ = yield
@@ -0,0 +1,10 @@
1
+ - require 'pp'
2
+ - self.content_for(:html, :page) do
3
+ /
4
+ #{__FILE__}
5
+ %div{'data-role' => 'header'}
6
+ = @back_button.render(:html)
7
+ %h1
8
+ Cookies
9
+ %div{'data-role' => 'content'}
10
+ = @cookies_hash.render(:html)
@@ -0,0 +1,3 @@
1
+ = RubyApp::Elements::Mobile::Hash.render(:js)
2
+ = RubyApp::Elements::Mobile::Navigation::BackButton.render(:js)
3
+ = yield
@@ -0,0 +1,37 @@
1
+ module RubyApp
2
+
3
+ module Elements
4
+
5
+ module Mobile
6
+
7
+ module Pages
8
+
9
+ module Information
10
+ require 'ruby_app/elements/mobile/hash'
11
+ require 'ruby_app/elements/mobile/navigation/back_button'
12
+ require 'ruby_app/elements/mobile/page'
13
+
14
+ class CookiesPage < RubyApp::Elements::Mobile::Page
15
+
16
+ template_path(:all, File.dirname(__FILE__))
17
+
18
+ def initialize
19
+ super
20
+
21
+ @back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new
22
+
23
+ @cookies_hash = RubyApp::Elements::Mobile::Hash.new(RubyApp::Request.cookies)
24
+
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+
31
+ end
32
+
33
+ end
34
+
35
+ end
36
+
37
+ end
@@ -45,6 +45,9 @@
45
45
  %li
46
46
  = @environment_link.render(:html) do |element|
47
47
  - element.content_for(:html, :link, 'Environment')
48
+ %li
49
+ = @cookies_link.render(:html) do |element|
50
+ - element.content_for(:html, :link, 'Cookies')
48
51
  %li
49
52
  = @configuration_link.render(:html) do |element|
50
53
  - element.content_for(:html, :link) do
@@ -9,6 +9,7 @@ module RubyApp
9
9
  require 'ruby_app/elements/mobile/navigation/navigation_link'
10
10
  require 'ruby_app/elements/mobile/page'
11
11
  require 'ruby_app/elements/mobile/pages/information/configuration_page'
12
+ require 'ruby_app/elements/mobile/pages/information/cookies_page'
12
13
  require 'ruby_app/elements/mobile/pages/information/environment_page'
13
14
  require 'ruby_app/elements/mobile/pages/information/sessions_page'
14
15
  require 'ruby_app/elements/mobile/pages/information/scripts_page'
@@ -29,6 +30,11 @@ module RubyApp
29
30
  RubyApp::Elements::Mobile::Pages::Information::EnvironmentPage.new.show(event, element.options)
30
31
  end
31
32
 
33
+ @cookies_link = RubyApp::Elements::Mobile::Navigation::NavigationLink.new
34
+ @cookies_link.clicked do |element, event|
35
+ RubyApp::Elements::Mobile::Pages::Information::CookiesPage.new.show(event, element.options)
36
+ end
37
+
32
38
  @configuration_link = RubyApp::Elements::Mobile::Navigation::NavigationLink.new
33
39
  @configuration_link.clicked do |element, event|
34
40
  RubyApp::Elements::Mobile::Pages::Information::ConfigurationPage.new.show(event, element.options)
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.5.87"
2
+ VERSION = "0.5.88"
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: 165
4
+ hash: 187
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 87
10
- version: 0.5.87
9
+ - 88
10
+ version: 0.5.88
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -461,6 +461,10 @@ files:
461
461
  - lib/ruby_app/elements/mobile/pages/information/configuration_page.html.haml
462
462
  - lib/ruby_app/elements/mobile/pages/information/configuration_page.js.haml
463
463
  - lib/ruby_app/elements/mobile/pages/information/configuration_page.rb
464
+ - lib/ruby_app/elements/mobile/pages/information/cookies_page.css.haml
465
+ - lib/ruby_app/elements/mobile/pages/information/cookies_page.html.haml
466
+ - lib/ruby_app/elements/mobile/pages/information/cookies_page.js.haml
467
+ - lib/ruby_app/elements/mobile/pages/information/cookies_page.rb
464
468
  - lib/ruby_app/elements/mobile/pages/information/document_page.css.haml
465
469
  - lib/ruby_app/elements/mobile/pages/information/document_page.html.haml
466
470
  - lib/ruby_app/elements/mobile/pages/information/document_page.js.haml