netzke-core 0.8.4 → 0.9.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile +4 -1
  4. data/README.md +8 -8
  5. data/TODO.md +6 -34
  6. data/javascripts/ext.js +15 -12
  7. data/lib/netzke/core/component_config.rb +1 -1
  8. data/lib/netzke/core/composition.rb +13 -10
  9. data/lib/netzke/core/dsl_support.rb +0 -1
  10. data/lib/netzke/core/dynamic_assets.rb +2 -6
  11. data/lib/netzke/core/railz/action_view_ext.rb +12 -11
  12. data/lib/netzke/core/railz/action_view_ext/ext.rb +3 -3
  13. data/lib/netzke/core/railz/routes.rb +5 -1
  14. data/lib/netzke/core/version.rb +4 -3
  15. data/tasks/rake_helper.rb +1 -1
  16. metadata +36 -320
  17. data/test/core_test_app/README +0 -15
  18. data/test/core_test_app/Rakefile +0 -7
  19. data/test/core_test_app/app/assets/javascripts/expect/expect.js +0 -1253
  20. data/test/core_test_app/app/assets/javascripts/mocha/mocha.js +0 -5340
  21. data/test/core_test_app/app/assets/stylesheets/mocha/mocha.css +0 -231
  22. data/test/core_test_app/app/components/actions.rb +0 -73
  23. data/test/core_test_app/app/components/component_with_prebuilt_toolbar_control.rb +0 -12
  24. data/test/core_test_app/app/components/component_with_prebuilt_toolbar_control/javascripts/component_with_prebuilt_toolbar_control.js +0 -12
  25. data/test/core_test_app/app/components/composition.rb +0 -106
  26. data/test/core_test_app/app/components/configurable_on_class_level.rb +0 -8
  27. data/test/core_test_app/app/components/css_inclusion.rb +0 -12
  28. data/test/core_test_app/app/components/css_inclusion/stylesheets/custom.css +0 -3
  29. data/test/core_test_app/app/components/dynamic_loading.rb +0 -62
  30. data/test/core_test_app/app/components/dynamic_loading/javascripts/dynamic_loading.js +0 -57
  31. data/test/core_test_app/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js +0 -9
  32. data/test/core_test_app/app/components/endpoints.rb +0 -63
  33. data/test/core_test_app/app/components/endpoints/javascripts/endpoints.js +0 -50
  34. data/test/core_test_app/app/components/endpoints_extended.rb +0 -27
  35. data/test/core_test_app/app/components/ext_direct/composite.rb +0 -51
  36. data/test/core_test_app/app/components/ext_direct/details.rb +0 -11
  37. data/test/core_test_app/app/components/ext_direct/selector.rb +0 -29
  38. data/test/core_test_app/app/components/ext_direct/statistics.rb +0 -11
  39. data/test/core_test_app/app/components/feedback.rb +0 -26
  40. data/test/core_test_app/app/components/haml_panel.rb +0 -32
  41. data/test/core_test_app/app/components/haml_panel/html/body.html.haml +0 -10
  42. data/test/core_test_app/app/components/haml_panel/html/server_response.html.haml +0 -3
  43. data/test/core_test_app/app/components/hello_user.rb +0 -12
  44. data/test/core_test_app/app/components/hello_world.rb +0 -24
  45. data/test/core_test_app/app/components/hello_world/javascripts/hello_world.js +0 -12
  46. data/test/core_test_app/app/components/js_inclusion.rb +0 -17
  47. data/test/core_test_app/app/components/js_inclusion/javascripts/extra_one.js +0 -2
  48. data/test/core_test_app/app/components/js_inclusion/javascripts/extra_two.js +0 -2
  49. data/test/core_test_app/app/components/js_inclusion/javascripts/js_inclusion.js +0 -5
  50. data/test/core_test_app/app/components/js_inclusion/javascripts/method_set_one.js +0 -6
  51. data/test/core_test_app/app/components/js_inclusion/javascripts/method_set_two.js +0 -5
  52. data/test/core_test_app/app/components/js_inclusion_extended.rb +0 -6
  53. data/test/core_test_app/app/components/js_inclusion_extended/javascripts/some_method_set.js +0 -5
  54. data/test/core_test_app/app/components/loaded_css_inclusion.rb +0 -22
  55. data/test/core_test_app/app/components/localization.rb +0 -35
  56. data/test/core_test_app/app/components/localization_extended.rb +0 -2
  57. data/test/core_test_app/app/components/multi_instance_loading.rb +0 -18
  58. data/test/core_test_app/app/components/multi_instance_loading/javascripts/multi_instance_loading.js +0 -18
  59. data/test/core_test_app/app/components/persistence.rb +0 -60
  60. data/test/core_test_app/app/components/persistence_with_shared_state.rb +0 -7
  61. data/test/core_test_app/app/components/plugin_with_actions.rb +0 -24
  62. data/test/core_test_app/app/components/plugin_with_components.rb +0 -22
  63. data/test/core_test_app/app/components/plugin_with_endpoints.rb +0 -29
  64. data/test/core_test_app/app/components/plugins.rb +0 -9
  65. data/test/core_test_app/app/components/ruby_modules.rb +0 -5
  66. data/test/core_test_app/app/components/ruby_modules/basic_stuff.rb +0 -33
  67. data/test/core_test_app/app/components/ruby_modules/extra_stuff.rb +0 -15
  68. data/test/core_test_app/app/components/scoped/deeply_scoped/scoping.rb +0 -10
  69. data/test/core_test_app/app/components/scoped/scoping.rb +0 -8
  70. data/test/core_test_app/app/components/scoped/scoping_extended.rb +0 -8
  71. data/test/core_test_app/app/components/self_reloading.rb +0 -25
  72. data/test/core_test_app/app/components/server_counter.rb +0 -59
  73. data/test/core_test_app/app/components/server_counter/javascripts/server_counter.js +0 -53
  74. data/test/core_test_app/app/components/session_expiration.rb +0 -21
  75. data/test/core_test_app/app/components/simple_authentication_component.rb +0 -47
  76. data/test/core_test_app/app/components/simple_component.rb +0 -7
  77. data/test/core_test_app/app/components/simple_composite.rb +0 -12
  78. data/test/core_test_app/app/components/simple_form_with_file_upload.rb +0 -48
  79. data/test/core_test_app/app/components/simple_panel.rb +0 -2
  80. data/test/core_test_app/app/components/simple_tab_panel.rb +0 -27
  81. data/test/core_test_app/app/components/simple_window.rb +0 -5
  82. data/test/core_test_app/app/components/tools.rb +0 -20
  83. data/test/core_test_app/app/components/window_with_simple_component.rb +0 -15
  84. data/test/core_test_app/app/controllers/alternative_controller.rb +0 -10
  85. data/test/core_test_app/app/controllers/application_controller.rb +0 -10
  86. data/test/core_test_app/app/controllers/components_controller.rb +0 -17
  87. data/test/core_test_app/app/controllers/simple_rails_controller.rb +0 -2
  88. data/test/core_test_app/app/controllers/specs_controller.rb +0 -11
  89. data/test/core_test_app/app/controllers/welcome_controller.rb +0 -5
  90. data/test/core_test_app/app/helpers/application_helper.rb +0 -2
  91. data/test/core_test_app/app/views/components/panel_with_autoload.html.erb +0 -2
  92. data/test/core_test_app/app/views/components/some_tab_panel.html.erb +0 -11
  93. data/test/core_test_app/app/views/layouts/application.html.erb +0 -31
  94. data/test/core_test_app/app/views/layouts/nested.html.erb +0 -5
  95. data/test/core_test_app/app/views/simple_rails/multiple_nested.html.erb +0 -11
  96. data/test/core_test_app/app/views/simple_rails/multiple_of_different_class.html.erb +0 -3
  97. data/test/core_test_app/app/views/simple_rails/multiple_of_same_class.html.erb +0 -2
  98. data/test/core_test_app/app/views/simple_rails/panel.html.erb +0 -1
  99. data/test/core_test_app/config.ru +0 -4
  100. data/test/core_test_app/config/application.rb +0 -51
  101. data/test/core_test_app/config/boot.rb +0 -6
  102. data/test/core_test_app/config/database.yml +0 -22
  103. data/test/core_test_app/config/environment.rb +0 -6
  104. data/test/core_test_app/config/environments/development.rb +0 -23
  105. data/test/core_test_app/config/environments/production.rb +0 -49
  106. data/test/core_test_app/config/environments/test.rb +0 -35
  107. data/test/core_test_app/config/initializers/backtrace_silencers.rb +0 -7
  108. data/test/core_test_app/config/initializers/inflections.rb +0 -10
  109. data/test/core_test_app/config/initializers/javascripts/session_expiration.js +0 -6
  110. data/test/core_test_app/config/initializers/mime_types.rb +0 -5
  111. data/test/core_test_app/config/initializers/netzke.rb +0 -11
  112. data/test/core_test_app/config/initializers/secret_token.rb +0 -7
  113. data/test/core_test_app/config/initializers/session_store.rb +0 -8
  114. data/test/core_test_app/config/locales/en.yml +0 -30
  115. data/test/core_test_app/config/locales/es.yml +0 -11
  116. data/test/core_test_app/config/routes.rb +0 -76
  117. data/test/core_test_app/core_test_app.tmproj +0 -254
  118. data/test/core_test_app/db/development.sqlite3 +0 -0
  119. data/test/core_test_app/db/development_structure.sql +0 -4
  120. data/test/core_test_app/db/seeds.rb +0 -7
  121. data/test/core_test_app/db/test.sqlite3 +0 -0
  122. data/test/core_test_app/log/development.log +0 -125211
  123. data/test/core_test_app/log/production.log +0 -18
  124. data/test/core_test_app/log/test.log +0 -192676
  125. data/test/core_test_app/public/404.html +0 -26
  126. data/test/core_test_app/public/422.html +0 -26
  127. data/test/core_test_app/public/500.html +0 -26
  128. data/test/core_test_app/public/favicon.ico +0 -0
  129. data/test/core_test_app/public/images/icons/accept.png +0 -0
  130. data/test/core_test_app/public/images/icons/anchor.png +0 -0
  131. data/test/core_test_app/public/images/icons/tick.png +0 -0
  132. data/test/core_test_app/public/images/rails.png +0 -0
  133. data/test/core_test_app/public/robots.txt +0 -5
  134. data/test/core_test_app/rails_app.tmproj +0 -324
  135. data/test/core_test_app/script/rails +0 -6
  136. data/test/core_test_app/tmp/cache/assets/C8B/BF0/sprockets%2F54de2792b036d1dab855f88599503551 +0 -0
  137. data/test/core_test_app/tmp/cache/assets/C92/5A0/sprockets%2F39e75754782ee12179bf35c9a0971d80 +0 -0
  138. data/test/core_test_app/tmp/cache/assets/C99/720/sprockets%2F981d5a1b957a012e380b22011a6d176d +0 -0
  139. data/test/core_test_app/tmp/cache/assets/C9F/750/sprockets%2F20ce3d64040a5d3a0a8883bd60754356 +0 -0
  140. data/test/core_test_app/tmp/cache/assets/CC4/C00/sprockets%2Fc615df52887d8c2e67e8413576a419c5 +0 -0
  141. data/test/core_test_app/tmp/cache/assets/CF1/3F0/sprockets%2Fc69ee42924fab565a3533d56473ce878 +0 -0
  142. data/test/core_test_app/tmp/cache/assets/D0E/870/sprockets%2Fa593bf4fac106add88c9434141a49663 +0 -0
  143. data/test/core_test_app/tmp/cache/assets/D14/8E0/sprockets%2F20748e8d1d7d090d122904a9fe6f18fc +0 -0
  144. data/test/core_test_app/tmp/cache/assets/D3E/DA0/sprockets%2Fa175f1ac5996544b908ba3ba3f64c4f3 +0 -0
  145. data/test/core_test_app/tmp/cache/assets/D43/C00/sprockets%2F7bc60c758776356d615ab5edff201ee2 +0 -0
  146. data/test/core_test_app/tmp/cache/assets/D4B/C50/sprockets%2F8483b7e322da338e8f9eb3b30a957e9a +0 -0
  147. data/test/core_test_app/tmp/cache/assets/D64/090/sprockets%2F5a01ff309c3f2503eb5e4f5667cca4b3 +0 -0
  148. data/test/core_test_app/tmp/cache/assets/D8B/FB0/sprockets%2F7a86225caaa389f1be600b4f3a2d1ef0 +0 -0
  149. data/test/core_test_app/tmp/cache/assets/D98/9C0/sprockets%2F18b80e8fe200aebc522e561a867ea6fb +0 -0
  150. data/test/core_test_app/tmp/cache/assets/DB0/6E0/sprockets%2F03e33f5a4779eeb48bcfc86ee717fb55 +0 -0
  151. data/test/core_test_app/tmp/cache/assets/DED/7E0/sprockets%2Feaedd52ba538f19e4ab543a3e20ce2c4 +0 -0
  152. data/test/core_test_app/tmp/cache/assets/E07/FF0/sprockets%2Fb3c071e0a6de36f041adbbdaa8ab060b +0 -0
  153. data/test/core_test_app/tmp/capybara/capybara-20101214105940.html +0 -40
  154. data/test/core_test_app/tmp/capybara/capybara-20101214110642.html +0 -40
  155. data/test/core_test_app/tmp/capybara/capybara-20101214110749.html +0 -40
  156. data/test/core_test_app/tmp/capybara/capybara-20101214110750.html +0 -40
  157. data/test/core_test_app/tmp/capybara/capybara-20101214111025.html +0 -40
  158. data/test/core_test_app/tmp/capybara/capybara-20101214111027.html +0 -40
  159. data/test/core_test_app/tmp/capybara/capybara-20101214111213.html +0 -40
  160. data/test/core_test_app/tmp/capybara/capybara-20101214111214.html +0 -40
  161. data/test/core_test_app/tmp/capybara/capybara-20101214111332.html +0 -40
  162. data/test/core_test_app/tmp/capybara/capybara-20101214111333.html +0 -40
  163. data/test/core_test_app/tmp/pids/passenger.3000.pid.lock +0 -0
  164. data/test/core_test_app/tmp/restart.txt +0 -0
  165. data/test/test_helper.rb +0 -3
@@ -1,2 +0,0 @@
1
- class SimpleRailsController < ApplicationController
2
- end
@@ -1,11 +0,0 @@
1
- require 'coffee-script'
2
-
3
- # Compiles coffeescript specs on the fly
4
- class SpecsController < ApplicationController
5
- def show
6
- spec_path = params[:id].gsub("__", "/")
7
- path = "../../../../../spec/mocha/#{spec_path}.js.coffee"
8
- coffee = File.read(File.expand_path(path, __FILE__))
9
- render text: CoffeeScript.compile(coffee)
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- class WelcomeController < ApplicationController
2
- def index
3
- render :text => "This is a test app built into netzke_core"
4
- end
5
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- <%# This is just a panel that has +autoload+ option to load some content from the autoloaded_content action, which in its turn renders a view with a Netzke component in it %>
2
- <%= netzke :panel_with_autoload, :class_name => "SimplePanel", :html => "Some content", :autoLoad => {:url => "autoloaded_content", :scripts => true}%>
@@ -1,11 +0,0 @@
1
- <%= netzke :tabs,
2
- :class_name => "SimpleTabPanel",
3
- :active_tab => 0,
4
- :items => [{
5
- :html => "I'm a simple Ext.panel.Panel",
6
- :title => "Panel One"
7
- },{
8
- :html => "I'm a second simple Ext.panel.Panel",
9
- :title => "Panel Two"
10
- }]
11
- %>
@@ -1,31 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Netzke Core Test App</title>
5
- <%= csrf_meta_tag %>
6
- <%= load_netzke minified: true %>
7
-
8
- <% if params[:spec] %>
9
- <%= javascript_include_tag "/assets/expect/expect.js" %>
10
- <%= javascript_include_tag "/assets/mocha/mocha.js" %>
11
- <%= stylesheet_link_tag "/assets/mocha/mocha.css" %>
12
- <script>
13
- mocha.setup('bdd');
14
- mocha.setup({ignoreLeaks: true, slow: 500});
15
- Ext.onReady(function(){
16
- Netzke.mochaRunner = mocha.run(function(){Netzke.mochaDone = true;});
17
- });
18
- </script>
19
- <%= javascript_include_tag "/specs/support__action_helper" %>
20
- <%= javascript_include_tag "/specs/support__query_helper" %>
21
- <%= javascript_include_tag "/specs/support__expectation_helper" %>
22
- <%= javascript_include_tag "/specs/#{params[:spec]}" %>
23
- <% end %>
24
-
25
- </head>
26
- <body>
27
-
28
- <%= yield %>
29
- <div id="mocha"></div>
30
- </body>
31
- </html>
@@ -1,5 +0,0 @@
1
- <%# Use this layout when you dynamically load views with other Netzke components into some Ext.Panel, e.g. with Ext.updater.
2
- Because the main Netzke/Ext code is already loaded, all we need to load is the JavaScript for components that are
3
- embedded in the loaded view. TODO: fix class caching in this scenario. %>
4
- <%= netzke_js %>
5
- <%= yield %>
@@ -1,11 +0,0 @@
1
- <%= netzke :tab_panel_one, {
2
- height: 200,
3
- class_name: "SimpleTabPanel",
4
- items: [:endpoints, :endpoints_extended]
5
- } %>
6
-
7
- <%= netzke :tab_panel_two, {
8
- height: 200,
9
- class_name: "SimpleTabPanel",
10
- items: [:endpoints_extended, :endpoints]
11
- } %>
@@ -1,3 +0,0 @@
1
- <%= netzke :simple_component %>
2
- <%= netzke :component_loader %>
3
- <%= netzke :some_composite %>
@@ -1,2 +0,0 @@
1
- <%= netzke :server_caller_one, :class_name => "ServerCaller", :height => 200 %>
2
- <%= netzke :server_caller_two, :class_name => "ServerCaller", :height => 200 %>
@@ -1 +0,0 @@
1
- <%= netzke :panel, class_name: "Netzke::Core::Panel" %>
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run RailsApp::Application
@@ -1,51 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # If you have a Gemfile, require the gems listed there, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(:default, Rails.env) if defined?(Bundler)
8
-
9
- $:.unshift File.expand_path('../../../../lib', __FILE__)
10
- require 'netzke-core'
11
-
12
- module RailsApp
13
- class Application < Rails::Application
14
- # Settings in config/environments/* take precedence over those specified here.
15
- # Application configuration should go into files in config/initializers
16
- # -- all .rb files in that directory are automatically loaded.
17
-
18
- # Custom directories with classes and modules you want to be autoloadable.
19
- config.autoload_paths += %W(#{config.root}/lib)
20
-
21
- # Only load the plugins named here, in the order given (default is alphabetical).
22
- # :all can be used as a placeholder for all plugins not explicitly named.
23
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24
-
25
- # Activate observers that should always be running.
26
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
27
-
28
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
- # config.time_zone = 'Central Time (US & Canada)'
31
-
32
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
- # config.i18n.default_locale = :de
35
-
36
- # JavaScript files you want as :defaults (application.js is always included).
37
- # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
38
-
39
- # Configure the default encoding used in templates for Ruby 1.9.
40
- config.encoding = "utf-8"
41
-
42
- # Configure sensitive parameters which will be filtered from the log file.
43
- config.filter_parameters += [:password]
44
-
45
- # Enable the asset pipeline
46
- config.assets.enabled = true
47
-
48
- config.assets.compress = true
49
- config.assets.js_compressor = :uglifier
50
- end
51
- end
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
5
-
6
- require 'bundler/setup'
@@ -1,22 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
- development:
4
- adapter: sqlite3
5
- database: db/development.sqlite3
6
- pool: 5
7
- timeout: 5000
8
-
9
- # Warning: The database defined as "test" will be erased and
10
- # re-generated from your development database when you run "rake".
11
- # Do not set this db to the same as development or production.
12
- test:
13
- adapter: sqlite3
14
- database: db/test.sqlite3
15
- pool: 5
16
- timeout: 5000
17
-
18
- production:
19
- adapter: sqlite3
20
- database: db/production.sqlite3
21
- pool: 5
22
- timeout: 5000
@@ -1,6 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
-
5
- # Initialize the rails application
6
- RailsApp::Application.initialize!
@@ -1,23 +0,0 @@
1
- RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- # config.action_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
- config.active_support.deprecation = :log
22
- config.serve_static_assets = true
23
- end
@@ -1,49 +0,0 @@
1
- RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- # config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
- config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
- config.active_support.deprecation = :notify
49
- end
@@ -1,35 +0,0 @@
1
- RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- Rails.backtrace_cleaner.remove_silencers!
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,6 +0,0 @@
1
- Ext.define(null, {
2
- override: "Netzke.classes.Core.Mixin",
3
- onNetzkeSessionExpired: function() {
4
- this.setTitle('Session expired');
5
- }
6
- })
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,11 +0,0 @@
1
- Netzke::Core.setup do |config|
2
- config.ext_uri = "http://cdn.sencha.com/ext-4.1.1a-gpl" if ENV['EXTJS_SRC'] == 'cdn'
3
-
4
- # custom session expiration handling
5
- config.ext_javascripts << "#{File.dirname(__FILE__)}/javascripts/session_expiration.js"
6
-
7
- # feedback delay
8
- # config.js_feedback_delay = 2000
9
- end
10
-
11
- ConfigurableOnClassLevel.title = "Overridden"
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- RailsApp::Application.config.secret_token = '37d8da5a1af6fb203bcbdb7ad5a944a8ed0fdc568594b9000319294a8b696d607dacf64bc521bdf7036790f7e1a65627bab7df5a29cd58d78239b7e6dd8377ae'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- RailsApp::Application.config.session_store :cookie_store, :key => '_core_test_app_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rake db:sessions:create")
8
- # RailsApp::Application.config.session_store :active_record_store
@@ -1,30 +0,0 @@
1
- en:
2
- foo:
3
- actions:
4
- foo_action:
5
- text: 'Foo'
6
- tooltip: 'Foo!'
7
- foo_ext:
8
- actions:
9
- foo_action:
10
- text: 'Foo plus'
11
- tooltip: 'Foo plus!'
12
- server_caller:
13
- actions:
14
- bug_server:
15
- text: Call server
16
- tooltip: This bugs server
17
- icon: tick
18
- extended_server_caller:
19
- actions:
20
- bug_server:
21
- text: Call server extensively
22
- tooltip: This bugs server in its own way
23
- localization:
24
- title: Localized Panel
25
- property_one: First property
26
- property_two: Second property
27
- action_two: Second action
28
- actions:
29
- action_one:
30
- text: First action
@@ -1,11 +0,0 @@
1
- es:
2
- localization:
3
- title: Panel Localizada
4
- property_one: Primera propriedad
5
- property_two: Segunda propriedad
6
- action_two: Segunda acción
7
- actions:
8
- action_one:
9
- text: Primera acción
10
- action_three:
11
- text: Tercera acción
@@ -1,76 +0,0 @@
1
- RailsApp::Application.routes.draw do
2
- # Defaults (NetzkeController mounted at /netzke)
3
- netzke
4
-
5
- # Specify custom mount url
6
- # netzke "/some/path/netzke"
7
-
8
- # Specify custom controller (AlternativeController)
9
- # netzke '/netzke', controller: :alternative
10
-
11
- # The priority is based upon order of creation:
12
- # first created -> highest priority.
13
-
14
- # Sample of regular route:
15
- # match 'products/:id' => 'catalog#view'
16
- # Keep in mind you can assign values other than :controller and :action
17
-
18
- # Sample of named route:
19
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
20
- # This route can be invoked with purchase_url(:id => product.id)
21
-
22
- # Sample resource route (maps HTTP verbs to controller actions automatically):
23
- # resources :products
24
-
25
- resources :specs
26
-
27
- # Sample resource route with options:
28
- # resources :products do
29
- # member do
30
- # get :short
31
- # post :toggle
32
- # end
33
- #
34
- # collection do
35
- # get :sold
36
- # end
37
- # end
38
-
39
- # Sample resource route with sub-resources:
40
- # resources :products do
41
- # resources :comments, :sales
42
- # resource :seller
43
- # end
44
-
45
- # Sample resource route with more complex sub-resources
46
- # resources :products do
47
- # resources :comments
48
- # resources :sales do
49
- # get :recent, :on => :collection
50
- # end
51
- # end
52
-
53
- # Sample resource route within a namespace:
54
- # namespace :admin do
55
- # # Directs /admin/products/* to Admin::ProductsController
56
- # # (app/controllers/admin/products_controller.rb)
57
- # resources :products
58
- # end
59
-
60
- # You can have the root of your site routed with "root"
61
- # just remember to delete public/index.html.
62
- root :to => "welcome#index"
63
-
64
- # See how all your routes lay out with "rake routes"
65
-
66
- # This is a legacy wild controller route that's not recommended for RESTful applications.
67
- # Note: This route will make all actions in every controller accessible via GET requests.
68
-
69
- # Components that don't need configuration in the view, view code rendered inline
70
- match 'components/:component' => 'components#index', :as => "components"
71
-
72
- # Components configured in Rails views
73
- match 'simple_rails/:action' => 'simple_rails', :as => 'simple_rails_views'
74
-
75
- match ':controller(/:action(/:id(.:format)))'
76
- end