kilt-cms 0.9.9 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/kilt/kilt_controller.rb +9 -1
- data/app/views/kilt/kilt/index.html.erb +2 -2
- data/test/dummy/log/development.log +127 -0
- data/test/dummy/tmp/data/meta_request/003765f8-4b38-44b7-8822-72479a017d38.json +1 -0
- data/test/dummy/tmp/data/meta_request/0e23b3df-2c21-4a5d-ba30-3065903ea540.json +1 -0
- data/test/dummy/tmp/data/meta_request/377c2c77-dc92-41b1-aaf7-2f0815ddfb78.json +1 -0
- data/test/dummy/tmp/data/meta_request/cc8d3113-dbe9-4a41-805a-7cd7d1bd617a.json +1 -0
- data/test/dummy/tmp/data/meta_request/dabe70dd-906d-495f-8df2-1e76d421c506.json +1 -0
- data/test/kilt/form_spec.rb +10 -5
- metadata +12 -12
- data/test/dummy/tmp/data/meta_request/6ae6b985-d0f8-4897-8738-e87849208a75.json +0 -1
- data/test/dummy/tmp/data/meta_request/c7514191-8930-4a30-8b07-4d18783fa3c7.json +0 -1
- data/test/dummy/tmp/data/meta_request/ec9358eb-e450-4c5e-b3d2-e1a16a46ff48.json +0 -1
- data/test/dummy/tmp/data/meta_request/eea1963d-51ee-4d2e-bb91-319e81ec65a3.json +0 -1
- data/test/dummy/tmp/data/meta_request/f90fd4b7-d354-497a-b3fa-7b0da6d323e5.json +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46741741808754690e9fcd5990f5160996f5eeac
|
4
|
+
data.tar.gz: 00454acf2fe1e534a9ff6a908fbf7c1d68e7342b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acb46776cf70e647f60d0d7a9f707e8ede0b132a34bf3018a385f8404695c618f536016c5cdb287b1b9f1ea75c4b09873a6fedce6b03da114314bb75705912a5
|
7
|
+
data.tar.gz: 38df801022219f7e6d64e8b3b9c7750f2830d1dbb2ab44215407338ec71161d48277f2921388d529da1606958546e30b08b88a4e12354cd62614bd39721cf8e4
|
@@ -7,7 +7,15 @@ module Kilt
|
|
7
7
|
|
8
8
|
# Show all the object types
|
9
9
|
def index
|
10
|
-
@types =
|
10
|
+
@types = {}
|
11
|
+
type_names = Kilt.types
|
12
|
+
type_names.each do |type|
|
13
|
+
if Kilt.send(type).name != nil
|
14
|
+
@types[type] = Kilt.send(type).name
|
15
|
+
else
|
16
|
+
@types[type] = type.pluralize.capitalize
|
17
|
+
end
|
18
|
+
end
|
11
19
|
end
|
12
20
|
|
13
21
|
# Show the list of items for a specific object type
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<h2>Dashboard</h2>
|
3
3
|
|
4
4
|
<ul class="object-list">
|
5
|
-
<% @types.each do |type| %>
|
6
|
-
<li><%= link_to
|
5
|
+
<% @types.each do |type, name| %>
|
6
|
+
<li><%= link_to name, list_path(type.pluralize) %></li>
|
7
7
|
<% end %>
|
8
8
|
</ul>
|
9
9
|
</div>
|
@@ -79872,3 +79872,130 @@ Started GET "/assets/kilt/kilt.js?body=1" for 127.0.0.1 at 2014-01-10 13:59:00 -
|
|
79872
79872
|
|
79873
79873
|
|
79874
79874
|
Started GET "/assets/kilt/application.js?body=1" for 127.0.0.1 at 2014-01-10 13:59:00 -0500
|
79875
|
+
|
79876
|
+
|
79877
|
+
Started GET "/" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79878
|
+
Processing by DummyController#index as HTML
|
79879
|
+
Rendered dummy/index.html.erb within layouts/application (3.5ms)
|
79880
|
+
Completed 200 OK in 75ms (Views: 73.0ms)
|
79881
|
+
|
79882
|
+
|
79883
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79884
|
+
|
79885
|
+
|
79886
|
+
Started GET "/assets/screen.css?body=1" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79887
|
+
|
79888
|
+
|
79889
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79890
|
+
|
79891
|
+
|
79892
|
+
Started GET "/assets/dummy.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79893
|
+
|
79894
|
+
|
79895
|
+
Started GET "/assets/html5shiv.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79896
|
+
|
79897
|
+
|
79898
|
+
Started GET "/assets/mediaqueries.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79899
|
+
|
79900
|
+
|
79901
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79902
|
+
|
79903
|
+
|
79904
|
+
Started GET "/favicon.ico" for 127.0.0.1 at 2014-01-20 17:47:35 -0500
|
79905
|
+
|
79906
|
+
ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
|
79907
|
+
actionpack (4.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
79908
|
+
actionpack (4.0.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
79909
|
+
railties (4.0.1) lib/rails/rack/logger.rb:38:in `call_app'
|
79910
|
+
railties (4.0.1) lib/rails/rack/logger.rb:20:in `block in call'
|
79911
|
+
activesupport (4.0.1) lib/active_support/tagged_logging.rb:67:in `block in tagged'
|
79912
|
+
activesupport (4.0.1) lib/active_support/tagged_logging.rb:25:in `tagged'
|
79913
|
+
activesupport (4.0.1) lib/active_support/tagged_logging.rb:67:in `tagged'
|
79914
|
+
railties (4.0.1) lib/rails/rack/logger.rb:20:in `call'
|
79915
|
+
actionpack (4.0.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
79916
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
79917
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
79918
|
+
activesupport (4.0.1) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
|
79919
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
79920
|
+
actionpack (4.0.1) lib/action_dispatch/middleware/static.rb:64:in `call'
|
79921
|
+
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
|
79922
|
+
railties (4.0.1) lib/rails/engine.rb:511:in `call'
|
79923
|
+
railties (4.0.1) lib/rails/application.rb:97:in `call'
|
79924
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
79925
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
79926
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
79927
|
+
/Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
79928
|
+
/Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
79929
|
+
/Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
79930
|
+
|
79931
|
+
|
79932
|
+
Rendered /Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.4ms)
|
79933
|
+
Rendered /Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
|
79934
|
+
Rendered /Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
|
79935
|
+
Rendered /Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (39.6ms)
|
79936
|
+
Rendered /Users/tim/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (79.9ms)
|
79937
|
+
|
79938
|
+
|
79939
|
+
Started GET "/admin" for 127.0.0.1 at 2014-01-20 17:47:37 -0500
|
79940
|
+
Processing by Kilt::KiltController#index as HTML
|
79941
|
+
Filter chain halted as :authorize rendered or redirected
|
79942
|
+
Completed 401 Unauthorized in 2ms
|
79943
|
+
|
79944
|
+
|
79945
|
+
Started GET "/admin" for 127.0.0.1 at 2014-01-20 17:47:38 -0500
|
79946
|
+
Processing by Kilt::KiltController#index as HTML
|
79947
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/kilt/index.html.erb within layouts/kilt/cms (1.4ms)
|
79948
|
+
Rendered /Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb (2.8ms)
|
79949
|
+
Completed 200 OK in 87ms (Views: 85.3ms)
|
79950
|
+
|
79951
|
+
|
79952
|
+
Started GET "/assets/kilt/application.css?body=1" for 127.0.0.1 at 2014-01-20 17:47:39 -0500
|
79953
|
+
|
79954
|
+
|
79955
|
+
Started GET "/assets/kilt/screen.css?body=1" for 127.0.0.1 at 2014-01-20 17:47:39 -0500
|
79956
|
+
|
79957
|
+
|
79958
|
+
Started GET "/assets/jquery.ui.core.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:39 -0500
|
79959
|
+
|
79960
|
+
|
79961
|
+
Started GET "/assets/jquery.ui.datepicker.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:39 -0500
|
79962
|
+
|
79963
|
+
|
79964
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:39 -0500
|
79965
|
+
|
79966
|
+
|
79967
|
+
Started GET "/assets/kilt/kilt.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:39 -0500
|
79968
|
+
|
79969
|
+
|
79970
|
+
Started GET "/assets/kilt/application.js?body=1" for 127.0.0.1 at 2014-01-20 17:47:39 -0500
|
79971
|
+
|
79972
|
+
|
79973
|
+
Started GET "/admin/bagpipes" for 127.0.0.1 at 2014-01-20 17:47:40 -0500
|
79974
|
+
Processing by Kilt::KiltController#list as HTML
|
79975
|
+
Parameters: {"types"=>"bagpipes"}
|
79976
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/kilt/list.html.erb within layouts/kilt/cms (4.1ms)
|
79977
|
+
Rendered /Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb (0.9ms)
|
79978
|
+
Completed 200 OK in 144ms (Views: 39.9ms)
|
79979
|
+
|
79980
|
+
|
79981
|
+
Started GET "/admin/bagpipe/new" for 127.0.0.1 at 2014-01-20 17:47:42 -0500
|
79982
|
+
Processing by Kilt::KiltController#new as HTML
|
79983
|
+
Parameters: {"types"=>"bagpipe"}
|
79984
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb (0.6ms)
|
79985
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/number.html.erb (0.6ms)
|
79986
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/longtext.html.erb (0.5ms)
|
79987
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/html.html.erb (0.5ms)
|
79988
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/datetime.html.erb (0.5ms)
|
79989
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/boolean.html.erb (0.8ms)
|
79990
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/select_one.html.erb (0.7ms)
|
79991
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/image.html.erb (1.3ms)
|
79992
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/vimeo.html.erb (1.5ms)
|
79993
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/youtube.html.erb (1.4ms)
|
79994
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/form/file.html.erb (1.0ms)
|
79995
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/kilt/_form.html.erb (45.4ms)
|
79996
|
+
Rendered /Users/tim/Sites/Kilt/app/views/kilt/kilt/new.html.erb within layouts/kilt/cms (47.4ms)
|
79997
|
+
Rendered /Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb (0.9ms)
|
79998
|
+
Completed 200 OK in 56ms (Views: 54.2ms)
|
79999
|
+
|
80000
|
+
|
80001
|
+
Started GET "/assets/kilt/ui-bg_flat_100_ffffff_40x100.png" for 127.0.0.1 at 2014-01-20 17:47:42 -0500
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.457},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/number.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.516},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/longtext.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.412},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/html.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.434},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/datetime.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.38699999999999996},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/boolean.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.642},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/select_one.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.629},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/image.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":1.1900000000000002},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/vimeo.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":1.38},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/youtube.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":1.304},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/file.html.erb","layout":null},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.882},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/_form.html.erb"},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":45.41},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/new.html.erb","layout":"layouts/kilt/cms"},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":47.363},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb"},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":0.834},{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"new","params":{"controller":"kilt/kilt","action":"new","types":"bagpipe"},"format":"html","method":"GET","path":"/admin/bagpipe/new","status":200,"view_runtime":54.242},"time":"2014-01-20T17:47:42-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:42-05:00","children":[],"duration":56.248}]
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"index","params":{"controller":"kilt/kilt","action":"index"},"format":"html","method":"GET","path":"/admin/","status":401,"view_runtime":null},"time":"2014-01-20T17:47:37-05:00","transaction_id":"2bced7def1aaf4f0e78c","end":"2014-01-20T17:47:37-05:00","children":[],"duration":1.6280000000000001}]
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/list.html.erb","layout":"layouts/kilt/cms"},"time":"2014-01-20T17:47:40-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:40-05:00","children":[],"duration":3.928},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb"},"time":"2014-01-20T17:47:40-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:40-05:00","children":[],"duration":0.858},{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"list","params":{"controller":"kilt/kilt","action":"list","types":"bagpipes"},"format":"html","method":"GET","path":"/admin/bagpipes","status":200,"view_runtime":39.9},"time":"2014-01-20T17:47:40-05:00","transaction_id":"aba8c7f242eab90191ef","end":"2014-01-20T17:47:40-05:00","children":[],"duration":143.49}]
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/index.html.erb","layout":"layouts/kilt/cms"},"time":"2014-01-20T17:47:38-05:00","transaction_id":"2bced7def1aaf4f0e78c","end":"2014-01-20T17:47:38-05:00","children":[],"duration":1.2930000000000001},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb"},"time":"2014-01-20T17:47:38-05:00","transaction_id":"2bced7def1aaf4f0e78c","end":"2014-01-20T17:47:38-05:00","children":[],"duration":2.6719999999999997},{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"index","params":{"controller":"kilt/kilt","action":"index"},"format":"html","method":"GET","path":"/admin/","status":200,"view_runtime":85.267},"time":"2014-01-20T17:47:38-05:00","transaction_id":"2bced7def1aaf4f0e78c","end":"2014-01-20T17:47:38-05:00","children":[],"duration":86.631}]
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/test/dummy/app/views/dummy/index.html.erb","layout":"layouts/application"},"time":"2014-01-20T17:47:35-05:00","transaction_id":"553717cfd50ec83531bb","end":"2014-01-20T17:47:35-05:00","children":[],"duration":2.2569999999999997},{"name":"process_action.action_controller","payload":{"controller":"DummyController","action":"index","params":{"controller":"dummy","action":"index"},"format":"html","method":"GET","path":"/","status":200,"view_runtime":73.01599999999999},"time":"2014-01-20T17:47:35-05:00","transaction_id":"553717cfd50ec83531bb","end":"2014-01-20T17:47:35-05:00","children":[],"duration":74.99}]
|
data/test/kilt/form_spec.rb
CHANGED
@@ -15,6 +15,7 @@ describe Kilt::Form do
|
|
15
15
|
object = Object.new
|
16
16
|
field_name = Object.new
|
17
17
|
index = Object.new
|
18
|
+
options = Object.new
|
18
19
|
|
19
20
|
action_view = Object.new
|
20
21
|
action_view.expects(:render)
|
@@ -22,7 +23,8 @@ describe Kilt::Form do
|
|
22
23
|
:locals => {
|
23
24
|
:object => object,
|
24
25
|
:field_name => field_name,
|
25
|
-
:index => index
|
26
|
+
:index => index,
|
27
|
+
:options => options
|
26
28
|
} )
|
27
29
|
.returns rendered_action_view
|
28
30
|
|
@@ -30,7 +32,7 @@ describe Kilt::Form do
|
|
30
32
|
.with(Kilt::Form::TEMPLATES_DIR)
|
31
33
|
.returns action_view
|
32
34
|
|
33
|
-
result = Kilt::Form.send(method.to_sym, object, field_name, index)
|
35
|
+
result = Kilt::Form.send(method.to_sym, object, field_name, index, options)
|
34
36
|
|
35
37
|
result.must_be_same_as rendered_action_view
|
36
38
|
|
@@ -47,6 +49,7 @@ describe Kilt::Form do
|
|
47
49
|
object = Object.new
|
48
50
|
field_name = Object.new
|
49
51
|
index = Object.new
|
52
|
+
options = Object.new
|
50
53
|
|
51
54
|
action_view = Object.new
|
52
55
|
action_view.expects(:render)
|
@@ -54,7 +57,8 @@ describe Kilt::Form do
|
|
54
57
|
:locals => {
|
55
58
|
:object => object,
|
56
59
|
:field_name => field_name,
|
57
|
-
:index => index
|
60
|
+
:index => index,
|
61
|
+
:options => options
|
58
62
|
} )
|
59
63
|
.raises 'error'
|
60
64
|
|
@@ -63,7 +67,8 @@ describe Kilt::Form do
|
|
63
67
|
:locals => {
|
64
68
|
:object => object,
|
65
69
|
:field_name => field_name,
|
66
|
-
:index => index
|
70
|
+
:index => index,
|
71
|
+
:options => options
|
67
72
|
} )
|
68
73
|
.returns rendered_action_view
|
69
74
|
|
@@ -71,7 +76,7 @@ describe Kilt::Form do
|
|
71
76
|
.with(Kilt::Form::TEMPLATES_DIR)
|
72
77
|
.returns action_view
|
73
78
|
|
74
|
-
result = Kilt::Form.send(method.to_sym, object, field_name, index)
|
79
|
+
result = Kilt::Form.send(method.to_sym, object, field_name, index, options)
|
75
80
|
|
76
81
|
result.must_be_same_as rendered_action_view
|
77
82
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kilt-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashe Avenue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -340,16 +340,16 @@ files:
|
|
340
340
|
- test/dummy/tmp/cache/assets/development/sprockets/ef7c8ce46dfc9e9087ce84dbdfdd0011
|
341
341
|
- test/dummy/tmp/cache/assets/development/sprockets/f3e1a8ba304f70dccefd77356c900ebc
|
342
342
|
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
343
|
+
- test/dummy/tmp/data/meta_request/003765f8-4b38-44b7-8822-72479a017d38.json
|
343
344
|
- test/dummy/tmp/data/meta_request/00a60dc6-5e3c-40cc-893b-acbbb57c1fd0.json
|
345
|
+
- test/dummy/tmp/data/meta_request/0e23b3df-2c21-4a5d-ba30-3065903ea540.json
|
346
|
+
- test/dummy/tmp/data/meta_request/377c2c77-dc92-41b1-aaf7-2f0815ddfb78.json
|
344
347
|
- test/dummy/tmp/data/meta_request/4aaba52a-91d2-4f45-94ae-cd8351f77834.json
|
345
348
|
- test/dummy/tmp/data/meta_request/653be5c9-b898-476d-84b9-1d25fec823fe.json
|
346
|
-
- test/dummy/tmp/data/meta_request/6ae6b985-d0f8-4897-8738-e87849208a75.json
|
347
349
|
- test/dummy/tmp/data/meta_request/76822564-9a24-4841-b1fa-a2652132142e.json
|
348
350
|
- test/dummy/tmp/data/meta_request/a03cb440-77fd-4aab-9a6c-af47e0168ef3.json
|
349
|
-
- test/dummy/tmp/data/meta_request/
|
350
|
-
- test/dummy/tmp/data/meta_request/
|
351
|
-
- test/dummy/tmp/data/meta_request/eea1963d-51ee-4d2e-bb91-319e81ec65a3.json
|
352
|
-
- test/dummy/tmp/data/meta_request/f90fd4b7-d354-497a-b3fa-7b0da6d323e5.json
|
351
|
+
- test/dummy/tmp/data/meta_request/cc8d3113-dbe9-4a41-805a-7cd7d1bd617a.json
|
352
|
+
- test/dummy/tmp/data/meta_request/dabe70dd-906d-495f-8df2-1e76d421c506.json
|
353
353
|
- test/kilt/form_spec.rb
|
354
354
|
- test/minitest_helper.rb
|
355
355
|
homepage: http://community.asheavenue.com
|
@@ -469,15 +469,15 @@ test_files:
|
|
469
469
|
- test/dummy/tmp/cache/assets/development/sprockets/ef7c8ce46dfc9e9087ce84dbdfdd0011
|
470
470
|
- test/dummy/tmp/cache/assets/development/sprockets/f3e1a8ba304f70dccefd77356c900ebc
|
471
471
|
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
472
|
+
- test/dummy/tmp/data/meta_request/003765f8-4b38-44b7-8822-72479a017d38.json
|
472
473
|
- test/dummy/tmp/data/meta_request/00a60dc6-5e3c-40cc-893b-acbbb57c1fd0.json
|
474
|
+
- test/dummy/tmp/data/meta_request/0e23b3df-2c21-4a5d-ba30-3065903ea540.json
|
475
|
+
- test/dummy/tmp/data/meta_request/377c2c77-dc92-41b1-aaf7-2f0815ddfb78.json
|
473
476
|
- test/dummy/tmp/data/meta_request/4aaba52a-91d2-4f45-94ae-cd8351f77834.json
|
474
477
|
- test/dummy/tmp/data/meta_request/653be5c9-b898-476d-84b9-1d25fec823fe.json
|
475
|
-
- test/dummy/tmp/data/meta_request/6ae6b985-d0f8-4897-8738-e87849208a75.json
|
476
478
|
- test/dummy/tmp/data/meta_request/76822564-9a24-4841-b1fa-a2652132142e.json
|
477
479
|
- test/dummy/tmp/data/meta_request/a03cb440-77fd-4aab-9a6c-af47e0168ef3.json
|
478
|
-
- test/dummy/tmp/data/meta_request/
|
479
|
-
- test/dummy/tmp/data/meta_request/
|
480
|
-
- test/dummy/tmp/data/meta_request/eea1963d-51ee-4d2e-bb91-319e81ec65a3.json
|
481
|
-
- test/dummy/tmp/data/meta_request/f90fd4b7-d354-497a-b3fa-7b0da6d323e5.json
|
480
|
+
- test/dummy/tmp/data/meta_request/cc8d3113-dbe9-4a41-805a-7cd7d1bd617a.json
|
481
|
+
- test/dummy/tmp/data/meta_request/dabe70dd-906d-495f-8df2-1e76d421c506.json
|
482
482
|
- test/kilt/form_spec.rb
|
483
483
|
- test/minitest_helper.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"create","params":{"utf8":"✓","authenticity_token":"RiORy2iVlpvfltHE/P5yImpHPiMX/xd4gz95hgcpx3c=","project":{"name":"Test","github":"","description":"","section":"","position":"","size":"large"},"controller":"kilt/kilt","action":"create","types":"projects"},"format":"html","method":"POST","path":"/admin/projects","status":302,"view_runtime":null},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":112.653}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"update","params":{"utf8":"✓","authenticity_token":"RiORy2iVlpvfltHE/P5yImpHPiMX/xd4gz95hgcpx3c=","project":{"name":"Test","github":"","description":"","section":"","position":"","size":"small"},"controller":"kilt/kilt","action":"update","types":"projects","slug":"test"},"format":"html","method":"POST","path":"/admin/projects/test","status":302,"view_runtime":null},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":335.903}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"update","params":{"utf8":"✓","authenticity_token":"RiORy2iVlpvfltHE/P5yImpHPiMX/xd4gz95hgcpx3c=","project":{"name":"Test","github":"","description":"","section":"","position":"","size":"large"},"controller":"kilt/kilt","action":"update","types":"projects","slug":"test"},"format":"html","method":"POST","path":"/admin/projects/test","status":302,"view_runtime":null},"time":"2014-01-10T13:57:26-05:00","transaction_id":"2451e38ad4c5ea53bacc","end":"2014-01-10T13:57:26-05:00","children":[],"duration":326.755}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb","layout":null},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":0.51},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb","layout":null},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":0.488},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/longtext.html.erb","layout":null},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":0.46},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb","layout":null},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":0.455},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/number.html.erb","layout":null},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":0.528},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/select_one.html.erb","layout":null},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":0.6040000000000001},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/_form.html.erb"},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":18.717000000000002},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/edit.html.erb","layout":"layouts/kilt/cms"},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":20.292},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb"},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":0.9890000000000001},{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"edit","params":{"controller":"kilt/kilt","action":"edit","types":"projects","slug":"test"},"format":"html","method":"GET","path":"/admin/projects/test","status":200,"view_runtime":51.018},"time":"2014-01-10T13:57:12-05:00","transaction_id":"ddc291a6ec31943f9781","end":"2014-01-10T13:57:12-05:00","children":[],"duration":131.496}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb","layout":null},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":0.45399999999999996},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb","layout":null},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":0.757},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/longtext.html.erb","layout":null},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":0.929},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/text.html.erb","layout":null},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":0.7060000000000001},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/number.html.erb","layout":null},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":0.856},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/form/select_one.html.erb","layout":null},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":1.012},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/_form.html.erb"},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":26.950000000000003},{"name":"render_template.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/kilt/kilt/edit.html.erb","layout":"layouts/kilt/cms"},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":28.636000000000003},{"name":"render_partial.action_view","payload":{"identifier":"/Users/tim/Sites/Kilt/app/views/layouts/kilt/cms/_menu.html.erb"},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":0.843},{"name":"process_action.action_controller","payload":{"controller":"Kilt::KiltController","action":"edit","params":{"controller":"kilt/kilt","action":"edit","types":"projects","slug":"test"},"format":"html","method":"GET","path":"/admin/projects/test","status":200,"view_runtime":38.373999999999995},"time":"2014-01-10T13:57:22-05:00","transaction_id":"98bc121971129d5aca44","end":"2014-01-10T13:57:22-05:00","children":[],"duration":122.259}]
|