RubyApp 0.5.43 → 0.5.44

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.
Files changed (23) hide show
  1. data/Gemfile.lock +1 -1
  2. data/lib/ruby_app/configuration.yml +21 -21
  3. data/lib/ruby_app/elements.rb +1 -0
  4. data/lib/ruby_app/elements/mobile/hash.css.haml +9 -0
  5. data/lib/ruby_app/elements/mobile/hash.html.haml +19 -0
  6. data/lib/ruby_app/elements/mobile/hash.rb +25 -0
  7. data/lib/ruby_app/elements/mobile/pages/information/configuration_page.css.haml +3 -0
  8. data/lib/ruby_app/elements/mobile/pages/information/configuration_page.html.haml +10 -0
  9. data/lib/ruby_app/elements/mobile/pages/information/configuration_page.js.haml +3 -0
  10. data/lib/ruby_app/elements/mobile/pages/information/configuration_page.rb +37 -0
  11. data/lib/ruby_app/elements/mobile/pages/information/document_page.html.haml +0 -1
  12. data/lib/ruby_app/elements/mobile/pages/information/documents_page.html.haml +0 -1
  13. data/lib/ruby_app/elements/mobile/pages/information/page_page.html.haml +0 -1
  14. data/lib/ruby_app/elements/mobile/pages/information/pages_page.html.haml +0 -1
  15. data/lib/ruby_app/elements/mobile/pages/information/scripts_page.html.haml +0 -1
  16. data/lib/ruby_app/elements/mobile/pages/information/session_page.html.haml +0 -1
  17. data/lib/ruby_app/elements/mobile/pages/information/sessions_page.html.haml +0 -1
  18. data/lib/ruby_app/elements/mobile/pages/information_page.css.haml +1 -0
  19. data/lib/ruby_app/elements/mobile/pages/information_page.html.haml +7 -6
  20. data/lib/ruby_app/elements/mobile/pages/information_page.js.haml +2 -0
  21. data/lib/ruby_app/elements/mobile/pages/information_page.rb +6 -0
  22. data/lib/ruby_app/version.rb +1 -1
  23. metadata +10 -3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.5.43)
4
+ RubyApp (0.5.44)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -1,25 +1,41 @@
1
1
  default:
2
2
  ruby_app:
3
- application:
3
+ application: &default_ruby_app_application
4
4
  _class: 'RubyApp::Application'
5
5
  format:
6
6
  date:
7
7
  long: '%b %d %H:%M %Z'
8
8
  short: '%a %b %-d'
9
- language:
9
+ elements: &default_ruby_app_elements
10
+ mobile:
11
+ documents:
12
+ authentication:
13
+ open_id:
14
+ ax_authentication_document:
15
+ attributes:
16
+ email: 'http://schema.openid.net/contact/email'
17
+ google_authentication_document:
18
+ identifier: 'https://www.google.com/accounts/o8/id'
19
+ my_open_id_authentication_document:
20
+ identifier: 'http://myopenid.com'
21
+ yahoo_authentication_document:
22
+ attributes:
23
+ email: 'http://axschema.org/contact/email'
24
+ identifier: 'https://www.yahoo.com'
25
+ language: &default_ruby_app_language
10
26
  default: 'en'
11
27
  paths:
12
28
  - '#{RubyApp::ROOT}/translations'
13
- log:
29
+ log: &default_ruby_app_log
14
30
  path: '#{RubyApp::ROOT}/process/log/application.log'
15
- response:
31
+ response: &response
16
32
  cache:
17
33
  formats:
18
34
  - :css
19
35
  - :js
20
36
  read?: false
21
37
  write?: false
22
- session:
38
+ session: &default_ruby_app_session
23
39
  _class: 'RubyApp::Session'
24
40
  expires: 1200
25
41
  interval: 15
@@ -27,19 +43,3 @@ default:
27
43
  scripts:
28
44
  enabled: true
29
45
  path: '#{RubyApp::ROOT}/scripts'
30
- elements:
31
- mobile:
32
- documents:
33
- authentication:
34
- open_id:
35
- ax_authentication_document:
36
- attributes:
37
- email: 'http://schema.openid.net/contact/email'
38
- google_authentication_document:
39
- identifier: 'https://www.google.com/accounts/o8/id'
40
- my_open_id_authentication_document:
41
- identifier: 'http://myopenid.com'
42
- yahoo_authentication_document:
43
- attributes:
44
- email: 'http://axschema.org/contact/email'
45
- identifier: 'https://www.yahoo.com'
@@ -13,6 +13,7 @@ require 'ruby_app/elements/mobile/documents/quit_document'
13
13
  require 'ruby_app/elements/mobile/documents/authentication/open_id/google_authentication_document'
14
14
  require 'ruby_app/elements/mobile/documents/authentication/open_id/my_open_id_authentication_document'
15
15
  require 'ruby_app/elements/mobile/documents/authentication/open_id/yahoo_authentication_document'
16
+ require 'ruby_app/elements/mobile/hash'
16
17
  require 'ruby_app/elements/mobile/input'
17
18
  require 'ruby_app/elements/mobile/inputs/date_input'
18
19
  require 'ruby_app/elements/mobile/inputs/duration_input'
@@ -0,0 +1,9 @@
1
+ :sass
2
+ /* #{__FILE__}
3
+ div.hash
4
+ > div.node
5
+ > div.hash
6
+ padding-left: 10px
7
+ > div.item
8
+ padding-left: 10px
9
+ = yield
@@ -0,0 +1,19 @@
1
+ /
2
+ #{__FILE__}
3
+ %div.hash{self.attributes}
4
+ - @data.each do |name, value|
5
+ %div.node
6
+ - if value.is_a?(Hash)
7
+ %code
8
+ #{name}: (Hash)
9
+ = RubyApp::Elements::Mobile::Hash.new(value).render(:html)
10
+ - elsif value.is_a?(Array)
11
+ %code
12
+ #{name}: (Array)
13
+ - value.each do |item|
14
+ %div.item
15
+ %code
16
+ \- #{item.inspect}
17
+ - else
18
+ %code
19
+ #{name}: #{value.inspect}
@@ -0,0 +1,25 @@
1
+ module RubyApp
2
+
3
+ module Elements
4
+
5
+ module Mobile
6
+ require 'ruby_app/element'
7
+
8
+ class Hash < RubyApp::Element
9
+
10
+ template_path(:all, File.dirname(__FILE__))
11
+
12
+ attr_reader :data
13
+
14
+ def initialize(data)
15
+ super()
16
+ @data = data
17
+ end
18
+
19
+ end
20
+
21
+ end
22
+
23
+ end
24
+
25
+ end
@@ -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
+ Configuration
9
+ %div{'data-role' => 'content'}
10
+ = @configuration_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 ConfigurationPage < 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
+ @configuration_hash = RubyApp::Elements::Mobile::Hash.new(RubyApp::Configuration.document)
24
+
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+
31
+ end
32
+
33
+ end
34
+
35
+ end
36
+
37
+ end
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -1,5 +1,6 @@
1
1
  = RubyApp::Elements::Mobile::Navigation::BackButton.render(:css)
2
2
  = RubyApp::Elements::Mobile::Navigation::NavigationLink.render(:css)
3
+ = RubyApp::Elements::Mobile::Pages::Information::ConfigurationPage.render(:css)
3
4
  = RubyApp::Elements::Mobile::Pages::Information::InformationList.render(:css)
4
5
  = RubyApp::Elements::Mobile::Pages::Information::SessionsPage.render(:css)
5
6
  = RubyApp::Elements::Mobile::Pages::Information::ScriptsPage.render(:css)
@@ -1,4 +1,3 @@
1
- - require 'chronic'
2
1
  - self.content_for(:html, :page) do
3
2
  /
4
3
  #{__FILE__}
@@ -34,11 +33,13 @@
34
33
  %code
35
34
  = RubyApp::Language.locale.strftime(@now, RubyApp::Application.configuration.format.date.long)
36
35
  %li
37
- %span
38
- Configuration
39
- %span.ui-li-aside
40
- %code
41
- = ENV['RUBY_APP_CONFIGURATION'] || 'default'
36
+ = @configuration_link.render(:html) do |element|
37
+ - element.content_for(:html, :link) do
38
+ %span
39
+ Configuration
40
+ %span.ui-li-count
41
+ %code
42
+ = ENV['RUBY_APP_CONFIGURATION'] || 'default'
42
43
  %li
43
44
  = @scripts_link.render(:html) do |element|
44
45
  - element.content_for(:html, :link) do
@@ -1,5 +1,7 @@
1
1
  = RubyApp::Elements::Mobile::Navigation::BackButton.render(:js)
2
2
  = RubyApp::Elements::Mobile::Navigation::NavigationLink.render(:js)
3
+ = RubyApp::Elements::Mobile::Pages::Information::ConfigurationPage.render(:js)
4
+ = RubyApp::Elements::Mobile::Pages::Information::InformationList.render(:js)
3
5
  = RubyApp::Elements::Mobile::Pages::Information::SessionsPage.render(:js)
4
6
  = RubyApp::Elements::Mobile::Pages::Information::ScriptsPage.render(:js)
5
7
  = yield
@@ -8,6 +8,7 @@ module RubyApp
8
8
  require 'ruby_app/elements/mobile/navigation/back_button'
9
9
  require 'ruby_app/elements/mobile/navigation/navigation_link'
10
10
  require 'ruby_app/elements/mobile/page'
11
+ require 'ruby_app/elements/mobile/pages/information/configuration_page'
11
12
  require 'ruby_app/elements/mobile/pages/information/sessions_page'
12
13
  require 'ruby_app/elements/mobile/pages/information/scripts_page'
13
14
 
@@ -22,6 +23,11 @@ module RubyApp
22
23
 
23
24
  @back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new
24
25
 
26
+ @configuration_link = RubyApp::Elements::Mobile::Navigation::NavigationLink.new
27
+ @configuration_link.clicked do |element, event|
28
+ RubyApp::Elements::Mobile::Pages::Information::ConfigurationPage.new.show(event, element.options)
29
+ end
30
+
25
31
  @scripts_link = RubyApp::Elements::Mobile::Navigation::NavigationLink.new
26
32
  @scripts_link.clicked do |element, event|
27
33
  RubyApp::Elements::Mobile::Pages::Information::ScriptsPage.new.show(event, element.options)
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.5.43"
2
+ VERSION = "0.5.44"
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: 93
4
+ hash: 83
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 43
10
- version: 0.5.43
9
+ - 44
10
+ version: 0.5.44
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -381,6 +381,9 @@ files:
381
381
  - lib/ruby_app/elements/mobile/documents/mail_document.rb
382
382
  - lib/ruby_app/elements/mobile/documents/quit_document.html.haml
383
383
  - lib/ruby_app/elements/mobile/documents/quit_document.rb
384
+ - lib/ruby_app/elements/mobile/hash.css.haml
385
+ - lib/ruby_app/elements/mobile/hash.html.haml
386
+ - lib/ruby_app/elements/mobile/hash.rb
384
387
  - lib/ruby_app/elements/mobile/input.html.haml
385
388
  - lib/ruby_app/elements/mobile/input.js.haml
386
389
  - lib/ruby_app/elements/mobile/input.rb
@@ -414,6 +417,10 @@ files:
414
417
  - lib/ruby_app/elements/mobile/page.html.haml
415
418
  - lib/ruby_app/elements/mobile/page.js.haml
416
419
  - lib/ruby_app/elements/mobile/page.rb
420
+ - lib/ruby_app/elements/mobile/pages/information/configuration_page.css.haml
421
+ - lib/ruby_app/elements/mobile/pages/information/configuration_page.html.haml
422
+ - lib/ruby_app/elements/mobile/pages/information/configuration_page.js.haml
423
+ - lib/ruby_app/elements/mobile/pages/information/configuration_page.rb
417
424
  - lib/ruby_app/elements/mobile/pages/information/document_page.css.haml
418
425
  - lib/ruby_app/elements/mobile/pages/information/document_page.html.haml
419
426
  - lib/ruby_app/elements/mobile/pages/information/document_page.js.haml