RubyApp 0.0.91 → 0.2.0
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.
- data/.gitignore +0 -1
- data/.rvmrc +56 -1
- data/Gemfile.lock +22 -22
- data/bin/console.rb +9 -1
- data/bin/ruby_app +2 -24
- data/features/default.feature +1 -0
- data/features/elements/input.feature +2 -0
- data/features/elements/page.feature +0 -9
- data/features/step_definitions/default_macros.rb +1 -4
- data/features/step_definitions/default_steps.rb +1 -1
- data/lib/ruby_app.rb +8 -1
- data/lib/ruby_app/application.rb +5 -67
- data/lib/ruby_app/configuration.rb +2 -3
- data/lib/ruby_app/configuration.ru +32 -0
- data/lib/ruby_app/configuration.yml +28 -0
- data/lib/ruby_app/element.rb +12 -6
- data/lib/ruby_app/elements.rb +50 -0
- data/lib/ruby_app/elements/base/base_mail.rb +2 -2
- data/lib/ruby_app/elements/base/base_page.html.haml +1 -1
- data/lib/ruby_app/elements/base/base_page.js.haml +3 -3
- data/lib/ruby_app/elements/base/base_page.rb +2 -2
- data/lib/ruby_app/elements/dialogs/base/base_ok_dialog.rb +0 -1
- data/lib/ruby_app/elements/dialogs/blank_dialog.rb +1 -1
- data/lib/ruby_app/elements/dialogs/exception_dialog.rb +1 -2
- data/lib/ruby_app/elements/navigation/back_button.rb +1 -1
- data/lib/ruby_app/elements/navigation/base/base_breadcrumbs.rb +1 -0
- data/lib/ruby_app/elements/navigation/page_link.rb +1 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/ax_authentication_page.rb +1 -1
- data/lib/ruby_app/elements/pages/authentication/open_id/base/base_authentication_page.rb +1 -3
- data/lib/ruby_app/elements/pages/authentication/open_id/email_authentication_page.rb +1 -1
- data/lib/ruby_app/elements/pages/authentication/open_id/sreg_authentication_page.rb +1 -1
- data/lib/ruby_app/elements/pages/base/base_blank_page.rb +0 -1
- data/lib/ruby_app/elements/pages/default_page.rb +2 -1
- data/lib/ruby_app/elements/pages/quit_page.html.haml +0 -3
- data/lib/ruby_app/elements/pages/quit_page.rb +0 -2
- data/lib/ruby_app/elements/pages/settings_page.rb +2 -1
- data/lib/ruby_app/elements/pages/test_pages.rb +9 -0
- data/lib/ruby_app/elements/pages/test_pages/button_test_page.rb +3 -5
- data/lib/ruby_app/elements/pages/test_pages/default_test_page.rb +10 -15
- data/lib/ruby_app/elements/pages/test_pages/dialog_test_page.rb +2 -8
- data/lib/ruby_app/elements/pages/test_pages/input_test_page.rb +2 -9
- data/lib/ruby_app/elements/pages/test_pages/link_test_page.rb +3 -5
- data/lib/ruby_app/elements/pages/test_pages/linked_test_page.rb +1 -2
- data/lib/ruby_app/elements/pages/test_pages/list_test_page.rb +4 -8
- data/lib/ruby_app/elements/pages/test_pages/markdown_test_page.rb +3 -4
- data/lib/ruby_app/elements/pages/test_pages/test_page.rb +3 -8
- data/lib/ruby_app/exceptions.rb +2 -0
- data/lib/ruby_app/exceptions/base/base_exception.rb +1 -1
- data/lib/ruby_app/language.rb +9 -15
- data/lib/ruby_app/log.rb +32 -28
- data/lib/ruby_app/mixins.rb +7 -0
- data/lib/ruby_app/mixins/configuration_mixin.rb +1 -1
- data/lib/ruby_app/mixins/delegate_mixin.rb +1 -1
- data/lib/ruby_app/mixins/hash_mixin.rb +1 -1
- data/lib/ruby_app/mixins/render_mixin.rb +37 -39
- data/lib/ruby_app/mixins/route_mixin.rb +1 -5
- data/lib/ruby_app/mixins/template_mixin.rb +4 -12
- data/lib/ruby_app/mixins/translate_mixin.rb +2 -2
- data/lib/ruby_app/rack.rb +8 -0
- data/lib/ruby_app/rack/application.rb +9 -5
- data/lib/ruby_app/rack/duration.rb +22 -0
- data/lib/ruby_app/rack/language.rb +26 -0
- data/lib/ruby_app/rack/memory.rb +22 -0
- data/lib/ruby_app/rack/request.rb +27 -0
- data/lib/ruby_app/rack/response.rb +26 -0
- data/lib/ruby_app/rack/route.rb +24 -87
- data/lib/ruby_app/rack/session.rb +31 -0
- data/lib/ruby_app/request.rb +4 -55
- data/lib/ruby_app/response.rb +58 -0
- data/lib/ruby_app/session.rb +102 -35
- data/lib/ruby_app/templates/application/Rakefile +1 -1
- data/lib/ruby_app/templates/application/configuration.ru +41 -0
- data/lib/ruby_app/templates/application/configuration.yml +16 -0
- data/lib/ruby_app/templates/application/console.rb +15 -10
- data/lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_.rb +3 -0
- data/lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/application.rb +3 -3
- data/lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/elements/pages/default_page.rb +1 -1
- data/lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/session.rb +3 -3
- data/lib/ruby_app/templates/application/spec/application_spec.rb +17 -0
- data/lib/ruby_app/templates/application/spec/request_spec.rb +18 -0
- data/lib/ruby_app/templates/application/spec/support/shared.rb +34 -9
- data/lib/ruby_app/themes/mobile.rb +1 -17
- data/lib/ruby_app/themes/mobile/base/base_page.html.haml +1 -1
- data/lib/ruby_app/translations/en.yml +133 -144
- data/lib/ruby_app/version.rb +1 -1
- data/rakefile +1 -16
- data/spec/application_spec.rb +5 -13
- data/spec/elements/base_element.html.haml +5 -0
- data/spec/elements/container_element.html.haml +6 -0
- data/spec/elements/derived_element.html.haml +5 -0
- data/spec/elements/element_spec.rb +101 -0
- data/spec/request_spec.rb +6 -13
- data/spec/support/shared.rb +14 -6
- metadata +95 -125
- data/features/elements/pages/quit_page.feature +0 -8
- data/lib/ruby_app/config.ru +0 -25
- data/lib/ruby_app/config.yml +0 -16
- data/lib/ruby_app/elements/pages/test_pages/select_test_page.rb +0 -44
- data/lib/ruby_app/templates/application/config.ru +0 -40
- data/lib/ruby_app/templates/application/config.yml +0 -1
- data/lib/ruby_app/templates/page/_PAGE_DOWNCODE_.css.haml +0 -3
- data/lib/ruby_app/templates/page/_PAGE_DOWNCODE_.html.haml +0 -4
- data/lib/ruby_app/templates/page/_PAGE_DOWNCODE_.js.haml +0 -3
- data/lib/ruby_app/templates/page/_PAGE_DOWNCODE_.rb +0 -14
- data/spec/configuration_spec.rb +0 -25
- data/spec/element_spec.rb +0 -72
- data/spec/elements/navigation/breadcrumbs_spec.rb +0 -62
- data/spec/elements/page_spec.rb +0 -20
- data/spec/language_spec.rb +0 -25
- data/spec/log_spec.rb +0 -25
- data/spec/mixins/configuration_mixin_spec.rb +0 -24
- data/spec/mixins/delegate_mixin_spec.rb +0 -28
- data/spec/mixins/hash_mixin_spec.rb +0 -39
- data/spec/mixins/render_mixin_spec.rb +0 -127
- data/spec/mixins/route_mixin_spec.rb +0 -60
- data/spec/mixins/template_mixin_spec.rb +0 -78
- data/spec/mixins/test_a.css.haml +0 -4
- data/spec/mixins/test_a.html.haml +0 -2
- data/spec/mixins/test_a.js.haml +0 -4
- data/spec/mixins/test_b.css.haml +0 -4
- data/spec/mixins/test_b.html.haml +0 -3
- data/spec/mixins/test_b.js.haml +0 -4
- data/spec/mixins/test_c.css.haml +0 -4
- data/spec/mixins/test_c.html.haml +0 -2
- data/spec/mixins/test_c.js.haml +0 -4
- data/spec/mixins/translate_mixin_spec.rb +0 -25
- data/spec/session_spec.rb +0 -39
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
require 'ruby_app/elements'
|
|
4
|
+
|
|
5
|
+
describe RubyApp::Element do
|
|
6
|
+
include_context 'request'
|
|
7
|
+
|
|
8
|
+
describe 'positive' do
|
|
9
|
+
|
|
10
|
+
before(:all) do
|
|
11
|
+
|
|
12
|
+
class BaseElement < RubyApp::Element
|
|
13
|
+
template_path(:all, File.dirname(__FILE__))
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class DerivedElement < BaseElement
|
|
17
|
+
template_path(:all, File.dirname(__FILE__))
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
class ContainerElement < RubyApp::Element
|
|
21
|
+
|
|
22
|
+
template_path(:all, File.dirname(__FILE__))
|
|
23
|
+
|
|
24
|
+
def initialize
|
|
25
|
+
super
|
|
26
|
+
|
|
27
|
+
@derived_element_1 = DerivedElement.new
|
|
28
|
+
@derived_element_2 = DerivedElement.new
|
|
29
|
+
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'BaseElement' do
|
|
37
|
+
|
|
38
|
+
describe 'render instance' do
|
|
39
|
+
|
|
40
|
+
let(:base_element) { BaseElement.new }
|
|
41
|
+
|
|
42
|
+
describe 'render html' do
|
|
43
|
+
|
|
44
|
+
specify { base_element.render(:html).should include('BaseElement') }
|
|
45
|
+
specify { base_element.render(:html).scan(/BaseElement/).length.should == 1 }
|
|
46
|
+
|
|
47
|
+
it 'generates ouput' do
|
|
48
|
+
puts '-' *80
|
|
49
|
+
puts base_element.render(:html)
|
|
50
|
+
puts '-' *80
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'DerivedElement' do
|
|
60
|
+
|
|
61
|
+
describe 'render instance' do
|
|
62
|
+
|
|
63
|
+
let(:derived_element) { DerivedElement.new }
|
|
64
|
+
|
|
65
|
+
describe 'render html' do
|
|
66
|
+
|
|
67
|
+
it 'generates ouput' do
|
|
68
|
+
puts '-' *80
|
|
69
|
+
puts derived_element.render(:html)
|
|
70
|
+
puts '-' *80
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
describe 'ContainerElement' do
|
|
80
|
+
|
|
81
|
+
describe 'render instance' do
|
|
82
|
+
|
|
83
|
+
let(:container_element) { ContainerElement.new }
|
|
84
|
+
|
|
85
|
+
describe 'render html' do
|
|
86
|
+
|
|
87
|
+
it 'generates ouput' do
|
|
88
|
+
puts '-' *80
|
|
89
|
+
puts container_element.render(:html)
|
|
90
|
+
puts '-' *80
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
end
|
data/spec/request_spec.rb
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
describe RubyApp::Request do
|
|
6
|
-
include_context 'RubyApp::Request'
|
|
3
|
+
describe 'request' do
|
|
4
|
+
include_context 'request'
|
|
7
5
|
|
|
8
6
|
describe 'positive' do
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
specify { RubyApp::Request.should respond_to('destroy!') }
|
|
15
|
-
|
|
16
|
-
specify { RubyApp::Request.get.should_not be_nil }
|
|
17
|
-
|
|
18
|
-
end
|
|
8
|
+
specify { RubyApp::Request.get.should_not be_nil }
|
|
9
|
+
specify { RubyApp::Response.get.should_not be_nil }
|
|
10
|
+
specify { RubyApp::Language.get.should_not be_nil }
|
|
11
|
+
specify { RubyApp::Session.get.should_not be_nil }
|
|
19
12
|
|
|
20
13
|
end
|
|
21
14
|
|
data/spec/support/shared.rb
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
require 'ruby_app
|
|
1
|
+
require 'ruby_app'
|
|
2
2
|
|
|
3
|
-
shared_context '
|
|
3
|
+
shared_context 'application' do
|
|
4
4
|
|
|
5
5
|
before(:all) do
|
|
6
|
+
RubyApp::Configuration.load!([File.join(RubyApp::ROOT, %w[configuration.yml])])
|
|
7
|
+
RubyApp::Log.open!
|
|
6
8
|
RubyApp::Application.create!
|
|
7
9
|
end
|
|
8
10
|
|
|
9
11
|
after(:all) do
|
|
10
12
|
RubyApp::Application.destroy!
|
|
13
|
+
RubyApp::Log.close!
|
|
14
|
+
RubyApp::Configuration.unload!
|
|
11
15
|
end
|
|
12
16
|
|
|
13
17
|
end
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
shared_context 'RubyApp::Request' do
|
|
18
|
-
include_context 'RubyApp::Application'
|
|
19
|
+
shared_context 'request' do
|
|
20
|
+
include_context 'application'
|
|
19
21
|
|
|
20
22
|
before(:each) do
|
|
21
23
|
RubyApp::Request.create!
|
|
24
|
+
RubyApp::Response.create!
|
|
25
|
+
RubyApp::Language.load!
|
|
26
|
+
RubyApp::Session.load!
|
|
22
27
|
end
|
|
23
28
|
|
|
24
29
|
after(:each) do
|
|
30
|
+
RubyApp::Session.unload!
|
|
31
|
+
RubyApp::Language.unload!
|
|
32
|
+
RubyApp::Response.destroy!
|
|
25
33
|
RubyApp::Request.destroy!
|
|
26
34
|
end
|
|
27
35
|
|
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: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
+
- 2
|
|
8
9
|
- 0
|
|
9
|
-
|
|
10
|
-
version: 0.0.91
|
|
10
|
+
version: 0.2.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Frank G. Ficnar
|
|
@@ -15,9 +15,11 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-
|
|
18
|
+
date: 2012-03-21 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
|
+
prerelease: false
|
|
22
|
+
name: BlueCloth
|
|
21
23
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
|
22
24
|
none: false
|
|
23
25
|
requirements:
|
|
@@ -27,11 +29,11 @@ dependencies:
|
|
|
27
29
|
segments:
|
|
28
30
|
- 0
|
|
29
31
|
version: "0"
|
|
30
|
-
requirement: *id001
|
|
31
32
|
type: :runtime
|
|
32
|
-
|
|
33
|
-
name: BlueCloth
|
|
33
|
+
requirement: *id001
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
|
+
prerelease: false
|
|
36
|
+
name: chronic
|
|
35
37
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
|
36
38
|
none: false
|
|
37
39
|
requirements:
|
|
@@ -41,11 +43,11 @@ dependencies:
|
|
|
41
43
|
segments:
|
|
42
44
|
- 0
|
|
43
45
|
version: "0"
|
|
44
|
-
requirement: *id002
|
|
45
46
|
type: :runtime
|
|
46
|
-
|
|
47
|
-
name: chronic
|
|
47
|
+
requirement: *id002
|
|
48
48
|
- !ruby/object:Gem::Dependency
|
|
49
|
+
prerelease: false
|
|
50
|
+
name: chronic_duration
|
|
49
51
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
|
50
52
|
none: false
|
|
51
53
|
requirements:
|
|
@@ -55,11 +57,11 @@ dependencies:
|
|
|
55
57
|
segments:
|
|
56
58
|
- 0
|
|
57
59
|
version: "0"
|
|
58
|
-
requirement: *id003
|
|
59
60
|
type: :runtime
|
|
60
|
-
|
|
61
|
-
name: chronic_duration
|
|
61
|
+
requirement: *id003
|
|
62
62
|
- !ruby/object:Gem::Dependency
|
|
63
|
+
prerelease: false
|
|
64
|
+
name: facets
|
|
63
65
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
|
64
66
|
none: false
|
|
65
67
|
requirements:
|
|
@@ -69,11 +71,11 @@ dependencies:
|
|
|
69
71
|
segments:
|
|
70
72
|
- 0
|
|
71
73
|
version: "0"
|
|
72
|
-
requirement: *id004
|
|
73
74
|
type: :runtime
|
|
74
|
-
|
|
75
|
-
name: facets
|
|
75
|
+
requirement: *id004
|
|
76
76
|
- !ruby/object:Gem::Dependency
|
|
77
|
+
prerelease: false
|
|
78
|
+
name: fileutils
|
|
77
79
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
|
78
80
|
none: false
|
|
79
81
|
requirements:
|
|
@@ -83,11 +85,11 @@ dependencies:
|
|
|
83
85
|
segments:
|
|
84
86
|
- 0
|
|
85
87
|
version: "0"
|
|
86
|
-
requirement: *id005
|
|
87
88
|
type: :runtime
|
|
88
|
-
|
|
89
|
-
name: fileutils
|
|
89
|
+
requirement: *id005
|
|
90
90
|
- !ruby/object:Gem::Dependency
|
|
91
|
+
prerelease: false
|
|
92
|
+
name: haml
|
|
91
93
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
|
92
94
|
none: false
|
|
93
95
|
requirements:
|
|
@@ -97,11 +99,11 @@ dependencies:
|
|
|
97
99
|
segments:
|
|
98
100
|
- 0
|
|
99
101
|
version: "0"
|
|
100
|
-
requirement: *id006
|
|
101
102
|
type: :runtime
|
|
102
|
-
|
|
103
|
-
name: haml
|
|
103
|
+
requirement: *id006
|
|
104
104
|
- !ruby/object:Gem::Dependency
|
|
105
|
+
prerelease: false
|
|
106
|
+
name: json
|
|
105
107
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
|
106
108
|
none: false
|
|
107
109
|
requirements:
|
|
@@ -111,11 +113,11 @@ dependencies:
|
|
|
111
113
|
segments:
|
|
112
114
|
- 0
|
|
113
115
|
version: "0"
|
|
114
|
-
requirement: *id007
|
|
115
116
|
type: :runtime
|
|
116
|
-
|
|
117
|
-
name: json
|
|
117
|
+
requirement: *id007
|
|
118
118
|
- !ruby/object:Gem::Dependency
|
|
119
|
+
prerelease: false
|
|
120
|
+
name: mime-types
|
|
119
121
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
|
120
122
|
none: false
|
|
121
123
|
requirements:
|
|
@@ -125,11 +127,11 @@ dependencies:
|
|
|
125
127
|
segments:
|
|
126
128
|
- 0
|
|
127
129
|
version: "0"
|
|
128
|
-
requirement: *id008
|
|
129
130
|
type: :runtime
|
|
130
|
-
|
|
131
|
-
name: mime-types
|
|
131
|
+
requirement: *id008
|
|
132
132
|
- !ruby/object:Gem::Dependency
|
|
133
|
+
prerelease: false
|
|
134
|
+
name: r18n-core
|
|
133
135
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
|
134
136
|
none: false
|
|
135
137
|
requirements:
|
|
@@ -139,11 +141,11 @@ dependencies:
|
|
|
139
141
|
segments:
|
|
140
142
|
- 0
|
|
141
143
|
version: "0"
|
|
142
|
-
requirement: *id009
|
|
143
144
|
type: :runtime
|
|
144
|
-
|
|
145
|
-
name: r18n-core
|
|
145
|
+
requirement: *id009
|
|
146
146
|
- !ruby/object:Gem::Dependency
|
|
147
|
+
prerelease: false
|
|
148
|
+
name: rack
|
|
147
149
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
|
148
150
|
none: false
|
|
149
151
|
requirements:
|
|
@@ -153,11 +155,11 @@ dependencies:
|
|
|
153
155
|
segments:
|
|
154
156
|
- 0
|
|
155
157
|
version: "0"
|
|
156
|
-
requirement: *id010
|
|
157
158
|
type: :runtime
|
|
158
|
-
|
|
159
|
-
name: rack
|
|
159
|
+
requirement: *id010
|
|
160
160
|
- !ruby/object:Gem::Dependency
|
|
161
|
+
prerelease: false
|
|
162
|
+
name: ruby-event
|
|
161
163
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
|
162
164
|
none: false
|
|
163
165
|
requirements:
|
|
@@ -167,11 +169,11 @@ dependencies:
|
|
|
167
169
|
segments:
|
|
168
170
|
- 0
|
|
169
171
|
version: "0"
|
|
170
|
-
requirement: *id011
|
|
171
172
|
type: :runtime
|
|
172
|
-
|
|
173
|
-
name: ruby-event
|
|
173
|
+
requirement: *id011
|
|
174
174
|
- !ruby/object:Gem::Dependency
|
|
175
|
+
prerelease: false
|
|
176
|
+
name: ruby-openid
|
|
175
177
|
version_requirements: &id012 !ruby/object:Gem::Requirement
|
|
176
178
|
none: false
|
|
177
179
|
requirements:
|
|
@@ -181,11 +183,11 @@ dependencies:
|
|
|
181
183
|
segments:
|
|
182
184
|
- 0
|
|
183
185
|
version: "0"
|
|
184
|
-
requirement: *id012
|
|
185
186
|
type: :runtime
|
|
186
|
-
|
|
187
|
-
name: ruby-openid
|
|
187
|
+
requirement: *id012
|
|
188
188
|
- !ruby/object:Gem::Dependency
|
|
189
|
+
prerelease: false
|
|
190
|
+
name: sass
|
|
189
191
|
version_requirements: &id013 !ruby/object:Gem::Requirement
|
|
190
192
|
none: false
|
|
191
193
|
requirements:
|
|
@@ -195,11 +197,11 @@ dependencies:
|
|
|
195
197
|
segments:
|
|
196
198
|
- 0
|
|
197
199
|
version: "0"
|
|
198
|
-
requirement: *id013
|
|
199
200
|
type: :runtime
|
|
200
|
-
|
|
201
|
-
name: sass
|
|
201
|
+
requirement: *id013
|
|
202
202
|
- !ruby/object:Gem::Dependency
|
|
203
|
+
prerelease: false
|
|
204
|
+
name: term-ansicolor
|
|
203
205
|
version_requirements: &id014 !ruby/object:Gem::Requirement
|
|
204
206
|
none: false
|
|
205
207
|
requirements:
|
|
@@ -209,11 +211,11 @@ dependencies:
|
|
|
209
211
|
segments:
|
|
210
212
|
- 0
|
|
211
213
|
version: "0"
|
|
212
|
-
requirement: *id014
|
|
213
214
|
type: :runtime
|
|
214
|
-
|
|
215
|
-
name: term-ansicolor
|
|
215
|
+
requirement: *id014
|
|
216
216
|
- !ruby/object:Gem::Dependency
|
|
217
|
+
prerelease: false
|
|
218
|
+
name: yajl-ruby
|
|
217
219
|
version_requirements: &id015 !ruby/object:Gem::Requirement
|
|
218
220
|
none: false
|
|
219
221
|
requirements:
|
|
@@ -223,11 +225,11 @@ dependencies:
|
|
|
223
225
|
segments:
|
|
224
226
|
- 0
|
|
225
227
|
version: "0"
|
|
226
|
-
requirement: *id015
|
|
227
228
|
type: :runtime
|
|
228
|
-
|
|
229
|
-
name: yajl-ruby
|
|
229
|
+
requirement: *id015
|
|
230
230
|
- !ruby/object:Gem::Dependency
|
|
231
|
+
prerelease: false
|
|
232
|
+
name: capybara
|
|
231
233
|
version_requirements: &id016 !ruby/object:Gem::Requirement
|
|
232
234
|
none: false
|
|
233
235
|
requirements:
|
|
@@ -237,11 +239,11 @@ dependencies:
|
|
|
237
239
|
segments:
|
|
238
240
|
- 0
|
|
239
241
|
version: "0"
|
|
240
|
-
requirement: *id016
|
|
241
242
|
type: :development
|
|
242
|
-
|
|
243
|
-
name: capybara
|
|
243
|
+
requirement: *id016
|
|
244
244
|
- !ruby/object:Gem::Dependency
|
|
245
|
+
prerelease: false
|
|
246
|
+
name: cucumber
|
|
245
247
|
version_requirements: &id017 !ruby/object:Gem::Requirement
|
|
246
248
|
none: false
|
|
247
249
|
requirements:
|
|
@@ -251,11 +253,11 @@ dependencies:
|
|
|
251
253
|
segments:
|
|
252
254
|
- 0
|
|
253
255
|
version: "0"
|
|
254
|
-
requirement: *id017
|
|
255
256
|
type: :development
|
|
256
|
-
|
|
257
|
-
name: cucumber
|
|
257
|
+
requirement: *id017
|
|
258
258
|
- !ruby/object:Gem::Dependency
|
|
259
|
+
prerelease: false
|
|
260
|
+
name: launchy
|
|
259
261
|
version_requirements: &id018 !ruby/object:Gem::Requirement
|
|
260
262
|
none: false
|
|
261
263
|
requirements:
|
|
@@ -265,11 +267,11 @@ dependencies:
|
|
|
265
267
|
segments:
|
|
266
268
|
- 0
|
|
267
269
|
version: "0"
|
|
268
|
-
requirement: *id018
|
|
269
270
|
type: :development
|
|
270
|
-
|
|
271
|
-
name: launchy
|
|
271
|
+
requirement: *id018
|
|
272
272
|
- !ruby/object:Gem::Dependency
|
|
273
|
+
prerelease: false
|
|
274
|
+
name: rake
|
|
273
275
|
version_requirements: &id019 !ruby/object:Gem::Requirement
|
|
274
276
|
none: false
|
|
275
277
|
requirements:
|
|
@@ -279,11 +281,11 @@ dependencies:
|
|
|
279
281
|
segments:
|
|
280
282
|
- 0
|
|
281
283
|
version: "0"
|
|
282
|
-
requirement: *id019
|
|
283
284
|
type: :development
|
|
284
|
-
|
|
285
|
-
name: rake
|
|
285
|
+
requirement: *id019
|
|
286
286
|
- !ruby/object:Gem::Dependency
|
|
287
|
+
prerelease: false
|
|
288
|
+
name: rspec
|
|
287
289
|
version_requirements: &id020 !ruby/object:Gem::Requirement
|
|
288
290
|
none: false
|
|
289
291
|
requirements:
|
|
@@ -293,11 +295,11 @@ dependencies:
|
|
|
293
295
|
segments:
|
|
294
296
|
- 0
|
|
295
297
|
version: "0"
|
|
296
|
-
requirement: *id020
|
|
297
298
|
type: :development
|
|
298
|
-
|
|
299
|
-
name: rspec
|
|
299
|
+
requirement: *id020
|
|
300
300
|
- !ruby/object:Gem::Dependency
|
|
301
|
+
prerelease: false
|
|
302
|
+
name: rspec-mocks
|
|
301
303
|
version_requirements: &id021 !ruby/object:Gem::Requirement
|
|
302
304
|
none: false
|
|
303
305
|
requirements:
|
|
@@ -307,10 +309,8 @@ dependencies:
|
|
|
307
309
|
segments:
|
|
308
310
|
- 0
|
|
309
311
|
version: "0"
|
|
310
|
-
requirement: *id021
|
|
311
312
|
type: :development
|
|
312
|
-
|
|
313
|
-
name: rspec-mocks
|
|
313
|
+
requirement: *id021
|
|
314
314
|
description: A web application framework in Ruby
|
|
315
315
|
email:
|
|
316
316
|
- frank.ficnar@gmail.com
|
|
@@ -337,16 +337,16 @@ files:
|
|
|
337
337
|
- features/elements/list.feature
|
|
338
338
|
- features/elements/markdown.feature
|
|
339
339
|
- features/elements/page.feature
|
|
340
|
-
- features/elements/pages/quit_page.feature
|
|
341
340
|
- features/step_definitions/default_macros.rb
|
|
342
341
|
- features/step_definitions/default_steps.rb
|
|
343
342
|
- features/support/env.rb
|
|
344
343
|
- lib/ruby_app.rb
|
|
345
344
|
- lib/ruby_app/application.rb
|
|
346
|
-
- lib/ruby_app/config.ru
|
|
347
|
-
- lib/ruby_app/config.yml
|
|
348
345
|
- lib/ruby_app/configuration.rb
|
|
346
|
+
- lib/ruby_app/configuration.ru
|
|
347
|
+
- lib/ruby_app/configuration.yml
|
|
349
348
|
- lib/ruby_app/element.rb
|
|
349
|
+
- lib/ruby_app/elements.rb
|
|
350
350
|
- lib/ruby_app/elements/base/base_dialog.css.haml
|
|
351
351
|
- lib/ruby_app/elements/base/base_dialog.html.haml
|
|
352
352
|
- lib/ruby_app/elements/base/base_dialog.rb
|
|
@@ -456,6 +456,7 @@ files:
|
|
|
456
456
|
- lib/ruby_app/elements/pages/settings_page.html.haml
|
|
457
457
|
- lib/ruby_app/elements/pages/settings_page.js.haml
|
|
458
458
|
- lib/ruby_app/elements/pages/settings_page.rb
|
|
459
|
+
- lib/ruby_app/elements/pages/test_pages.rb
|
|
459
460
|
- lib/ruby_app/elements/pages/test_pages/button_test_page.css.haml
|
|
460
461
|
- lib/ruby_app/elements/pages/test_pages/button_test_page.html.haml
|
|
461
462
|
- lib/ruby_app/elements/pages/test_pages/button_test_page.js.haml
|
|
@@ -488,15 +489,16 @@ files:
|
|
|
488
489
|
- lib/ruby_app/elements/pages/test_pages/markdown_test_page.html.haml
|
|
489
490
|
- lib/ruby_app/elements/pages/test_pages/markdown_test_page.js.haml
|
|
490
491
|
- lib/ruby_app/elements/pages/test_pages/markdown_test_page.rb
|
|
491
|
-
- lib/ruby_app/elements/pages/test_pages/select_test_page.rb
|
|
492
492
|
- lib/ruby_app/elements/pages/test_pages/test_page.css.haml
|
|
493
493
|
- lib/ruby_app/elements/pages/test_pages/test_page.html.haml
|
|
494
494
|
- lib/ruby_app/elements/pages/test_pages/test_page.js.haml
|
|
495
495
|
- lib/ruby_app/elements/pages/test_pages/test_page.rb
|
|
496
|
+
- lib/ruby_app/exceptions.rb
|
|
496
497
|
- lib/ruby_app/exceptions/base/base_exception.rb
|
|
497
498
|
- lib/ruby_app/exceptions/session_invalid_exception.rb
|
|
498
499
|
- lib/ruby_app/language.rb
|
|
499
500
|
- lib/ruby_app/log.rb
|
|
501
|
+
- lib/ruby_app/mixins.rb
|
|
500
502
|
- lib/ruby_app/mixins/configuration_mixin.rb
|
|
501
503
|
- lib/ruby_app/mixins/delegate_mixin.rb
|
|
502
504
|
- lib/ruby_app/mixins/hash_mixin.rb
|
|
@@ -504,8 +506,15 @@ files:
|
|
|
504
506
|
- lib/ruby_app/mixins/route_mixin.rb
|
|
505
507
|
- lib/ruby_app/mixins/template_mixin.rb
|
|
506
508
|
- lib/ruby_app/mixins/translate_mixin.rb
|
|
509
|
+
- lib/ruby_app/rack.rb
|
|
507
510
|
- lib/ruby_app/rack/application.rb
|
|
511
|
+
- lib/ruby_app/rack/duration.rb
|
|
512
|
+
- lib/ruby_app/rack/language.rb
|
|
513
|
+
- lib/ruby_app/rack/memory.rb
|
|
514
|
+
- lib/ruby_app/rack/request.rb
|
|
515
|
+
- lib/ruby_app/rack/response.rb
|
|
508
516
|
- lib/ruby_app/rack/route.rb
|
|
517
|
+
- lib/ruby_app/rack/session.rb
|
|
509
518
|
- lib/ruby_app/request.rb
|
|
510
519
|
- lib/ruby_app/resources/elements/base/base_page.gif
|
|
511
520
|
- lib/ruby_app/resources/favicon.ico
|
|
@@ -519,25 +528,25 @@ files:
|
|
|
519
528
|
- lib/ruby_app/resources/themes/mobile/lists/select.png
|
|
520
529
|
- lib/ruby_app/resources/themes/mobile/lists/select.psd
|
|
521
530
|
- lib/ruby_app/resources/themes/mobile/page.gif
|
|
531
|
+
- lib/ruby_app/response.rb
|
|
522
532
|
- lib/ruby_app/session.rb
|
|
523
533
|
- lib/ruby_app/templates/application/Gemfile
|
|
524
534
|
- lib/ruby_app/templates/application/Rakefile
|
|
525
|
-
- lib/ruby_app/templates/application/
|
|
526
|
-
- lib/ruby_app/templates/application/
|
|
535
|
+
- lib/ruby_app/templates/application/configuration.ru
|
|
536
|
+
- lib/ruby_app/templates/application/configuration.yml
|
|
527
537
|
- lib/ruby_app/templates/application/console.rb
|
|
538
|
+
- lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_.rb
|
|
528
539
|
- lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/application.rb
|
|
529
540
|
- lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/elements/pages/default_page.css.haml
|
|
530
541
|
- lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/elements/pages/default_page.html.haml
|
|
531
542
|
- lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/elements/pages/default_page.rb
|
|
532
543
|
- lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/session.rb
|
|
533
544
|
- lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/version.rb
|
|
545
|
+
- lib/ruby_app/templates/application/spec/application_spec.rb
|
|
546
|
+
- lib/ruby_app/templates/application/spec/request_spec.rb
|
|
534
547
|
- lib/ruby_app/templates/application/spec/spec_helper.rb
|
|
535
548
|
- lib/ruby_app/templates/application/spec/support/shared.rb
|
|
536
549
|
- lib/ruby_app/templates/application/translations/en.yml
|
|
537
|
-
- lib/ruby_app/templates/page/_PAGE_DOWNCODE_.css.haml
|
|
538
|
-
- lib/ruby_app/templates/page/_PAGE_DOWNCODE_.html.haml
|
|
539
|
-
- lib/ruby_app/templates/page/_PAGE_DOWNCODE_.js.haml
|
|
540
|
-
- lib/ruby_app/templates/page/_PAGE_DOWNCODE_.rb
|
|
541
550
|
- lib/ruby_app/themes/mobile.rb
|
|
542
551
|
- lib/ruby_app/themes/mobile/base/base_page.html.haml
|
|
543
552
|
- lib/ruby_app/themes/mobile/calendars/month.css.haml
|
|
@@ -563,30 +572,11 @@ files:
|
|
|
563
572
|
- rakefile
|
|
564
573
|
- ruby_app.gemspec
|
|
565
574
|
- spec/application_spec.rb
|
|
566
|
-
- spec/
|
|
567
|
-
- spec/
|
|
568
|
-
- spec/elements/
|
|
569
|
-
- spec/elements/
|
|
570
|
-
- spec/language_spec.rb
|
|
571
|
-
- spec/log_spec.rb
|
|
572
|
-
- spec/mixins/configuration_mixin_spec.rb
|
|
573
|
-
- spec/mixins/delegate_mixin_spec.rb
|
|
574
|
-
- spec/mixins/hash_mixin_spec.rb
|
|
575
|
-
- spec/mixins/render_mixin_spec.rb
|
|
576
|
-
- spec/mixins/route_mixin_spec.rb
|
|
577
|
-
- spec/mixins/template_mixin_spec.rb
|
|
578
|
-
- spec/mixins/test_a.css.haml
|
|
579
|
-
- spec/mixins/test_a.html.haml
|
|
580
|
-
- spec/mixins/test_a.js.haml
|
|
581
|
-
- spec/mixins/test_b.css.haml
|
|
582
|
-
- spec/mixins/test_b.html.haml
|
|
583
|
-
- spec/mixins/test_b.js.haml
|
|
584
|
-
- spec/mixins/test_c.css.haml
|
|
585
|
-
- spec/mixins/test_c.html.haml
|
|
586
|
-
- spec/mixins/test_c.js.haml
|
|
587
|
-
- spec/mixins/translate_mixin_spec.rb
|
|
575
|
+
- spec/elements/base_element.html.haml
|
|
576
|
+
- spec/elements/container_element.html.haml
|
|
577
|
+
- spec/elements/derived_element.html.haml
|
|
578
|
+
- spec/elements/element_spec.rb
|
|
588
579
|
- spec/request_spec.rb
|
|
589
|
-
- spec/session_spec.rb
|
|
590
580
|
- spec/spec_helper.rb
|
|
591
581
|
- spec/support/shared.rb
|
|
592
582
|
homepage: ""
|
|
@@ -618,7 +608,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
618
608
|
requirements: []
|
|
619
609
|
|
|
620
610
|
rubyforge_project:
|
|
621
|
-
rubygems_version: 1.8.
|
|
611
|
+
rubygems_version: 1.8.13
|
|
622
612
|
signing_key:
|
|
623
613
|
specification_version: 3
|
|
624
614
|
summary: A web application framework in Ruby
|
|
@@ -631,34 +621,14 @@ test_files:
|
|
|
631
621
|
- features/elements/list.feature
|
|
632
622
|
- features/elements/markdown.feature
|
|
633
623
|
- features/elements/page.feature
|
|
634
|
-
- features/elements/pages/quit_page.feature
|
|
635
624
|
- features/step_definitions/default_macros.rb
|
|
636
625
|
- features/step_definitions/default_steps.rb
|
|
637
626
|
- features/support/env.rb
|
|
638
627
|
- spec/application_spec.rb
|
|
639
|
-
- spec/
|
|
640
|
-
- spec/
|
|
641
|
-
- spec/elements/
|
|
642
|
-
- spec/elements/
|
|
643
|
-
- spec/language_spec.rb
|
|
644
|
-
- spec/log_spec.rb
|
|
645
|
-
- spec/mixins/configuration_mixin_spec.rb
|
|
646
|
-
- spec/mixins/delegate_mixin_spec.rb
|
|
647
|
-
- spec/mixins/hash_mixin_spec.rb
|
|
648
|
-
- spec/mixins/render_mixin_spec.rb
|
|
649
|
-
- spec/mixins/route_mixin_spec.rb
|
|
650
|
-
- spec/mixins/template_mixin_spec.rb
|
|
651
|
-
- spec/mixins/test_a.css.haml
|
|
652
|
-
- spec/mixins/test_a.html.haml
|
|
653
|
-
- spec/mixins/test_a.js.haml
|
|
654
|
-
- spec/mixins/test_b.css.haml
|
|
655
|
-
- spec/mixins/test_b.html.haml
|
|
656
|
-
- spec/mixins/test_b.js.haml
|
|
657
|
-
- spec/mixins/test_c.css.haml
|
|
658
|
-
- spec/mixins/test_c.html.haml
|
|
659
|
-
- spec/mixins/test_c.js.haml
|
|
660
|
-
- spec/mixins/translate_mixin_spec.rb
|
|
628
|
+
- spec/elements/base_element.html.haml
|
|
629
|
+
- spec/elements/container_element.html.haml
|
|
630
|
+
- spec/elements/derived_element.html.haml
|
|
631
|
+
- spec/elements/element_spec.rb
|
|
661
632
|
- spec/request_spec.rb
|
|
662
|
-
- spec/session_spec.rb
|
|
663
633
|
- spec/spec_helper.rb
|
|
664
634
|
- spec/support/shared.rb
|