restrack 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +114 -44
- data/bin/restrack +17 -8
- data/lib/restrack/generator/descendant_controller.rb.erb +35 -0
- data/lib/restrack/generator.rb +24 -5
- data/lib/restrack/resource_controller.rb +113 -112
- data/lib/restrack/resource_request.rb +76 -64
- data/lib/restrack/support.rb +12 -7
- data/lib/restrack/version.rb +1 -1
- data/lib/restrack/web_service.rb +1 -3
- data/restrack.gemspec +4 -1
- data/test/sample_app_1/controllers/bata_controller.rb +13 -0
- data/test/sample_app_1/controllers/foo_bar_controller.rb +35 -4
- data/test/sample_app_1/test/test_controller_actions.rb +23 -0
- data/test/sample_app_1/test/test_controller_inputs.rb +41 -0
- data/test/sample_app_1/test/test_controller_modifiers.rb +108 -23
- data/test/sample_app_1/test/test_formats.rb +65 -62
- data/test/sample_app_1/test/test_resource_request.rb +0 -16
- data/test/sample_app_2/controllers/bazu_controller.rb +2 -0
- data/test/sample_app_2/controllers/foo_bar_controller.rb +4 -4
- data/test/sample_app_2/test/test_controller_modifiers.rb +19 -19
- data/test/sample_app_3/controllers/foo_bar_controller.rb +3 -3
- data/test/sample_app_4/controllers/foo_controller.rb +2 -2
- data/test/sample_app_4/test/test_controller_modifiers.rb +1 -1
- data/test/sample_app_4/test/test_formats.rb +4 -2
- metadata +57 -21
@@ -30,7 +30,7 @@ class SampleApp::TestFormats < Test::Unit::TestCase
|
|
30
30
|
assert_nothing_raised do
|
31
31
|
output = @ws.call(env)
|
32
32
|
end
|
33
|
-
test_val =
|
33
|
+
test_val = XmlSimple.xml_out([1,2,3,4,5,6,7], 'AttrPrefix' => true, 'XmlDeclaration' => true)
|
34
34
|
assert_equal test_val, output[2]
|
35
35
|
|
36
36
|
env = Rack::MockRequest.env_for('/foo_bar.xml', {
|
@@ -40,7 +40,7 @@ class SampleApp::TestFormats < Test::Unit::TestCase
|
|
40
40
|
assert_nothing_raised do
|
41
41
|
output = @ws.call(env)
|
42
42
|
end
|
43
|
-
test_val = XmlSimple.xml_out([1,2,3,4,5,6,7])
|
43
|
+
test_val = XmlSimple.xml_out([1,2,3,4,5,6,7], 'AttrPrefix' => true, 'XmlDeclaration' => true)
|
44
44
|
assert_equal test_val, output[2]
|
45
45
|
end
|
46
46
|
|
@@ -55,65 +55,68 @@ class SampleApp::TestFormats < Test::Unit::TestCase
|
|
55
55
|
test_val = { :foo => 'bar', :baz => 123 }.to_json
|
56
56
|
assert_equal test_val, output[2]
|
57
57
|
end
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
58
|
+
|
59
|
+
def test_complex_data_structure_json
|
60
|
+
env = Rack::MockRequest.env_for('/foo_bar/1234567890', {
|
61
|
+
:method => 'GET'
|
62
|
+
})
|
63
|
+
output = ''
|
64
|
+
assert_nothing_raised do
|
65
|
+
output = @ws.call(env)
|
66
|
+
end
|
67
|
+
test_val = "{\"foo\":\"abc\",\"bar\":\"123\",\"baz\":456,\"more\":{\"one\":1,\"two\":[1,2],\"three\":\"deep_fu\"}}"
|
68
|
+
assert_equal test_val, output[2]
|
69
|
+
|
70
|
+
env = Rack::MockRequest.env_for('/foo_bar/42', {
|
71
|
+
:method => 'GET'
|
72
|
+
})
|
73
|
+
output = ''
|
74
|
+
assert_nothing_raised do
|
75
|
+
output = @ws.call(env)
|
76
|
+
end
|
77
|
+
test_val = {
|
78
|
+
:foo => 'abc',
|
79
|
+
:bar => 123,
|
80
|
+
:baz => {
|
81
|
+
'one' => [1],
|
82
|
+
'two' => ['1','2'],
|
83
|
+
'three' => ['1', 2, {:three => 3}],
|
84
|
+
4 => :four
|
85
|
+
}
|
86
|
+
}.to_json
|
87
|
+
assert_equal test_val, output[2]
|
88
|
+
end
|
89
|
+
|
90
|
+
def test_complex_data_structure_xml
|
91
|
+
skip
|
92
|
+
env = Rack::MockRequest.env_for('/foo_bar/1234567890.xml', {
|
93
|
+
:method => 'GET'
|
94
|
+
})
|
95
|
+
output = ''
|
96
|
+
assert_nothing_raised do
|
97
|
+
output = @ws.call(env)
|
98
|
+
end
|
99
|
+
test_val = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><data><foo>abc</foo><baz>456</baz><bar>123</bar><more><two></data>"
|
100
|
+
assert_equal test_val, output[2]
|
101
|
+
|
102
|
+
env = Rack::MockRequest.env_for('/foo_bar/42.xml', {
|
103
|
+
:method => 'GET'
|
104
|
+
})
|
105
|
+
output = ''
|
106
|
+
assert_nothing_raised do
|
107
|
+
output = @ws.call(env)
|
108
|
+
end
|
109
|
+
test_val = {
|
110
|
+
:foo => 'abc',
|
111
|
+
:bar => 123,
|
112
|
+
:baz => {
|
113
|
+
'one' => [1],
|
114
|
+
'two' => ['1','2'],
|
115
|
+
'three' => ['1', 2, {:three => 3}],
|
116
|
+
4 => :four
|
117
|
+
}
|
118
|
+
}
|
119
|
+
assert_equal test_val, output[2]
|
120
|
+
end
|
118
121
|
|
119
122
|
end
|
@@ -9,22 +9,6 @@ class SampleApp::TestResourceRequest < Test::Unit::TestCase
|
|
9
9
|
@ws = SampleApp::WebService.new # init logs
|
10
10
|
end
|
11
11
|
|
12
|
-
def test_locate
|
13
|
-
env = Rack::MockRequest.env_for('/foo_bar', {
|
14
|
-
:method => 'POST',
|
15
|
-
:params => %Q|[
|
16
|
-
{
|
17
|
-
"bar": ""
|
18
|
-
}
|
19
|
-
]|
|
20
|
-
})
|
21
|
-
request = Rack::Request.new(env)
|
22
|
-
assert_nothing_raised do
|
23
|
-
resource_request = RESTRack::ResourceRequest.new(:request => request)
|
24
|
-
resource_request.locate
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
12
|
def test_initialize
|
29
13
|
env = Rack::MockRequest.env_for('/foo_bar', {
|
30
14
|
:method => 'POST',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class SampleApp::FooBarController < RESTRack::ResourceController
|
2
2
|
|
3
|
-
|
3
|
+
has_relationship_to( :baz ) do |id|
|
4
4
|
if id =='144'
|
5
5
|
output = '777'
|
6
6
|
else
|
@@ -9,7 +9,7 @@ class SampleApp::FooBarController < RESTRack::ResourceController
|
|
9
9
|
output # You can't "return" from a Proc! It will do a "return" in the outer method. Remember a "Proc" is not a Method.
|
10
10
|
end
|
11
11
|
|
12
|
-
|
12
|
+
has_relationship_to( :bat, :as => :slugger ) do |id|
|
13
13
|
if id =='144'
|
14
14
|
output = '777'
|
15
15
|
else
|
@@ -18,8 +18,8 @@ class SampleApp::FooBarController < RESTRack::ResourceController
|
|
18
18
|
output # You can't "return" from a Proc! It will do a "return" in the outer method. Remember a "Proc" is not a Method.
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
[1,2,3,4,5,6,7,8,9]
|
21
|
+
has_relationships_to( :baza, :as => :children ) do |id|
|
22
|
+
[0,1,2,3,4,5,6,7,8,9]
|
23
23
|
end
|
24
24
|
|
25
25
|
has_mapped_relationships_to( :bazu, :as => :maps ) do |id|
|
@@ -9,8 +9,8 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
9
9
|
def setup
|
10
10
|
@ws = SampleApp::WebService.new
|
11
11
|
end
|
12
|
-
|
13
|
-
def
|
12
|
+
|
13
|
+
def test_has_relationship_to
|
14
14
|
env = Rack::MockRequest.env_for('/foo_bar/144/baz', {
|
15
15
|
:method => 'GET'
|
16
16
|
})
|
@@ -18,9 +18,9 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
18
18
|
assert_nothing_raised do
|
19
19
|
output = @ws.call(env)
|
20
20
|
end
|
21
|
-
test_val = { :BAZ => '
|
21
|
+
test_val = { :BAZ => 'ALOHA!' }.to_json
|
22
22
|
assert_equal test_val, output[2]
|
23
|
-
|
23
|
+
|
24
24
|
env = Rack::MockRequest.env_for('/foo_bar/133/baz', {
|
25
25
|
:method => 'GET'
|
26
26
|
})
|
@@ -30,7 +30,7 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
30
30
|
end
|
31
31
|
test_val = { :OTHER => 'YUP' }.to_json
|
32
32
|
assert_equal test_val, output[2]
|
33
|
-
|
33
|
+
|
34
34
|
env = Rack::MockRequest.env_for('/foo_bar/144/baz/', {
|
35
35
|
:method => 'GET'
|
36
36
|
})
|
@@ -38,11 +38,11 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
38
38
|
assert_nothing_raised do
|
39
39
|
output = @ws.call(env)
|
40
40
|
end
|
41
|
-
test_val = { :BAZ => '
|
41
|
+
test_val = { :BAZ => 'ALOHA!' }.to_json
|
42
42
|
assert_equal test_val, output[2]
|
43
43
|
end
|
44
|
-
|
45
|
-
def
|
44
|
+
|
45
|
+
def test_has_relationships_to
|
46
46
|
env = Rack::MockRequest.env_for('/foo_bar/133/children/1', {
|
47
47
|
:method => 'GET'
|
48
48
|
})
|
@@ -52,7 +52,7 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
52
52
|
end
|
53
53
|
test_val = { :BAZA => 'YESSIR' }.to_json
|
54
54
|
assert_equal test_val, output[2]
|
55
|
-
|
55
|
+
|
56
56
|
env = Rack::MockRequest.env_for('/foo_bar/133/children/8', {
|
57
57
|
:method => 'GET'
|
58
58
|
})
|
@@ -62,7 +62,7 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
62
62
|
end
|
63
63
|
test_val = { :NOWAY => 'JOSE' }.to_json
|
64
64
|
assert_equal test_val, output[2]
|
65
|
-
|
65
|
+
|
66
66
|
env = Rack::MockRequest.env_for('/foo_bar/133/children/11', {
|
67
67
|
:method => 'GET'
|
68
68
|
})
|
@@ -72,7 +72,7 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
72
72
|
end
|
73
73
|
assert_equal 404, output[0]
|
74
74
|
end
|
75
|
-
|
75
|
+
|
76
76
|
def test_has_mapped_relationships_to
|
77
77
|
env = Rack::MockRequest.env_for('/foo_bar/133/maps/first', {
|
78
78
|
:method => 'GET'
|
@@ -81,9 +81,9 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
81
81
|
assert_nothing_raised do
|
82
82
|
output = @ws.call(env)
|
83
83
|
end
|
84
|
-
test_val =
|
84
|
+
test_val = 1.to_json
|
85
85
|
assert_equal test_val, output[2]
|
86
|
-
|
86
|
+
|
87
87
|
env = Rack::MockRequest.env_for('/foo_bar/133/maps/second', {
|
88
88
|
:method => 'GET'
|
89
89
|
})
|
@@ -91,9 +91,9 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
91
91
|
assert_nothing_raised do
|
92
92
|
output = @ws.call(env)
|
93
93
|
end
|
94
|
-
test_val =
|
94
|
+
test_val = 0.to_json
|
95
95
|
assert_equal test_val, output[2]
|
96
|
-
|
96
|
+
|
97
97
|
env = Rack::MockRequest.env_for('/foo_bar/133/maps/third', {
|
98
98
|
:method => 'GET'
|
99
99
|
})
|
@@ -101,20 +101,20 @@ class SampleApp::TestControllerModifiers < Test::Unit::TestCase
|
|
101
101
|
assert_nothing_raised do
|
102
102
|
output = @ws.call(env)
|
103
103
|
end
|
104
|
-
test_val =
|
104
|
+
test_val = 0.to_json
|
105
105
|
assert_equal test_val, output[2]
|
106
106
|
end
|
107
|
-
|
107
|
+
|
108
108
|
def test_keyed_with_type
|
109
109
|
# baza controller exercises this option
|
110
|
-
env = Rack::MockRequest.env_for('/
|
110
|
+
env = Rack::MockRequest.env_for('/bazu/1', {
|
111
111
|
:method => 'GET'
|
112
112
|
})
|
113
113
|
output = ''
|
114
114
|
assert_nothing_raised do
|
115
115
|
output = @ws.call(env)
|
116
116
|
end
|
117
|
-
test_val =
|
117
|
+
test_val = 1.to_json
|
118
118
|
assert_equal test_val, output[2]
|
119
119
|
end
|
120
120
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class SampleApp::FooBarController < RESTRack::ResourceController
|
2
2
|
|
3
|
-
|
3
|
+
has_relationship_to( :baz, :as => :baz ) do |id|
|
4
4
|
if id =='144'
|
5
5
|
output = '777'
|
6
6
|
else
|
@@ -9,7 +9,7 @@ class SampleApp::FooBarController < RESTRack::ResourceController
|
|
9
9
|
output # You can't "return" from a Proc! It will do a "return" in the outer method. Remember a "Proc" is not a Method.
|
10
10
|
end
|
11
11
|
|
12
|
-
|
12
|
+
has_relationship_to( :bat, :as => :slugger ) do |id|
|
13
13
|
if id =='144'
|
14
14
|
output = '777'
|
15
15
|
else
|
@@ -18,7 +18,7 @@ class SampleApp::FooBarController < RESTRack::ResourceController
|
|
18
18
|
output # You can't "return" from a Proc! It will do a "return" in the outer method. Remember a "Proc" is not a Method.
|
19
19
|
end
|
20
20
|
|
21
|
-
|
21
|
+
has_relationships_to( :baza, :as => :children ) do |id|
|
22
22
|
[1,2,3,4,5,6,7,8,9]
|
23
23
|
end
|
24
24
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class SampleApp::FooController < RESTRack::ResourceController
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
pass_through_to( :bar )
|
4
|
+
pass_through_to( :baz, :as => :bazzz )
|
5
5
|
|
6
6
|
def show_yaml(id)
|
7
7
|
@resource_request.mime_type = RESTRack.mime_type_for('yaml')
|
@@ -10,7 +10,6 @@ class SampleApp::TestFormats < Test::Unit::TestCase
|
|
10
10
|
@ws = SampleApp::WebService.new
|
11
11
|
end
|
12
12
|
|
13
|
-
# Test YAML, text, and an image format
|
14
13
|
def test_yaml
|
15
14
|
env = Rack::MockRequest.env_for('/foo/123/show_yaml', {
|
16
15
|
:method => 'GET'
|
@@ -19,6 +18,7 @@ class SampleApp::TestFormats < Test::Unit::TestCase
|
|
19
18
|
assert_nothing_raised do
|
20
19
|
output = @ws.call(env)
|
21
20
|
end
|
21
|
+
assert_equal 'text/x-yaml', output[1]['Content-Type']
|
22
22
|
test_val = YAML.dump( { :foo => '123', :baz => 'bat' } )
|
23
23
|
assert_equal test_val, output[2]
|
24
24
|
end
|
@@ -31,6 +31,7 @@ class SampleApp::TestFormats < Test::Unit::TestCase
|
|
31
31
|
assert_nothing_raised do
|
32
32
|
output = @ws.call(env)
|
33
33
|
end
|
34
|
+
assert_equal 'text/plain', output[1]['Content-Type']
|
34
35
|
test_val = 'Hello 123!'
|
35
36
|
assert_equal test_val, output[2]
|
36
37
|
end
|
@@ -43,7 +44,8 @@ class SampleApp::TestFormats < Test::Unit::TestCase
|
|
43
44
|
assert_nothing_raised do
|
44
45
|
output = @ws.call(env)
|
45
46
|
end
|
46
|
-
assert_equal output[
|
47
|
+
assert_equal 'image/png', output[1]['Content-Type']
|
48
|
+
assert output[2].length
|
47
49
|
end
|
48
50
|
|
49
51
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restrack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 21
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 6
|
9
|
+
version: 0.0.6
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Chris St. John
|
@@ -15,81 +14,115 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-02-05 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
21
|
+
name: rack
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
version: "0"
|
33
31
|
type: :runtime
|
34
32
|
version_requirements: *id001
|
35
33
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
34
|
+
name: rack-test
|
37
35
|
prerelease: false
|
38
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
37
|
none: false
|
40
38
|
requirements:
|
41
39
|
- - ">="
|
42
40
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 13
|
44
41
|
segments:
|
45
|
-
- 1
|
46
42
|
- 0
|
47
|
-
|
48
|
-
version: 1.0.13
|
43
|
+
version: "0"
|
49
44
|
type: :runtime
|
50
45
|
version_requirements: *id002
|
51
46
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
47
|
+
name: i18n
|
53
48
|
prerelease: false
|
54
49
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
50
|
none: false
|
56
51
|
requirements:
|
57
52
|
- - ">="
|
58
53
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 3
|
60
54
|
segments:
|
61
55
|
- 0
|
62
56
|
version: "0"
|
63
57
|
type: :runtime
|
64
58
|
version_requirements: *id003
|
65
59
|
- !ruby/object:Gem::Dependency
|
66
|
-
name:
|
60
|
+
name: json
|
67
61
|
prerelease: false
|
68
62
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
63
|
none: false
|
70
64
|
requirements:
|
71
65
|
- - ">="
|
72
66
|
- !ruby/object:Gem::Version
|
73
|
-
hash: 3
|
74
67
|
segments:
|
75
68
|
- 0
|
76
69
|
version: "0"
|
77
70
|
type: :runtime
|
78
71
|
version_requirements: *id004
|
79
72
|
- !ruby/object:Gem::Dependency
|
80
|
-
name:
|
73
|
+
name: xml-simple
|
81
74
|
prerelease: false
|
82
75
|
requirement: &id005 !ruby/object:Gem::Requirement
|
83
76
|
none: false
|
84
77
|
requirements:
|
85
78
|
- - ">="
|
86
79
|
- !ruby/object:Gem::Version
|
87
|
-
hash: 3
|
88
80
|
segments:
|
81
|
+
- 1
|
89
82
|
- 0
|
90
|
-
|
83
|
+
- 13
|
84
|
+
version: 1.0.13
|
91
85
|
type: :runtime
|
92
86
|
version_requirements: *id005
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: builder
|
89
|
+
prerelease: false
|
90
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
version: "0"
|
98
|
+
type: :runtime
|
99
|
+
version_requirements: *id006
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: activesupport
|
102
|
+
prerelease: false
|
103
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
version: "0"
|
111
|
+
type: :runtime
|
112
|
+
version_requirements: *id007
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: mime-types
|
115
|
+
prerelease: false
|
116
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
version: "0"
|
124
|
+
type: :runtime
|
125
|
+
version_requirements: *id008
|
93
126
|
description: |-
|
94
127
|
RESTRack is a Rack based MVC framework that makes it extremely easy to
|
95
128
|
develop RESTful data services. It is inspired by Rails, and follows a few of
|
@@ -123,6 +156,7 @@ files:
|
|
123
156
|
- lib/restrack/generator/config.ru.erb
|
124
157
|
- lib/restrack/generator/constants.yaml.erb
|
125
158
|
- lib/restrack/generator/controller.rb.erb
|
159
|
+
- lib/restrack/generator/descendant_controller.rb.erb
|
126
160
|
- lib/restrack/generator/loader.rb.erb
|
127
161
|
- lib/restrack/http_status.rb
|
128
162
|
- lib/restrack/resource_controller.rb
|
@@ -133,12 +167,14 @@ files:
|
|
133
167
|
- restrack.gemspec
|
134
168
|
- test/sample_app_1/config/constants.yaml
|
135
169
|
- test/sample_app_1/controllers/bat_controller.rb
|
170
|
+
- test/sample_app_1/controllers/bata_controller.rb
|
136
171
|
- test/sample_app_1/controllers/baz_controller.rb
|
137
172
|
- test/sample_app_1/controllers/baza_controller.rb
|
138
173
|
- test/sample_app_1/controllers/bazu_controller.rb
|
139
174
|
- test/sample_app_1/controllers/foo_bar_controller.rb
|
140
175
|
- test/sample_app_1/loader.rb
|
141
176
|
- test/sample_app_1/test/test_controller_actions.rb
|
177
|
+
- test/sample_app_1/test/test_controller_inputs.rb
|
142
178
|
- test/sample_app_1/test/test_controller_modifiers.rb
|
143
179
|
- test/sample_app_1/test/test_formats.rb
|
144
180
|
- test/sample_app_1/test/test_resource_request.rb
|
@@ -174,7 +210,7 @@ files:
|
|
174
210
|
- test/test_support.rb
|
175
211
|
- test/test_web_service.rb
|
176
212
|
has_rdoc: true
|
177
|
-
homepage: http://github.com/stjohncj
|
213
|
+
homepage: http://github.com/stjohncj/RESTRack
|
178
214
|
licenses: []
|
179
215
|
|
180
216
|
post_install_message:
|
@@ -187,7 +223,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
223
|
requirements:
|
188
224
|
- - ">="
|
189
225
|
- !ruby/object:Gem::Version
|
190
|
-
hash: 3
|
191
226
|
segments:
|
192
227
|
- 0
|
193
228
|
version: "0"
|
@@ -196,7 +231,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
231
|
requirements:
|
197
232
|
- - ">="
|
198
233
|
- !ruby/object:Gem::Version
|
199
|
-
hash: 3
|
200
234
|
segments:
|
201
235
|
- 0
|
202
236
|
version: "0"
|
@@ -210,12 +244,14 @@ summary: A lightweight MVC framework developed specifically for JSON and XML RES
|
|
210
244
|
test_files:
|
211
245
|
- test/sample_app_1/config/constants.yaml
|
212
246
|
- test/sample_app_1/controllers/bat_controller.rb
|
247
|
+
- test/sample_app_1/controllers/bata_controller.rb
|
213
248
|
- test/sample_app_1/controllers/baz_controller.rb
|
214
249
|
- test/sample_app_1/controllers/baza_controller.rb
|
215
250
|
- test/sample_app_1/controllers/bazu_controller.rb
|
216
251
|
- test/sample_app_1/controllers/foo_bar_controller.rb
|
217
252
|
- test/sample_app_1/loader.rb
|
218
253
|
- test/sample_app_1/test/test_controller_actions.rb
|
254
|
+
- test/sample_app_1/test/test_controller_inputs.rb
|
219
255
|
- test/sample_app_1/test/test_controller_modifiers.rb
|
220
256
|
- test/sample_app_1/test/test_formats.rb
|
221
257
|
- test/sample_app_1/test/test_resource_request.rb
|