alfa 0.0.4.pre → 0.0.5.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/assets/js/jquery/jquery-1.11.0.js +10337 -0
- data/assets/js/jquery/jquery-1.11.0.min.js +4 -0
- data/assets/js/jquery/jquery-latest.js +4 -2
- data/dummy/project/Gemfile.source +6 -0
- data/dummy/project/Rakefile +5 -0
- data/dummy/project/apps/admin/controllers/default.rb +4 -0
- data/dummy/project/apps/admin/layouts/base.tpl +14 -0
- data/dummy/project/apps/admin/layouts/index.tpl.source +5 -0
- data/dummy/project/apps/admin/routes.rb +3 -0
- data/dummy/project/apps/admin/templates/default/index.tpl +1 -0
- data/dummy/project/apps/frontend/controllers/default.rb +5 -0
- data/dummy/project/apps/frontend/layouts/base.tpl +14 -0
- data/dummy/project/apps/frontend/layouts/index.tpl.source +5 -0
- data/dummy/project/apps/frontend/routes.rb +11 -0
- data/dummy/project/apps/frontend/templates/default/index.tpl +1 -0
- data/dummy/project/config/cli_application.rb +14 -0
- data/dummy/project/config/config.rb +11 -0
- data/dummy/project/config/db.rb +11 -0
- data/dummy/project/config/env.rb +6 -0
- data/dummy/project/config/groups.rb +17 -0
- data/dummy/project/config/passwords/db.sample.yml +8 -0
- data/dummy/project/config/routes.rb +4 -0
- data/dummy/project/config/setup_load_paths.rb +14 -0
- data/dummy/project/config/web_application.rb +15 -0
- data/dummy/project/config.ru +3 -0
- data/dummy/project/db/main/schema.yml +3 -0
- data/dummy/project/public/favicon.ico +0 -0
- data/dummy/project/public/robots.txt +1 -0
- data/lib/alfa/application.rb +6 -5
- data/lib/alfa/commands/new.rb +49 -4
- data/lib/alfa/controller.rb +118 -1
- data/lib/alfa/database/mysql.rb +1 -1
- data/lib/alfa/exceptions.rb +13 -0
- data/lib/alfa/logger.rb +3 -0
- data/lib/alfa/router.rb +25 -0
- data/lib/alfa/ruty.rb +10 -0
- data/lib/alfa/support.rb +39 -4
- data/lib/alfa/template-inheritance.rb +3 -0
- data/lib/alfa/user.rb +63 -0
- data/lib/alfa/web_application.rb +113 -39
- data/lib/haml/alfa_patch.rb +25 -0
- data/lib/rack/file_alfa.rb +11 -0
- data/lib/ruty/tags/href.rb +12 -0
- data/lib/ruty/upgrade.rb +1 -1
- data/lib/template-inheritance/alfa_bugfix.rb +15 -0
- data/lib/template-inheritance/alfa_helpers.rb +93 -0
- data/lib/tilt/alfa_patch.rb +25 -0
- data/test/data/test_web_application/apps/admin/controllers/default.rb +20 -0
- data/test/data/test_web_application/apps/admin/routes.rb +3 -0
- data/test/data/test_web_application/apps/frontend/controllers/default.rb +35 -0
- data/test/data/test_web_application/apps/frontend/routes.rb +2 -2
- data/test/data/test_web_application/config/routes.rb +1 -0
- data/test/test_controller.rb +30 -2
- data/test/test_router.rb +24 -0
- data/test/test_support.rb +72 -19
- data/test/test_web_application.rb +72 -5
- data/version.rb +1 -0
- metadata +143 -74
- data/test/data/test_web_application/apps/frontend/controllers/kfk.rb +0 -9
data/test/test_support.rb
CHANGED
@@ -6,15 +6,27 @@ class DB1 < Alfa::Database::MySQL; end
|
|
6
6
|
class DB2 < Alfa::Database::MySQL; end
|
7
7
|
|
8
8
|
class AlfaSupportTest < Test::Unit::TestCase
|
9
|
-
def
|
10
|
-
assert_equal('Foo', Alfa::Support.
|
11
|
-
assert_equal('Foo', Alfa::Support.
|
12
|
-
assert_equal('Foo', Alfa::Support.
|
13
|
-
assert_equal('Foo', Alfa::Support.
|
14
|
-
assert_equal('FooBar', Alfa::Support.
|
15
|
-
assert_equal('FooBar', Alfa::Support.
|
16
|
-
assert_equal('FooBar', Alfa::Support.
|
17
|
-
assert_equal('BarBaz', Alfa::Support.
|
9
|
+
def test_camelcase_name
|
10
|
+
assert_equal('Foo', Alfa::Support.camelcase_name(:foo))
|
11
|
+
assert_equal('Foo', Alfa::Support.camelcase_name('foo'))
|
12
|
+
assert_equal('Foo', Alfa::Support.camelcase_name('FOO'))
|
13
|
+
assert_equal('Foo', Alfa::Support.camelcase_name('Foo'))
|
14
|
+
assert_equal('FooBar', Alfa::Support.camelcase_name(:foo_bar))
|
15
|
+
assert_equal('FooBar', Alfa::Support.camelcase_name('foo_bar'))
|
16
|
+
assert_equal('FooBar', Alfa::Support.camelcase_name(:foo__bar))
|
17
|
+
assert_equal('BarBaz', Alfa::Support.camelcase_name('foo/bar_baz'))
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_underscore
|
21
|
+
assert_equal('foo', Alfa::Support.underscore_name('Foo'))
|
22
|
+
assert_equal('foo_bar', Alfa::Support.underscore_name('FooBar'))
|
23
|
+
assert_equal('a_b_bar', Alfa::Support.underscore_name('ABBar'))
|
24
|
+
assert_equal('foobar', Alfa::Support.underscore_name('foobar'))
|
25
|
+
assert_equal('foo_bar', Alfa::Support.underscore_name('Foo_Bar'))
|
26
|
+
assert_equal('foo_bar', Alfa::Support.underscore_name('Foo__Bar'))
|
27
|
+
assert_equal('foo_bar', Alfa::Support.underscore_name('foo_bar'))
|
28
|
+
assert_equal('foo_bar', Alfa::Support.underscore_name(:foo_bar))
|
29
|
+
assert_equal('bar_baz', Alfa::Support.underscore_name('Foo/Bar_Baz'))
|
18
30
|
end
|
19
31
|
|
20
32
|
def test_inheritance
|
@@ -24,15 +36,56 @@ class AlfaSupportTest < Test::Unit::TestCase
|
|
24
36
|
assert_equal('otherhost', DB2.host)
|
25
37
|
end
|
26
38
|
|
27
|
-
def
|
28
|
-
assert_equal([[], {}], Alfa::Support.
|
29
|
-
assert_equal([[1, 2], {}], Alfa::Support.
|
30
|
-
assert_equal([[1, 2], {3=>4}], Alfa::Support.
|
31
|
-
assert_equal([[1, 2], {3=>4}], Alfa::Support.
|
32
|
-
assert_equal([[], {3=>4}], Alfa::Support.
|
33
|
-
assert_equal([[1, 2], {3=>4, 5=>6}], Alfa::Support.
|
34
|
-
assert_equal([[], {3=>4, 5=>6}], Alfa::Support.
|
35
|
-
assert_equal([[[]], {}], Alfa::Support.
|
36
|
-
assert_equal([[], {}], Alfa::Support.
|
39
|
+
def test_args_kwargs
|
40
|
+
assert_equal([[], {}], Alfa::Support.args_kwargs())
|
41
|
+
assert_equal([[1, 2], {}], Alfa::Support.args_kwargs(1, 2))
|
42
|
+
assert_equal([[1, 2], {3=>4}], Alfa::Support.args_kwargs(1, 2, 3=>4))
|
43
|
+
assert_equal([[1, 2], {3=>4}], Alfa::Support.args_kwargs(1, 2, {3=>4}))
|
44
|
+
assert_equal([[], {3=>4}], Alfa::Support.args_kwargs(3=>4))
|
45
|
+
assert_equal([[1, 2], {3=>4, 5=>6}], Alfa::Support.args_kwargs(1, 2, 3=>4, 5=>6))
|
46
|
+
assert_equal([[], {3=>4, 5=>6}], Alfa::Support.args_kwargs(3=>4, 5=>6))
|
47
|
+
assert_equal([[[]], {}], Alfa::Support.args_kwargs([]))
|
48
|
+
assert_equal([[], {}], Alfa::Support.args_kwargs({}))
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_string_strtr
|
52
|
+
s = "AA BB"
|
53
|
+
assert_equal("BB AA", s.strtr("AA" => "BB", "BB" => "AA"))
|
54
|
+
assert_equal("AA BB", s)
|
55
|
+
s = "AA BB"
|
56
|
+
assert_equal("BB AA", s.strtr([["AA", "BB"], ["BB", "AA"]]))
|
57
|
+
assert_equal("AA BB", s)
|
58
|
+
end
|
59
|
+
|
60
|
+
def test_string_strtr!
|
61
|
+
s = "AA BB"
|
62
|
+
assert_equal("BB AA", s.strtr!("AA" => "BB", "BB" => "AA"))
|
63
|
+
assert_equal("BB AA", s)
|
64
|
+
s = "AA BB"
|
65
|
+
assert_equal("BB AA", s.strtr!([["AA", "BB"], ["BB", "AA"]]))
|
66
|
+
assert_equal("BB AA", s)
|
67
|
+
end
|
68
|
+
|
69
|
+
def test_hash_delete!
|
70
|
+
h = {:a=>1, :b=>2}
|
71
|
+
h.delete!(:b)
|
72
|
+
assert_equal({:a=>1}, h)
|
73
|
+
h = {:a=>1, :b=>2, :c=>3}
|
74
|
+
h.delete!(:b, :c)
|
75
|
+
assert_equal({:a=>1}, h)
|
76
|
+
h = {:a=>1, :b=>2, :c=>3}
|
77
|
+
h.delete!(:b)
|
78
|
+
assert_equal({:a=>1, :c=>3}, h)
|
79
|
+
end
|
80
|
+
|
81
|
+
def test_hash_except
|
82
|
+
h = {:a=>1, :b=>2}
|
83
|
+
assert_equal({:a=>1}, h.except(:b))
|
84
|
+
assert_equal({:a=>1, :b=>2}, h)
|
85
|
+
h = {:a=>1, :b=>2, :c=>3}
|
86
|
+
assert_equal({:a=>1}, h.except(:b, :c))
|
87
|
+
assert_equal({:a=>1, :b=>2, :c=>3}, h)
|
88
|
+
assert_equal({:a=>1, :c=>3}, h.except(:b))
|
89
|
+
assert_equal({:a=>1, :b=>2, :c=>3}, h)
|
37
90
|
end
|
38
91
|
end
|
@@ -10,15 +10,22 @@ class TestAlfaWebApplication < Test::Unit::TestCase
|
|
10
10
|
|
11
11
|
|
12
12
|
def test_02
|
13
|
-
|
14
|
-
assert_raise Alfa::Exceptions::E002, "
|
13
|
+
prepare_web_application
|
14
|
+
assert_raise Alfa::Exceptions::E002, "config[:document_root] should be defined" do
|
15
15
|
Alfa::WebApplication.config.delete(:document_root)
|
16
16
|
Alfa::WebApplication.init!
|
17
17
|
end
|
18
|
-
|
19
|
-
|
18
|
+
prepare_web_application
|
19
|
+
assert_raise Alfa::Exceptions::E002, "config[:templates_priority] should be defined" do
|
20
|
+
Alfa::WebApplication.config.delete(:templates_priority)
|
21
|
+
Alfa::WebApplication.init!
|
22
|
+
end
|
23
|
+
prepare_web_application
|
24
|
+
assert_raise Alfa::Exceptions::E001, "config[:groups] should be a hash" do
|
25
|
+
Alfa::WebApplication.config.delete(:groups)
|
20
26
|
Alfa::WebApplication.init!
|
21
27
|
end
|
28
|
+
prepare_web_application
|
22
29
|
assert_nothing_raised Exception do
|
23
30
|
Alfa::WebApplication.config[:document_root] = File.expand_path('../data/test_web_application/public', __FILE__)
|
24
31
|
Alfa::WebApplication.init!
|
@@ -26,10 +33,17 @@ class TestAlfaWebApplication < Test::Unit::TestCase
|
|
26
33
|
end
|
27
34
|
|
28
35
|
|
29
|
-
def
|
36
|
+
def prepare_web_application
|
30
37
|
Alfa::WebApplication.config[:project_root] = File.expand_path('../data/test_web_application', __FILE__)
|
31
38
|
Alfa::WebApplication.config[:document_root] = File.expand_path('../data/test_web_application/public', __FILE__)
|
39
|
+
Alfa::WebApplication.config[:templates_priority] = [:haml]
|
40
|
+
Alfa::WebApplication.config[:groups] = {public: []}
|
32
41
|
Alfa::WebApplication.init!
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
def test_03
|
46
|
+
prepare_web_application
|
33
47
|
#puts Alfa::Router.instance_variable_get(:@routes).inspect
|
34
48
|
assert_equal(200, Alfa::WebApplication.call({'PATH_INFO' => '/'})[0])
|
35
49
|
assert_equal(404, Alfa::WebApplication.call({'PATH_INFO' => '/404'})[0])
|
@@ -37,4 +51,57 @@ class TestAlfaWebApplication < Test::Unit::TestCase
|
|
37
51
|
assert_equal(404, Alfa::WebApplication.call({'PATH_INFO' => '/methods'})[0])
|
38
52
|
assert_equal(404, Alfa::WebApplication.call({'PATH_INFO' => '/inspect'})[0])
|
39
53
|
end
|
54
|
+
|
55
|
+
# Controllers isolation (admin/DefaultController, frontend/DefaultController):
|
56
|
+
# same name variables should be independent
|
57
|
+
def test_04
|
58
|
+
prepare_web_application
|
59
|
+
#puts Alfa::Router.instance_variable_get(:@routes).inspect
|
60
|
+
assert_equal("Frontend\n", Alfa::WebApplication.call({'PATH_INFO'=>'/test_04'})[2].join)
|
61
|
+
assert_equal("Admin\n", Alfa::WebApplication.call({'PATH_INFO'=>'/admin/test_04'})[2].join)
|
62
|
+
assert_equal("Frontend\n", Alfa::WebApplication.call({'PATH_INFO'=>'/test_04'})[2].join) # call controller after calling same name controller should not interleave controller variables
|
63
|
+
assert_equal("Admin\n", Alfa::WebApplication.call({'PATH_INFO'=>'/admin/test_04'})[2].join)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Controllers isolation (admin/DefaultController, frontend/DefaultController):
|
67
|
+
# action, defined in first controller and not defined in second controller should not be called with second controller
|
68
|
+
def test_05
|
69
|
+
prepare_web_application
|
70
|
+
assert_equal(200, Alfa::WebApplication.call({'PATH_INFO'=>'/frontend_only'})[0]) # defined in frontend/DefaultController
|
71
|
+
assert_equal(404, Alfa::WebApplication.call({'PATH_INFO'=>'/admin/frontend_only'})[0]) # not defined in admin/DefaultController
|
72
|
+
end
|
73
|
+
|
74
|
+
# Threads isolation (thread safe)
|
75
|
+
# Controller's variables should be set independently on simultaneous calls
|
76
|
+
def test_08
|
77
|
+
prepare_web_application
|
78
|
+
r1 = Alfa::WebApplication.call({'PATH_INFO'=>'/test_08'}) do |controller1, template1|
|
79
|
+
r2 = Alfa::WebApplication.call({'PATH_INFO'=>'/admin/test_08'}) do |controller2, template2|
|
80
|
+
assert_not_equal(controller1.hash, controller2.hash)
|
81
|
+
assert_not_equal(controller1.request.hash, controller2.request.hash)
|
82
|
+
assert_not_equal(controller1.session.hash, controller2.session.hash)
|
83
|
+
assert_equal(:bar, controller1.session[:foo])
|
84
|
+
assert_equal(:baz, controller2.session[:foo])
|
85
|
+
end
|
86
|
+
assert_equal("/admin/test_08\n/admin/test_08", r2[2].join.strip)
|
87
|
+
end
|
88
|
+
assert_equal("/test_08\n/test_08", r1[2].join.strip)
|
89
|
+
|
90
|
+
prepare_web_application
|
91
|
+
c1 = c2 = foo1 = foo2 = r1 = r2 = nil
|
92
|
+
r1 = Alfa::WebApplication.call({'PATH_INFO'=>'/test_08a'}) do |controller1, template1|
|
93
|
+
r2 = Alfa::WebApplication.call({'PATH_INFO'=>'/admin/test_08a'}) do |controller2, template2|
|
94
|
+
c1 = controller1
|
95
|
+
c2 = controller2
|
96
|
+
assert_not_equal(controller1.hash, controller2.hash)
|
97
|
+
assert_not_equal(controller1.request.hash, controller2.request.hash)
|
98
|
+
foo1 = controller1.session[:foo]
|
99
|
+
foo2 = controller2.session[:foo]
|
100
|
+
end
|
101
|
+
end
|
102
|
+
assert_equal(c2.hash.to_s, r2[2].join.strip)
|
103
|
+
assert_equal(c1.hash.to_s, r1[2].join.strip)
|
104
|
+
assert_equal(:far, foo1)
|
105
|
+
assert_equal(:faz, foo2)
|
106
|
+
end
|
40
107
|
end
|
data/version.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ALFA_VERSION = '0.0.5.pre'
|
metadata
CHANGED
@@ -1,68 +1,60 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.0.5.pre
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Valentin Syrovatskiy
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rvm
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.11'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.11'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '10.0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '10.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rack
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '1.4'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '1.4'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: ruty
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - '='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - '='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,83 +69,80 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: mysql2
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- - ~>
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0.3'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- - ~>
|
80
|
+
- - "~>"
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0.3'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: sequel
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- - ~>
|
87
|
+
- - "~>"
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '3.42'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- - ~>
|
94
|
+
- - "~>"
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '3.42'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rack-session-sequel
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.0.1
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.0.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: haml
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.0.5
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.0.5
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: template-inheritance
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.3.1
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.3.1
|
110
139
|
description: ''
|
111
140
|
email: vsyrovat@gmail.com
|
112
|
-
executables:
|
141
|
+
executables:
|
142
|
+
- alfa
|
113
143
|
extensions: []
|
114
144
|
extra_rdoc_files: []
|
115
145
|
files:
|
116
|
-
- lib/alfa/commands/new.rb
|
117
|
-
- lib/alfa/database/mysql.rb
|
118
|
-
- lib/alfa/models/base.rb
|
119
|
-
- lib/alfa/models/base_sql.rb
|
120
|
-
- lib/alfa/models/dummy.rb
|
121
|
-
- lib/alfa/models/mysql.rb
|
122
|
-
- lib/alfa/controller.rb
|
123
|
-
- lib/alfa/database.rb
|
124
|
-
- lib/alfa/models.rb
|
125
|
-
- lib/alfa/query_logger.rb
|
126
|
-
- lib/alfa/application.rb
|
127
|
-
- lib/alfa/cli_application.rb
|
128
|
-
- lib/alfa/config.rb
|
129
|
-
- lib/alfa/exceptions.rb
|
130
|
-
- lib/alfa/logger.rb
|
131
|
-
- lib/alfa/router.rb
|
132
|
-
- lib/alfa/support.rb
|
133
|
-
- lib/alfa/tasks.rb
|
134
|
-
- lib/alfa/tfile.rb
|
135
|
-
- lib/alfa/web_application.rb
|
136
|
-
- lib/ruty/tags/resources.rb
|
137
|
-
- lib/ruty/bugfix.rb
|
138
|
-
- lib/ruty/upgrade.rb
|
139
|
-
- lib/alfa.rb
|
140
|
-
- test/test_alfa.rb
|
141
|
-
- test/test_tfile.rb
|
142
|
-
- test/test_controller.rb
|
143
|
-
- test/test_logger.rb
|
144
|
-
- test/test_router.rb
|
145
|
-
- test/test_support.rb
|
146
|
-
- test/test_web_application.rb
|
147
|
-
- test/data/test_router/1/apps/backend/routes.rb
|
148
|
-
- test/data/test_router/1/apps/frontend/routes.rb
|
149
|
-
- test/data/test_router/1/config/routes.rb
|
150
|
-
- test/data/test_router/2/apps/backend/routes.rb
|
151
|
-
- test/data/test_router/2/apps/frontend/routes.rb
|
152
|
-
- test/data/test_router/2/config/routes.rb
|
153
|
-
- test/data/test_web_application/apps/frontend/controllers/kfk.rb
|
154
|
-
- test/data/test_web_application/apps/frontend/routes.rb
|
155
|
-
- test/data/test_web_application/config/routes.rb
|
156
|
-
- test/test_application.rb
|
157
|
-
- test/test_config.rb
|
158
146
|
- assets/css/960gs/960.css
|
159
147
|
- assets/css/960gs/960_12_col.css
|
160
148
|
- assets/css/960gs/960_12_col_rtl.css
|
@@ -180,6 +168,8 @@ files:
|
|
180
168
|
- assets/css/960gs/reset_rtl.css
|
181
169
|
- assets/css/960gs/text.css
|
182
170
|
- assets/css/960gs/text_rtl.css
|
171
|
+
- assets/js/jquery/jquery-1.11.0.js
|
172
|
+
- assets/js/jquery/jquery-1.11.0.min.js
|
183
173
|
- assets/js/jquery/jquery-1.3.2.js
|
184
174
|
- assets/js/jquery/jquery-1.3.2.min.js
|
185
175
|
- assets/js/jquery/jquery-1.4.2.js
|
@@ -365,28 +355,107 @@ files:
|
|
365
355
|
- assets/js/jquery/ui/themes/smoothness/jquery.ui.tabs.css
|
366
356
|
- assets/js/jquery/ui/themes/smoothness/jquery.ui.theme.css
|
367
357
|
- bin/alfa
|
358
|
+
- dummy/project/Gemfile.source
|
359
|
+
- dummy/project/Rakefile
|
360
|
+
- dummy/project/apps/admin/controllers/default.rb
|
361
|
+
- dummy/project/apps/admin/layouts/base.tpl
|
362
|
+
- dummy/project/apps/admin/layouts/index.tpl.source
|
363
|
+
- dummy/project/apps/admin/routes.rb
|
364
|
+
- dummy/project/apps/admin/templates/default/index.tpl
|
365
|
+
- dummy/project/apps/frontend/controllers/default.rb
|
366
|
+
- dummy/project/apps/frontend/layouts/base.tpl
|
367
|
+
- dummy/project/apps/frontend/layouts/index.tpl.source
|
368
|
+
- dummy/project/apps/frontend/routes.rb
|
369
|
+
- dummy/project/apps/frontend/templates/default/index.tpl
|
370
|
+
- dummy/project/config.ru
|
371
|
+
- dummy/project/config/cli_application.rb
|
372
|
+
- dummy/project/config/config.rb
|
373
|
+
- dummy/project/config/db.rb
|
374
|
+
- dummy/project/config/env.rb
|
375
|
+
- dummy/project/config/groups.rb
|
376
|
+
- dummy/project/config/passwords/db.sample.yml
|
377
|
+
- dummy/project/config/routes.rb
|
378
|
+
- dummy/project/config/setup_load_paths.rb
|
379
|
+
- dummy/project/config/web_application.rb
|
380
|
+
- dummy/project/db/main/schema.yml
|
381
|
+
- dummy/project/public/favicon.ico
|
382
|
+
- dummy/project/public/robots.txt
|
383
|
+
- lib/alfa.rb
|
384
|
+
- lib/alfa/application.rb
|
385
|
+
- lib/alfa/cli_application.rb
|
386
|
+
- lib/alfa/commands/new.rb
|
387
|
+
- lib/alfa/config.rb
|
388
|
+
- lib/alfa/controller.rb
|
389
|
+
- lib/alfa/database.rb
|
390
|
+
- lib/alfa/database/mysql.rb
|
391
|
+
- lib/alfa/exceptions.rb
|
392
|
+
- lib/alfa/logger.rb
|
393
|
+
- lib/alfa/models.rb
|
394
|
+
- lib/alfa/models/base.rb
|
395
|
+
- lib/alfa/models/base_sql.rb
|
396
|
+
- lib/alfa/models/dummy.rb
|
397
|
+
- lib/alfa/models/mysql.rb
|
398
|
+
- lib/alfa/query_logger.rb
|
399
|
+
- lib/alfa/router.rb
|
400
|
+
- lib/alfa/ruty.rb
|
401
|
+
- lib/alfa/support.rb
|
402
|
+
- lib/alfa/tasks.rb
|
403
|
+
- lib/alfa/template-inheritance.rb
|
404
|
+
- lib/alfa/tfile.rb
|
405
|
+
- lib/alfa/user.rb
|
406
|
+
- lib/alfa/web_application.rb
|
407
|
+
- lib/haml/alfa_patch.rb
|
408
|
+
- lib/rack/file_alfa.rb
|
409
|
+
- lib/ruty/bugfix.rb
|
410
|
+
- lib/ruty/tags/href.rb
|
411
|
+
- lib/ruty/tags/resources.rb
|
412
|
+
- lib/ruty/upgrade.rb
|
413
|
+
- lib/template-inheritance/alfa_bugfix.rb
|
414
|
+
- lib/template-inheritance/alfa_helpers.rb
|
415
|
+
- lib/tilt/alfa_patch.rb
|
416
|
+
- test/data/test_router/1/apps/backend/routes.rb
|
417
|
+
- test/data/test_router/1/apps/frontend/routes.rb
|
418
|
+
- test/data/test_router/1/config/routes.rb
|
419
|
+
- test/data/test_router/2/apps/backend/routes.rb
|
420
|
+
- test/data/test_router/2/apps/frontend/routes.rb
|
421
|
+
- test/data/test_router/2/config/routes.rb
|
422
|
+
- test/data/test_web_application/apps/admin/controllers/default.rb
|
423
|
+
- test/data/test_web_application/apps/admin/routes.rb
|
424
|
+
- test/data/test_web_application/apps/frontend/controllers/default.rb
|
425
|
+
- test/data/test_web_application/apps/frontend/routes.rb
|
426
|
+
- test/data/test_web_application/config/routes.rb
|
427
|
+
- test/test_alfa.rb
|
428
|
+
- test/test_application.rb
|
429
|
+
- test/test_config.rb
|
430
|
+
- test/test_controller.rb
|
431
|
+
- test/test_logger.rb
|
432
|
+
- test/test_router.rb
|
433
|
+
- test/test_support.rb
|
434
|
+
- test/test_tfile.rb
|
435
|
+
- test/test_web_application.rb
|
436
|
+
- version.rb
|
368
437
|
homepage:
|
369
438
|
licenses: []
|
439
|
+
metadata: {}
|
370
440
|
post_install_message:
|
371
441
|
rdoc_options: []
|
372
442
|
require_paths:
|
373
443
|
- lib
|
374
444
|
required_ruby_version: !ruby/object:Gem::Requirement
|
375
|
-
none: false
|
376
445
|
requirements:
|
377
|
-
- -
|
446
|
+
- - ">="
|
378
447
|
- !ruby/object:Gem::Version
|
379
448
|
version: '0'
|
380
449
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
381
|
-
none: false
|
382
450
|
requirements:
|
383
|
-
- -
|
451
|
+
- - ">"
|
384
452
|
- !ruby/object:Gem::Version
|
385
453
|
version: 1.3.1
|
386
454
|
requirements: []
|
387
455
|
rubyforge_project:
|
388
|
-
rubygems_version:
|
456
|
+
rubygems_version: 2.2.2
|
389
457
|
signing_key:
|
390
|
-
specification_version:
|
458
|
+
specification_version: 4
|
391
459
|
summary: Alfa CMF
|
392
460
|
test_files: []
|
461
|
+
has_rdoc:
|