RubyApp 0.5.72 → 0.5.73

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.72)
4
+ RubyApp (0.5.73)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -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
+ Environment
9
+ %div{'data-role' => 'content'}
10
+ = @environment_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 EnvironmentPage < 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
+ @environment_hash = RubyApp::Elements::Mobile::Hash.new(RubyApp::Request.environment)
24
+
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+
31
+ end
32
+
33
+ end
34
+
35
+ end
36
+
37
+ end
@@ -1,6 +1,7 @@
1
1
  = RubyApp::Elements::Mobile::Navigation::BackButton.render(:css)
2
2
  = RubyApp::Elements::Mobile::Navigation::NavigationLink.render(:css)
3
3
  = RubyApp::Elements::Mobile::Pages::Information::ConfigurationPage.render(:css)
4
+ = RubyApp::Elements::Mobile::Pages::Information::EnvironmentPage.render(:css)
4
5
  = RubyApp::Elements::Mobile::Pages::Information::InformationList.render(:css)
5
6
  = RubyApp::Elements::Mobile::Pages::Information::SessionsPage.render(:css)
6
7
  = RubyApp::Elements::Mobile::Pages::Information::ScriptsPage.render(:css)
@@ -42,6 +42,9 @@
42
42
  %span.ui-li-aside
43
43
  %code
44
44
  = RubyApp::Language.locale.strftime(@now, RubyApp::Application.configuration.format.date.long)
45
+ %li
46
+ = @environment_link.render(:html) do |element|
47
+ - element.content_for(:html, :link, 'Environment')
45
48
  %li
46
49
  = @configuration_link.render(:html) do |element|
47
50
  - element.content_for(:html, :link) do
@@ -1,6 +1,7 @@
1
1
  = RubyApp::Elements::Mobile::Navigation::BackButton.render(:js)
2
2
  = RubyApp::Elements::Mobile::Navigation::NavigationLink.render(:js)
3
3
  = RubyApp::Elements::Mobile::Pages::Information::ConfigurationPage.render(:js)
4
+ = RubyApp::Elements::Mobile::Pages::Information::EnvironmentPage.render(:js)
4
5
  = RubyApp::Elements::Mobile::Pages::Information::InformationList.render(:js)
5
6
  = RubyApp::Elements::Mobile::Pages::Information::SessionsPage.render(:js)
6
7
  = RubyApp::Elements::Mobile::Pages::Information::ScriptsPage.render(:js)
@@ -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/environment_page'
12
13
  require 'ruby_app/elements/mobile/pages/information/sessions_page'
13
14
  require 'ruby_app/elements/mobile/pages/information/scripts_page'
14
15
 
@@ -23,6 +24,11 @@ module RubyApp
23
24
 
24
25
  @back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new
25
26
 
27
+ @environment_link = RubyApp::Elements::Mobile::Navigation::NavigationLink.new
28
+ @environment_link.clicked do |element, event|
29
+ RubyApp::Elements::Mobile::Pages::Information::EnvironmentPage.new.show(event, element.options)
30
+ end
31
+
26
32
  @configuration_link = RubyApp::Elements::Mobile::Navigation::NavigationLink.new
27
33
  @configuration_link.clicked do |element, event|
28
34
  RubyApp::Elements::Mobile::Pages::Information::ConfigurationPage.new.show(event, element.options)
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.5.72"
2
+ VERSION = "0.5.73"
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: 155
4
+ hash: 153
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 72
10
- version: 0.5.72
9
+ - 73
10
+ version: 0.5.73
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -433,6 +433,10 @@ files:
433
433
  - lib/ruby_app/elements/mobile/pages/information/documents_page.html.haml
434
434
  - lib/ruby_app/elements/mobile/pages/information/documents_page.js.haml
435
435
  - lib/ruby_app/elements/mobile/pages/information/documents_page.rb
436
+ - lib/ruby_app/elements/mobile/pages/information/environment_page.css.haml
437
+ - lib/ruby_app/elements/mobile/pages/information/environment_page.html.haml
438
+ - lib/ruby_app/elements/mobile/pages/information/environment_page.js.haml
439
+ - lib/ruby_app/elements/mobile/pages/information/environment_page.rb
436
440
  - lib/ruby_app/elements/mobile/pages/information/information_list.css.haml
437
441
  - lib/ruby_app/elements/mobile/pages/information/information_list.rb
438
442
  - lib/ruby_app/elements/mobile/pages/information/page_page.css.haml