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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +4 -1
- data/README.md +8 -8
- data/TODO.md +6 -34
- data/javascripts/ext.js +15 -12
- data/lib/netzke/core/component_config.rb +1 -1
- data/lib/netzke/core/composition.rb +13 -10
- data/lib/netzke/core/dsl_support.rb +0 -1
- data/lib/netzke/core/dynamic_assets.rb +2 -6
- data/lib/netzke/core/railz/action_view_ext.rb +12 -11
- data/lib/netzke/core/railz/action_view_ext/ext.rb +3 -3
- data/lib/netzke/core/railz/routes.rb +5 -1
- data/lib/netzke/core/version.rb +4 -3
- data/tasks/rake_helper.rb +1 -1
- metadata +36 -320
- data/test/core_test_app/README +0 -15
- data/test/core_test_app/Rakefile +0 -7
- data/test/core_test_app/app/assets/javascripts/expect/expect.js +0 -1253
- data/test/core_test_app/app/assets/javascripts/mocha/mocha.js +0 -5340
- data/test/core_test_app/app/assets/stylesheets/mocha/mocha.css +0 -231
- data/test/core_test_app/app/components/actions.rb +0 -73
- data/test/core_test_app/app/components/component_with_prebuilt_toolbar_control.rb +0 -12
- data/test/core_test_app/app/components/component_with_prebuilt_toolbar_control/javascripts/component_with_prebuilt_toolbar_control.js +0 -12
- data/test/core_test_app/app/components/composition.rb +0 -106
- data/test/core_test_app/app/components/configurable_on_class_level.rb +0 -8
- data/test/core_test_app/app/components/css_inclusion.rb +0 -12
- data/test/core_test_app/app/components/css_inclusion/stylesheets/custom.css +0 -3
- data/test/core_test_app/app/components/dynamic_loading.rb +0 -62
- data/test/core_test_app/app/components/dynamic_loading/javascripts/dynamic_loading.js +0 -57
- data/test/core_test_app/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js +0 -9
- data/test/core_test_app/app/components/endpoints.rb +0 -63
- data/test/core_test_app/app/components/endpoints/javascripts/endpoints.js +0 -50
- data/test/core_test_app/app/components/endpoints_extended.rb +0 -27
- data/test/core_test_app/app/components/ext_direct/composite.rb +0 -51
- data/test/core_test_app/app/components/ext_direct/details.rb +0 -11
- data/test/core_test_app/app/components/ext_direct/selector.rb +0 -29
- data/test/core_test_app/app/components/ext_direct/statistics.rb +0 -11
- data/test/core_test_app/app/components/feedback.rb +0 -26
- data/test/core_test_app/app/components/haml_panel.rb +0 -32
- data/test/core_test_app/app/components/haml_panel/html/body.html.haml +0 -10
- data/test/core_test_app/app/components/haml_panel/html/server_response.html.haml +0 -3
- data/test/core_test_app/app/components/hello_user.rb +0 -12
- data/test/core_test_app/app/components/hello_world.rb +0 -24
- data/test/core_test_app/app/components/hello_world/javascripts/hello_world.js +0 -12
- data/test/core_test_app/app/components/js_inclusion.rb +0 -17
- data/test/core_test_app/app/components/js_inclusion/javascripts/extra_one.js +0 -2
- data/test/core_test_app/app/components/js_inclusion/javascripts/extra_two.js +0 -2
- data/test/core_test_app/app/components/js_inclusion/javascripts/js_inclusion.js +0 -5
- data/test/core_test_app/app/components/js_inclusion/javascripts/method_set_one.js +0 -6
- data/test/core_test_app/app/components/js_inclusion/javascripts/method_set_two.js +0 -5
- data/test/core_test_app/app/components/js_inclusion_extended.rb +0 -6
- data/test/core_test_app/app/components/js_inclusion_extended/javascripts/some_method_set.js +0 -5
- data/test/core_test_app/app/components/loaded_css_inclusion.rb +0 -22
- data/test/core_test_app/app/components/localization.rb +0 -35
- data/test/core_test_app/app/components/localization_extended.rb +0 -2
- data/test/core_test_app/app/components/multi_instance_loading.rb +0 -18
- data/test/core_test_app/app/components/multi_instance_loading/javascripts/multi_instance_loading.js +0 -18
- data/test/core_test_app/app/components/persistence.rb +0 -60
- data/test/core_test_app/app/components/persistence_with_shared_state.rb +0 -7
- data/test/core_test_app/app/components/plugin_with_actions.rb +0 -24
- data/test/core_test_app/app/components/plugin_with_components.rb +0 -22
- data/test/core_test_app/app/components/plugin_with_endpoints.rb +0 -29
- data/test/core_test_app/app/components/plugins.rb +0 -9
- data/test/core_test_app/app/components/ruby_modules.rb +0 -5
- data/test/core_test_app/app/components/ruby_modules/basic_stuff.rb +0 -33
- data/test/core_test_app/app/components/ruby_modules/extra_stuff.rb +0 -15
- data/test/core_test_app/app/components/scoped/deeply_scoped/scoping.rb +0 -10
- data/test/core_test_app/app/components/scoped/scoping.rb +0 -8
- data/test/core_test_app/app/components/scoped/scoping_extended.rb +0 -8
- data/test/core_test_app/app/components/self_reloading.rb +0 -25
- data/test/core_test_app/app/components/server_counter.rb +0 -59
- data/test/core_test_app/app/components/server_counter/javascripts/server_counter.js +0 -53
- data/test/core_test_app/app/components/session_expiration.rb +0 -21
- data/test/core_test_app/app/components/simple_authentication_component.rb +0 -47
- data/test/core_test_app/app/components/simple_component.rb +0 -7
- data/test/core_test_app/app/components/simple_composite.rb +0 -12
- data/test/core_test_app/app/components/simple_form_with_file_upload.rb +0 -48
- data/test/core_test_app/app/components/simple_panel.rb +0 -2
- data/test/core_test_app/app/components/simple_tab_panel.rb +0 -27
- data/test/core_test_app/app/components/simple_window.rb +0 -5
- data/test/core_test_app/app/components/tools.rb +0 -20
- data/test/core_test_app/app/components/window_with_simple_component.rb +0 -15
- data/test/core_test_app/app/controllers/alternative_controller.rb +0 -10
- data/test/core_test_app/app/controllers/application_controller.rb +0 -10
- data/test/core_test_app/app/controllers/components_controller.rb +0 -17
- data/test/core_test_app/app/controllers/simple_rails_controller.rb +0 -2
- data/test/core_test_app/app/controllers/specs_controller.rb +0 -11
- data/test/core_test_app/app/controllers/welcome_controller.rb +0 -5
- data/test/core_test_app/app/helpers/application_helper.rb +0 -2
- data/test/core_test_app/app/views/components/panel_with_autoload.html.erb +0 -2
- data/test/core_test_app/app/views/components/some_tab_panel.html.erb +0 -11
- data/test/core_test_app/app/views/layouts/application.html.erb +0 -31
- data/test/core_test_app/app/views/layouts/nested.html.erb +0 -5
- data/test/core_test_app/app/views/simple_rails/multiple_nested.html.erb +0 -11
- data/test/core_test_app/app/views/simple_rails/multiple_of_different_class.html.erb +0 -3
- data/test/core_test_app/app/views/simple_rails/multiple_of_same_class.html.erb +0 -2
- data/test/core_test_app/app/views/simple_rails/panel.html.erb +0 -1
- data/test/core_test_app/config.ru +0 -4
- data/test/core_test_app/config/application.rb +0 -51
- data/test/core_test_app/config/boot.rb +0 -6
- data/test/core_test_app/config/database.yml +0 -22
- data/test/core_test_app/config/environment.rb +0 -6
- data/test/core_test_app/config/environments/development.rb +0 -23
- data/test/core_test_app/config/environments/production.rb +0 -49
- data/test/core_test_app/config/environments/test.rb +0 -35
- data/test/core_test_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/core_test_app/config/initializers/inflections.rb +0 -10
- data/test/core_test_app/config/initializers/javascripts/session_expiration.js +0 -6
- data/test/core_test_app/config/initializers/mime_types.rb +0 -5
- data/test/core_test_app/config/initializers/netzke.rb +0 -11
- data/test/core_test_app/config/initializers/secret_token.rb +0 -7
- data/test/core_test_app/config/initializers/session_store.rb +0 -8
- data/test/core_test_app/config/locales/en.yml +0 -30
- data/test/core_test_app/config/locales/es.yml +0 -11
- data/test/core_test_app/config/routes.rb +0 -76
- data/test/core_test_app/core_test_app.tmproj +0 -254
- data/test/core_test_app/db/development.sqlite3 +0 -0
- data/test/core_test_app/db/development_structure.sql +0 -4
- data/test/core_test_app/db/seeds.rb +0 -7
- data/test/core_test_app/db/test.sqlite3 +0 -0
- data/test/core_test_app/log/development.log +0 -125211
- data/test/core_test_app/log/production.log +0 -18
- data/test/core_test_app/log/test.log +0 -192676
- data/test/core_test_app/public/404.html +0 -26
- data/test/core_test_app/public/422.html +0 -26
- data/test/core_test_app/public/500.html +0 -26
- data/test/core_test_app/public/favicon.ico +0 -0
- data/test/core_test_app/public/images/icons/accept.png +0 -0
- data/test/core_test_app/public/images/icons/anchor.png +0 -0
- data/test/core_test_app/public/images/icons/tick.png +0 -0
- data/test/core_test_app/public/images/rails.png +0 -0
- data/test/core_test_app/public/robots.txt +0 -5
- data/test/core_test_app/rails_app.tmproj +0 -324
- data/test/core_test_app/script/rails +0 -6
- data/test/core_test_app/tmp/cache/assets/C8B/BF0/sprockets%2F54de2792b036d1dab855f88599503551 +0 -0
- data/test/core_test_app/tmp/cache/assets/C92/5A0/sprockets%2F39e75754782ee12179bf35c9a0971d80 +0 -0
- data/test/core_test_app/tmp/cache/assets/C99/720/sprockets%2F981d5a1b957a012e380b22011a6d176d +0 -0
- data/test/core_test_app/tmp/cache/assets/C9F/750/sprockets%2F20ce3d64040a5d3a0a8883bd60754356 +0 -0
- data/test/core_test_app/tmp/cache/assets/CC4/C00/sprockets%2Fc615df52887d8c2e67e8413576a419c5 +0 -0
- data/test/core_test_app/tmp/cache/assets/CF1/3F0/sprockets%2Fc69ee42924fab565a3533d56473ce878 +0 -0
- data/test/core_test_app/tmp/cache/assets/D0E/870/sprockets%2Fa593bf4fac106add88c9434141a49663 +0 -0
- data/test/core_test_app/tmp/cache/assets/D14/8E0/sprockets%2F20748e8d1d7d090d122904a9fe6f18fc +0 -0
- data/test/core_test_app/tmp/cache/assets/D3E/DA0/sprockets%2Fa175f1ac5996544b908ba3ba3f64c4f3 +0 -0
- data/test/core_test_app/tmp/cache/assets/D43/C00/sprockets%2F7bc60c758776356d615ab5edff201ee2 +0 -0
- data/test/core_test_app/tmp/cache/assets/D4B/C50/sprockets%2F8483b7e322da338e8f9eb3b30a957e9a +0 -0
- data/test/core_test_app/tmp/cache/assets/D64/090/sprockets%2F5a01ff309c3f2503eb5e4f5667cca4b3 +0 -0
- data/test/core_test_app/tmp/cache/assets/D8B/FB0/sprockets%2F7a86225caaa389f1be600b4f3a2d1ef0 +0 -0
- data/test/core_test_app/tmp/cache/assets/D98/9C0/sprockets%2F18b80e8fe200aebc522e561a867ea6fb +0 -0
- data/test/core_test_app/tmp/cache/assets/DB0/6E0/sprockets%2F03e33f5a4779eeb48bcfc86ee717fb55 +0 -0
- data/test/core_test_app/tmp/cache/assets/DED/7E0/sprockets%2Feaedd52ba538f19e4ab543a3e20ce2c4 +0 -0
- data/test/core_test_app/tmp/cache/assets/E07/FF0/sprockets%2Fb3c071e0a6de36f041adbbdaa8ab060b +0 -0
- data/test/core_test_app/tmp/capybara/capybara-20101214105940.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214110642.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214110749.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214110750.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214111025.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214111027.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214111213.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214111214.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214111332.html +0 -40
- data/test/core_test_app/tmp/capybara/capybara-20101214111333.html +0 -40
- data/test/core_test_app/tmp/pids/passenger.3000.pid.lock +0 -0
- data/test/core_test_app/tmp/restart.txt +0 -0
- data/test/test_helper.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1175b45677bda3817184b89d9d0f68da8457a31a
|
4
|
+
data.tar.gz: d1bc12dc909276a5941c18b1c68a1d9bdb6a229c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33452d410a4eae2cab16fb58a5522864fecbc18000e6287845e1607a043a52142667ee2a29b662544f032bdf54c7e6732ab315170143e08d004fe5c2af6191b3
|
7
|
+
data.tar.gz: d3a9199962687880dccccefb386d15fcd528630a63d47e75af951b02aadfbb8e7acd87c6fe19171e734bcaf2e8266d63a3afb4f6d8e302272bef48f9756bd0e5
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -29,7 +29,7 @@ All this extremely facilitates building fast, low-traffic, robust, and highly ma
|
|
29
29
|
|
30
30
|
## HelloWorld component
|
31
31
|
|
32
|
-
*This component is distributed as a part of the test application, see `
|
32
|
+
*This component is distributed as a part of the test application, see `spec/rails_app/components/hello_world.rb`.*
|
33
33
|
|
34
34
|
Ext JS files are not distributed with Netzke, so, make sure that they are located in (or sym-linked as) `YOUR_APP/public/extjs`.
|
35
35
|
|
@@ -185,9 +185,9 @@ For more details on defining the client class, refer to [Netzke::Core::ClientCla
|
|
185
185
|
Any Netzke component can define child components, which can either be statically nested in the compound layout (e.g. as different regions of the ['border' layout]("http://docs.sencha.com/ext-js/4-1/#!/api/Ext.layout.container.Border")), or dynamically loaded at a request (as in the case of the edit form window in `Netzke::Basepack::GridPanel`, for example).
|
186
186
|
|
187
187
|
### Defining child components
|
188
|
-
|
188
|
+
|
189
189
|
You can define a child component by calling the `component` class method which normally requires a block:
|
190
|
-
|
190
|
+
|
191
191
|
```ruby
|
192
192
|
component :users do |c|
|
193
193
|
c.klass = GridPanel
|
@@ -327,7 +327,7 @@ Netzke provides support for HAML templates in case you don't want to put HTML in
|
|
327
327
|
|
328
328
|
* Ruby ~> 1.9.2
|
329
329
|
* Rails ~> 3.2.0
|
330
|
-
* Ext JS ~> 4.
|
330
|
+
* Ext JS ~> 4.2.0
|
331
331
|
|
332
332
|
## Installation
|
333
333
|
|
@@ -347,7 +347,7 @@ By default, Netzke assumes that your Ext JS library is located in `public/extjs`
|
|
347
347
|
|
348
348
|
## Running tests
|
349
349
|
|
350
|
-
The bundled `
|
350
|
+
The bundled `spec/rails_app` application used for automated testing can be easily run as a stand-alone Rails app. It's a good source of concise, focused examples. After starting the application, access any of the test components (located in `spec/rails_app/app/components`) by using the following url:
|
351
351
|
|
352
352
|
http://localhost:3000/components/{name of the component's class}
|
353
353
|
|
@@ -361,7 +361,7 @@ To run all the tests (from the gem's root):
|
|
361
361
|
|
362
362
|
$ rake
|
363
363
|
|
364
|
-
This assumes that the Ext JS library is located/symlinked in `
|
364
|
+
This assumes that the Ext JS library is located/symlinked in `spec/rails_app/public/extjs`. If you want to use Sencha CDN instead, run:
|
365
365
|
|
366
366
|
$ EXTJS_SRC=cdn rake
|
367
367
|
|
@@ -369,7 +369,7 @@ This assumes that the Ext JS library is located/symlinked in `test/core_test_app
|
|
369
369
|
|
370
370
|
Help developing Netzke by submitting a pull request when you think others can benefit from it.
|
371
371
|
|
372
|
-
If you feel particularily generous, you can donate a couple of bucks a week at [GitTip](https://www.gittip.com/
|
372
|
+
If you feel particularily generous, you can donate a couple of bucks a week at [GitTip](https://www.gittip.com/uptomax).
|
373
373
|
|
374
374
|
## Useful links
|
375
375
|
|
@@ -378,6 +378,6 @@ If you feel particularily generous, you can donate a couple of bucks a week at [
|
|
378
378
|
* [Twitter](http://twitter.com/netzke) - latest news about the framework
|
379
379
|
|
380
380
|
---
|
381
|
-
Copyright (c) 2008-
|
381
|
+
Copyright (c) 2008-2013 [Max Gorin](https://twitter.com/uptomax), released under the MIT license (see LICENSE).
|
382
382
|
|
383
383
|
**Note** that Ext JS is licensed [differently](http://www.sencha.com/products/extjs/license/), and you may need to purchase a commercial license in order to use it in your projects!
|
data/TODO.md
CHANGED
@@ -1,37 +1,9 @@
|
|
1
|
-
# ToDo
|
2
|
-
Make it possible to pass a constant (not a string) to the `class_name` option
|
3
|
-
|
4
|
-
Make :lazy_loading "true" by default when defining a child component
|
5
|
-
|
6
|
-
Make :items option also accept a hash.
|
7
|
-
|
8
|
-
Caching for netzke_controller-provided JS and CSS.
|
9
|
-
|
10
|
-
Caching - investigate reusing (fragment?) caching of Rails.
|
11
|
-
|
12
|
-
Move JS classes out of the main page to a cachable includes (moffff)
|
13
|
-
|
14
|
-
|
15
1
|
## Roadmap
|
16
2
|
|
17
|
-
### 0
|
18
|
-
|
19
|
-
Get rid of Symbol#action and Symbol#component
|
20
|
-
|
21
|
-
Get rid of String#l
|
22
|
-
|
23
|
-
|
24
|
-
## Ideas that didn't work out
|
25
|
-
|
26
|
-
### Making value from super-class accessible in the block parameters in endpoints
|
27
|
-
|
28
|
-
endpoint :call_server do |params, orig|
|
29
|
-
orig.merge(:set_title => orig[:set_title] + " extended")
|
30
|
-
end
|
31
|
-
|
32
|
-
Bad idea because calling the super method is often required AFTER doing something in the override, not BEFORE. For example, deliver_component in GridPanel in Basepack is overridden to reconfigure the components on the fly before actually delivering the component (i.e. calling super).
|
33
|
-
So, to override an endpoint, simply define a method with endpoint's name, e.g.:
|
3
|
+
### v1.0
|
34
4
|
|
35
|
-
|
36
|
-
|
37
|
-
|
5
|
+
* `js_configure`: c.mixin and c.include without params pickup "mixins/*.js" and "includes/*.js" respectively
|
6
|
+
* new convention for endpoint naming: an endpoint declared with `endpoint :do_something` will be callable from
|
7
|
+
the client as `this.serverDoSomething`
|
8
|
+
* netzkeFeedback removed in favor of netzkeInfo and netzkeError
|
9
|
+
* Grid config options like `enable_advanced_search` loose their `enable_` prefix
|
data/javascripts/ext.js
CHANGED
@@ -9,7 +9,7 @@ Ext.QuickTips.init();
|
|
9
9
|
// Checking Ext JS version: both major and minor versions must be the same
|
10
10
|
(function(){
|
11
11
|
var requiredVersionMajor = 4,
|
12
|
-
requiredVersionMinor =
|
12
|
+
requiredVersionMinor = 2,
|
13
13
|
extVersion = Ext.getVersion('extjs'),
|
14
14
|
currentVersionMajor = extVersion.getMajor(),
|
15
15
|
currentVersionMinor = extVersion.getMinor(),
|
@@ -79,13 +79,14 @@ Ext.define('Netzke.classes.NetzkeRemotingProvider', {
|
|
79
79
|
}
|
80
80
|
},
|
81
81
|
|
82
|
-
addEndpointsForComponent: function(componentPath, endpoints) {
|
83
|
-
var cls = this.namespace[
|
82
|
+
addEndpointsForComponent: function(componentPath, componentId, endpoints) {
|
83
|
+
var cls = this.namespace[componentId] || (this.namespace[componentId] = {});
|
84
84
|
|
85
85
|
Ext.Array.each(endpoints, function(ep) {
|
86
86
|
var methodName = ep.camelize(true),
|
87
|
-
method = Ext.create('Ext.direct.RemotingMethod', {name: methodName, len: 1
|
88
|
-
|
87
|
+
method = Ext.create('Ext.direct.RemotingMethod', {name: methodName, len: 1});
|
88
|
+
|
89
|
+
cls[methodName] = this.createHandler(componentPath, method);
|
89
90
|
}, this);
|
90
91
|
},
|
91
92
|
|
@@ -177,7 +178,7 @@ Ext.define(null, {
|
|
177
178
|
var endpoints = config.endpoints || [];
|
178
179
|
endpoints.push('deliver_component'); // all Netzke components get this endpoint
|
179
180
|
|
180
|
-
Netzke.directProvider.addEndpointsForComponent(config.path, endpoints);
|
181
|
+
Netzke.directProvider.addEndpointsForComponent(config.path, config.id, endpoints);
|
181
182
|
|
182
183
|
var that = this;
|
183
184
|
|
@@ -193,7 +194,7 @@ Ext.define(null, {
|
|
193
194
|
var cfgs = this.buildParentClientConfigs();
|
194
195
|
var remotingArgs = {args: args, configs: cfgs};
|
195
196
|
|
196
|
-
Netzke.providers[config.
|
197
|
+
Netzke.providers[config.id][methodName].call(scope, remotingArgs, function(result, e) {
|
197
198
|
var callbackParam = e;
|
198
199
|
|
199
200
|
if (Ext.getClass(e) == Ext.direct.RemotingEvent) { // means we didn't get an exception
|
@@ -433,7 +434,8 @@ Ext.define(null, {
|
|
433
434
|
idSplit.pop();
|
434
435
|
var parentId = idSplit.join("__");
|
435
436
|
|
436
|
-
|
437
|
+
var res = parentId === "" ? null : Ext.getCmp(parentId);
|
438
|
+
return res;
|
437
439
|
},
|
438
440
|
|
439
441
|
/**
|
@@ -468,14 +470,15 @@ Ext.define(null, {
|
|
468
470
|
netzkeGetComponent: function(id){
|
469
471
|
if (id === "") {return this};
|
470
472
|
id = id.underscore();
|
471
|
-
var split = id.split("__");
|
473
|
+
var split = id.split("__"), res;
|
472
474
|
if (split[0] === 'parent') {
|
473
475
|
split.shift();
|
474
476
|
var childInParentScope = split.join("__");
|
475
|
-
|
477
|
+
res = this.netzkeGetParentComponent().netzkeGetComponent(childInParentScope);
|
476
478
|
} else {
|
477
|
-
|
479
|
+
res = Ext.getCmp(this.id+"__"+id);
|
478
480
|
}
|
481
|
+
return res;
|
479
482
|
},
|
480
483
|
|
481
484
|
/**
|
@@ -492,7 +495,7 @@ Ext.define(null, {
|
|
492
495
|
var feedback = "";
|
493
496
|
|
494
497
|
Ext.each(msg, function(m){
|
495
|
-
feedback += m.msg || m + "<br/>"
|
498
|
+
feedback += (m.msg || m) + "<br/>"
|
496
499
|
});
|
497
500
|
|
498
501
|
if (feedback != "") {
|
@@ -2,11 +2,11 @@ module Netzke::Core
|
|
2
2
|
class ComponentConfig < DslConfigBase
|
3
3
|
def initialize(name, component)
|
4
4
|
self.name = name.to_s
|
5
|
+
self.client_config = {}
|
5
6
|
end
|
6
7
|
|
7
8
|
def set_defaults!
|
8
9
|
self.item_id ||= name # default item_id
|
9
|
-
self.client_config ||= {}
|
10
10
|
self.klass ||= name.camelize.constantize # default klass
|
11
11
|
end
|
12
12
|
end
|
@@ -121,16 +121,19 @@ module Netzke::Core
|
|
121
121
|
@components_in_config || (normalize_config || true) && @components_in_config
|
122
122
|
end
|
123
123
|
|
124
|
-
#
|
125
|
-
#
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
124
|
+
# Instantiates a child component by its name.
|
125
|
+
# +params+ can contain:
|
126
|
+
# [client_config] a config hash passed from the client class
|
127
|
+
# [item_id] overridden item_id (used in case of multi-instance loading)
|
128
|
+
def component_instance(name, options = {})
|
129
|
+
return nil if !respond_to?("#{name}_component")
|
130
|
+
|
131
|
+
cfg = ComponentConfig.new(name, self)
|
132
|
+
cfg.client_config = options[:client_config] || {}
|
133
|
+
cfg.item_id = options[:item_id]
|
134
|
+
send("#{name}_component", cfg)
|
135
|
+
cfg.set_defaults!
|
136
|
+
cfg.klass.new(cfg, self)
|
134
137
|
end
|
135
138
|
|
136
139
|
# @return [Array<Class>] All component classes that we depend on (used to render all necessary javascripts and stylesheets)
|
@@ -32,11 +32,7 @@ module Netzke
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def strip_js_comments(js_string)
|
35
|
-
|
36
|
-
compressor.processor.call(nil, js_string)
|
37
|
-
else
|
38
|
-
js_string
|
39
|
-
end
|
35
|
+
js_string
|
40
36
|
end
|
41
37
|
|
42
38
|
private
|
@@ -48,7 +44,7 @@ module Netzke
|
|
48
44
|
res << %{Ext.ns('Netzke');}
|
49
45
|
res << %{Ext.ns('Netzke.core');}
|
50
46
|
res << %{Netzke.RelativeUrlRoot = '#{ActionController::Base.config.relative_url_root}';}
|
51
|
-
res << %{Netzke.ControllerUrl = '#{ActionController::Base.config.relative_url_root}#{Rails.application.routes.url_helpers.netzke_path
|
47
|
+
res << %{Netzke.ControllerUrl = '#{ActionController::Base.config.relative_url_root}#{Rails.application.routes.url_helpers.netzke_path}/';}
|
52
48
|
res << %{Netzke.RelativeExtUrl = '#{ActionController::Base.config.relative_url_root}#{Netzke::Core.ext_uri}';}
|
53
49
|
|
54
50
|
res << %{Netzke.core.directMaxRetries = #{Netzke::Core.js_direct_max_retries};}
|
@@ -8,23 +8,24 @@ module Netzke
|
|
8
8
|
#
|
9
9
|
# Params:
|
10
10
|
#
|
11
|
-
#
|
11
|
+
# [theme]
|
12
|
+
# The theme to apply. E.g.:
|
12
13
|
#
|
13
|
-
#
|
14
|
+
# <%= load_netzke theme: "classic" %>
|
14
15
|
#
|
15
|
-
#
|
16
|
+
# Themes shipped with Ext JS:
|
17
|
+
# * "neptune" (default in Netzke)
|
18
|
+
# * "classic"
|
19
|
+
# * "gray"
|
20
|
+
# * "access"
|
16
21
|
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
# - all-gray
|
21
|
-
# - all-access
|
22
|
-
#
|
23
|
-
# * :minified - set to +true+ to load minified JS and CSS for Ext JS also in development env
|
22
|
+
# [minified]
|
23
|
+
# Whether to include minified JS and styleshetes. By default is +false+ for Rails development env,
|
24
|
+
# +true+ otherwise
|
24
25
|
def load_netzke(params = {})
|
25
26
|
Netzke::Core.platform = params[:platform] || :ext
|
26
27
|
params[:minified] = !Rails.env.development? if params[:minified].nil?
|
27
|
-
params[:theme] ||=
|
28
|
+
params[:theme] ||= "neptune"
|
28
29
|
|
29
30
|
raw([netzke_css_include(params), netzke_css(params), netzke_js_include(params), netzke_js(params)].join("\n"))
|
30
31
|
end
|
@@ -8,10 +8,10 @@ module Netzke
|
|
8
8
|
|
9
9
|
def netzke_ext_css_include(params)
|
10
10
|
# ExtJS base
|
11
|
-
res = ["#{Netzke::Core.ext_uri}/resources/
|
11
|
+
res = ["#{Netzke::Core.ext_uri}/resources/ext-theme-#{params[:theme]}/ext-theme-#{params[:theme]}-all.css"]
|
12
12
|
|
13
13
|
# Netzke-related dynamic css
|
14
|
-
res <<
|
14
|
+
res << netzke_ext_path
|
15
15
|
|
16
16
|
res += Netzke::Core.external_ext_css
|
17
17
|
|
@@ -28,7 +28,7 @@ module Netzke
|
|
28
28
|
res << "#{Netzke::Core.ext_uri}/locale/ext-lang-#{I18n.locale}" if I18n.locale != :en
|
29
29
|
|
30
30
|
# Netzke-related dynamic JavaScript
|
31
|
-
res <<
|
31
|
+
res << netzke_ext_path
|
32
32
|
|
33
33
|
javascript_include_tag(*res)
|
34
34
|
end
|
@@ -15,7 +15,11 @@ module ActionDispatch::Routing
|
|
15
15
|
# end
|
16
16
|
def netzke(prefix = "/netzke", options = {})
|
17
17
|
controller = options[:controller] || :netzke
|
18
|
-
|
18
|
+
|
19
|
+
get "#{prefix}" => "#{controller.to_s}#index", as: :netzke
|
20
|
+
get "#{prefix}/ext(.:format)" => "#{controller.to_s}#ext", as: :netzke_ext
|
21
|
+
match "#{prefix}/direct" => "#{controller.to_s}#direct", as: :netzke_direct, via: [:get, :post]
|
22
|
+
match "#{prefix}/dispatcher" => "#{controller.to_s}#dispatcher", as: :netzke_dispatcher, via: [:get, :post]
|
19
23
|
end
|
20
24
|
end
|
21
25
|
end
|
data/lib/netzke/core/version.rb
CHANGED
data/tasks/rake_helper.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netzke-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Max Gorin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uglifier
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: execjs
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: haml
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
@@ -56,74 +70,74 @@ dependencies:
|
|
56
70
|
name: sqlite3
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- -
|
73
|
+
- - '>='
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: '0'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- -
|
80
|
+
- - '>='
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: redcarpet
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- -
|
87
|
+
- - '>='
|
74
88
|
- !ruby/object:Gem::Version
|
75
89
|
version: '0'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- -
|
94
|
+
- - '>='
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: yard
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- -
|
101
|
+
- - '>='
|
88
102
|
- !ruby/object:Gem::Version
|
89
103
|
version: '0'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- -
|
108
|
+
- - '>='
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: coffee-script
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - '>='
|
102
116
|
- !ruby/object:Gem::Version
|
103
117
|
version: '0'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- -
|
122
|
+
- - '>='
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: pry-rails
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- -
|
129
|
+
- - '>='
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '0'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- -
|
136
|
+
- - '>='
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
description: Build complex backend apps in a modular way
|
126
|
-
email:
|
140
|
+
email: gorinme@gmail.com
|
127
141
|
executables: []
|
128
142
|
extensions: []
|
129
143
|
extra_rdoc_files: []
|
@@ -179,155 +193,6 @@ files:
|
|
179
193
|
- README.md
|
180
194
|
- TODO.md
|
181
195
|
- init.rb
|
182
|
-
- test/core_test_app/app/assets/javascripts/expect/expect.js
|
183
|
-
- test/core_test_app/app/assets/javascripts/mocha/mocha.js
|
184
|
-
- test/core_test_app/app/assets/stylesheets/mocha/mocha.css
|
185
|
-
- test/core_test_app/app/components/actions.rb
|
186
|
-
- test/core_test_app/app/components/component_with_prebuilt_toolbar_control/javascripts/component_with_prebuilt_toolbar_control.js
|
187
|
-
- test/core_test_app/app/components/component_with_prebuilt_toolbar_control.rb
|
188
|
-
- test/core_test_app/app/components/composition.rb
|
189
|
-
- test/core_test_app/app/components/configurable_on_class_level.rb
|
190
|
-
- test/core_test_app/app/components/css_inclusion/stylesheets/custom.css
|
191
|
-
- test/core_test_app/app/components/css_inclusion.rb
|
192
|
-
- test/core_test_app/app/components/dynamic_loading/javascripts/dynamic_loading.js
|
193
|
-
- test/core_test_app/app/components/dynamic_loading.rb
|
194
|
-
- test/core_test_app/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js
|
195
|
-
- test/core_test_app/app/components/endpoints/javascripts/endpoints.js
|
196
|
-
- test/core_test_app/app/components/endpoints.rb
|
197
|
-
- test/core_test_app/app/components/endpoints_extended.rb
|
198
|
-
- test/core_test_app/app/components/ext_direct/composite.rb
|
199
|
-
- test/core_test_app/app/components/ext_direct/details.rb
|
200
|
-
- test/core_test_app/app/components/ext_direct/selector.rb
|
201
|
-
- test/core_test_app/app/components/ext_direct/statistics.rb
|
202
|
-
- test/core_test_app/app/components/feedback.rb
|
203
|
-
- test/core_test_app/app/components/haml_panel/html/body.html.haml
|
204
|
-
- test/core_test_app/app/components/haml_panel/html/server_response.html.haml
|
205
|
-
- test/core_test_app/app/components/haml_panel.rb
|
206
|
-
- test/core_test_app/app/components/hello_user.rb
|
207
|
-
- test/core_test_app/app/components/hello_world/javascripts/hello_world.js
|
208
|
-
- test/core_test_app/app/components/hello_world.rb
|
209
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/extra_one.js
|
210
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/extra_two.js
|
211
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/js_inclusion.js
|
212
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/method_set_one.js
|
213
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/method_set_two.js
|
214
|
-
- test/core_test_app/app/components/js_inclusion.rb
|
215
|
-
- test/core_test_app/app/components/js_inclusion_extended/javascripts/some_method_set.js
|
216
|
-
- test/core_test_app/app/components/js_inclusion_extended.rb
|
217
|
-
- test/core_test_app/app/components/loaded_css_inclusion.rb
|
218
|
-
- test/core_test_app/app/components/localization.rb
|
219
|
-
- test/core_test_app/app/components/localization_extended.rb
|
220
|
-
- test/core_test_app/app/components/multi_instance_loading/javascripts/multi_instance_loading.js
|
221
|
-
- test/core_test_app/app/components/multi_instance_loading.rb
|
222
|
-
- test/core_test_app/app/components/persistence.rb
|
223
|
-
- test/core_test_app/app/components/persistence_with_shared_state.rb
|
224
|
-
- test/core_test_app/app/components/plugin_with_actions.rb
|
225
|
-
- test/core_test_app/app/components/plugin_with_components.rb
|
226
|
-
- test/core_test_app/app/components/plugin_with_endpoints.rb
|
227
|
-
- test/core_test_app/app/components/plugins.rb
|
228
|
-
- test/core_test_app/app/components/ruby_modules/basic_stuff.rb
|
229
|
-
- test/core_test_app/app/components/ruby_modules/extra_stuff.rb
|
230
|
-
- test/core_test_app/app/components/ruby_modules.rb
|
231
|
-
- test/core_test_app/app/components/scoped/deeply_scoped/scoping.rb
|
232
|
-
- test/core_test_app/app/components/scoped/scoping.rb
|
233
|
-
- test/core_test_app/app/components/scoped/scoping_extended.rb
|
234
|
-
- test/core_test_app/app/components/self_reloading.rb
|
235
|
-
- test/core_test_app/app/components/server_counter/javascripts/server_counter.js
|
236
|
-
- test/core_test_app/app/components/server_counter.rb
|
237
|
-
- test/core_test_app/app/components/session_expiration.rb
|
238
|
-
- test/core_test_app/app/components/simple_authentication_component.rb
|
239
|
-
- test/core_test_app/app/components/simple_component.rb
|
240
|
-
- test/core_test_app/app/components/simple_composite.rb
|
241
|
-
- test/core_test_app/app/components/simple_form_with_file_upload.rb
|
242
|
-
- test/core_test_app/app/components/simple_panel.rb
|
243
|
-
- test/core_test_app/app/components/simple_tab_panel.rb
|
244
|
-
- test/core_test_app/app/components/simple_window.rb
|
245
|
-
- test/core_test_app/app/components/tools.rb
|
246
|
-
- test/core_test_app/app/components/window_with_simple_component.rb
|
247
|
-
- test/core_test_app/app/controllers/alternative_controller.rb
|
248
|
-
- test/core_test_app/app/controllers/application_controller.rb
|
249
|
-
- test/core_test_app/app/controllers/components_controller.rb
|
250
|
-
- test/core_test_app/app/controllers/simple_rails_controller.rb
|
251
|
-
- test/core_test_app/app/controllers/specs_controller.rb
|
252
|
-
- test/core_test_app/app/controllers/welcome_controller.rb
|
253
|
-
- test/core_test_app/app/helpers/application_helper.rb
|
254
|
-
- test/core_test_app/app/views/components/panel_with_autoload.html.erb
|
255
|
-
- test/core_test_app/app/views/components/some_tab_panel.html.erb
|
256
|
-
- test/core_test_app/app/views/layouts/application.html.erb
|
257
|
-
- test/core_test_app/app/views/layouts/nested.html.erb
|
258
|
-
- test/core_test_app/app/views/simple_rails/multiple_nested.html.erb
|
259
|
-
- test/core_test_app/app/views/simple_rails/multiple_of_different_class.html.erb
|
260
|
-
- test/core_test_app/app/views/simple_rails/multiple_of_same_class.html.erb
|
261
|
-
- test/core_test_app/app/views/simple_rails/panel.html.erb
|
262
|
-
- test/core_test_app/config/application.rb
|
263
|
-
- test/core_test_app/config/boot.rb
|
264
|
-
- test/core_test_app/config/database.yml
|
265
|
-
- test/core_test_app/config/environment.rb
|
266
|
-
- test/core_test_app/config/environments/development.rb
|
267
|
-
- test/core_test_app/config/environments/production.rb
|
268
|
-
- test/core_test_app/config/environments/test.rb
|
269
|
-
- test/core_test_app/config/initializers/backtrace_silencers.rb
|
270
|
-
- test/core_test_app/config/initializers/inflections.rb
|
271
|
-
- test/core_test_app/config/initializers/javascripts/session_expiration.js
|
272
|
-
- test/core_test_app/config/initializers/mime_types.rb
|
273
|
-
- test/core_test_app/config/initializers/netzke.rb
|
274
|
-
- test/core_test_app/config/initializers/secret_token.rb
|
275
|
-
- test/core_test_app/config/initializers/session_store.rb
|
276
|
-
- test/core_test_app/config/locales/en.yml
|
277
|
-
- test/core_test_app/config/locales/es.yml
|
278
|
-
- test/core_test_app/config/routes.rb
|
279
|
-
- test/core_test_app/config.ru
|
280
|
-
- test/core_test_app/core_test_app.tmproj
|
281
|
-
- test/core_test_app/db/development.sqlite3
|
282
|
-
- test/core_test_app/db/development_structure.sql
|
283
|
-
- test/core_test_app/db/seeds.rb
|
284
|
-
- test/core_test_app/db/test.sqlite3
|
285
|
-
- test/core_test_app/log/development.log
|
286
|
-
- test/core_test_app/log/production.log
|
287
|
-
- test/core_test_app/log/test.log
|
288
|
-
- test/core_test_app/public/404.html
|
289
|
-
- test/core_test_app/public/422.html
|
290
|
-
- test/core_test_app/public/500.html
|
291
|
-
- test/core_test_app/public/favicon.ico
|
292
|
-
- test/core_test_app/public/images/icons/accept.png
|
293
|
-
- test/core_test_app/public/images/icons/anchor.png
|
294
|
-
- test/core_test_app/public/images/icons/tick.png
|
295
|
-
- test/core_test_app/public/images/rails.png
|
296
|
-
- test/core_test_app/public/robots.txt
|
297
|
-
- test/core_test_app/rails_app.tmproj
|
298
|
-
- test/core_test_app/Rakefile
|
299
|
-
- test/core_test_app/README
|
300
|
-
- test/core_test_app/script/rails
|
301
|
-
- test/core_test_app/tmp/cache/assets/C8B/BF0/sprockets%2F54de2792b036d1dab855f88599503551
|
302
|
-
- test/core_test_app/tmp/cache/assets/C92/5A0/sprockets%2F39e75754782ee12179bf35c9a0971d80
|
303
|
-
- test/core_test_app/tmp/cache/assets/C99/720/sprockets%2F981d5a1b957a012e380b22011a6d176d
|
304
|
-
- test/core_test_app/tmp/cache/assets/C9F/750/sprockets%2F20ce3d64040a5d3a0a8883bd60754356
|
305
|
-
- test/core_test_app/tmp/cache/assets/CC4/C00/sprockets%2Fc615df52887d8c2e67e8413576a419c5
|
306
|
-
- test/core_test_app/tmp/cache/assets/CF1/3F0/sprockets%2Fc69ee42924fab565a3533d56473ce878
|
307
|
-
- test/core_test_app/tmp/cache/assets/D0E/870/sprockets%2Fa593bf4fac106add88c9434141a49663
|
308
|
-
- test/core_test_app/tmp/cache/assets/D14/8E0/sprockets%2F20748e8d1d7d090d122904a9fe6f18fc
|
309
|
-
- test/core_test_app/tmp/cache/assets/D3E/DA0/sprockets%2Fa175f1ac5996544b908ba3ba3f64c4f3
|
310
|
-
- test/core_test_app/tmp/cache/assets/D43/C00/sprockets%2F7bc60c758776356d615ab5edff201ee2
|
311
|
-
- test/core_test_app/tmp/cache/assets/D4B/C50/sprockets%2F8483b7e322da338e8f9eb3b30a957e9a
|
312
|
-
- test/core_test_app/tmp/cache/assets/D64/090/sprockets%2F5a01ff309c3f2503eb5e4f5667cca4b3
|
313
|
-
- test/core_test_app/tmp/cache/assets/D8B/FB0/sprockets%2F7a86225caaa389f1be600b4f3a2d1ef0
|
314
|
-
- test/core_test_app/tmp/cache/assets/D98/9C0/sprockets%2F18b80e8fe200aebc522e561a867ea6fb
|
315
|
-
- test/core_test_app/tmp/cache/assets/DB0/6E0/sprockets%2F03e33f5a4779eeb48bcfc86ee717fb55
|
316
|
-
- test/core_test_app/tmp/cache/assets/DED/7E0/sprockets%2Feaedd52ba538f19e4ab543a3e20ce2c4
|
317
|
-
- test/core_test_app/tmp/cache/assets/E07/FF0/sprockets%2Fb3c071e0a6de36f041adbbdaa8ab060b
|
318
|
-
- test/core_test_app/tmp/capybara/capybara-20101214105940.html
|
319
|
-
- test/core_test_app/tmp/capybara/capybara-20101214110642.html
|
320
|
-
- test/core_test_app/tmp/capybara/capybara-20101214110749.html
|
321
|
-
- test/core_test_app/tmp/capybara/capybara-20101214110750.html
|
322
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111025.html
|
323
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111027.html
|
324
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111213.html
|
325
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111214.html
|
326
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111332.html
|
327
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111333.html
|
328
|
-
- test/core_test_app/tmp/pids/passenger.3000.pid.lock
|
329
|
-
- test/core_test_app/tmp/restart.txt
|
330
|
-
- test/test_helper.rb
|
331
196
|
homepage: http://netzke.org
|
332
197
|
licenses: []
|
333
198
|
metadata: {}
|
@@ -337,168 +202,19 @@ require_paths:
|
|
337
202
|
- lib
|
338
203
|
required_ruby_version: !ruby/object:Gem::Requirement
|
339
204
|
requirements:
|
340
|
-
- -
|
205
|
+
- - '>='
|
341
206
|
- !ruby/object:Gem::Version
|
342
207
|
version: '0'
|
343
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
344
209
|
requirements:
|
345
|
-
- -
|
210
|
+
- - '>='
|
346
211
|
- !ruby/object:Gem::Version
|
347
212
|
version: 1.3.4
|
348
213
|
requirements: []
|
349
214
|
rubyforge_project:
|
350
|
-
rubygems_version: 2.
|
215
|
+
rubygems_version: 2.1.10
|
351
216
|
signing_key:
|
352
217
|
specification_version: 4
|
353
218
|
summary: Client-server GUI components with Sencha Ext JS and Ruby on Rails
|
354
|
-
test_files:
|
355
|
-
- test/core_test_app/app/assets/javascripts/expect/expect.js
|
356
|
-
- test/core_test_app/app/assets/javascripts/mocha/mocha.js
|
357
|
-
- test/core_test_app/app/assets/stylesheets/mocha/mocha.css
|
358
|
-
- test/core_test_app/app/components/actions.rb
|
359
|
-
- test/core_test_app/app/components/component_with_prebuilt_toolbar_control/javascripts/component_with_prebuilt_toolbar_control.js
|
360
|
-
- test/core_test_app/app/components/component_with_prebuilt_toolbar_control.rb
|
361
|
-
- test/core_test_app/app/components/composition.rb
|
362
|
-
- test/core_test_app/app/components/configurable_on_class_level.rb
|
363
|
-
- test/core_test_app/app/components/css_inclusion/stylesheets/custom.css
|
364
|
-
- test/core_test_app/app/components/css_inclusion.rb
|
365
|
-
- test/core_test_app/app/components/dynamic_loading/javascripts/dynamic_loading.js
|
366
|
-
- test/core_test_app/app/components/dynamic_loading.rb
|
367
|
-
- test/core_test_app/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js
|
368
|
-
- test/core_test_app/app/components/endpoints/javascripts/endpoints.js
|
369
|
-
- test/core_test_app/app/components/endpoints.rb
|
370
|
-
- test/core_test_app/app/components/endpoints_extended.rb
|
371
|
-
- test/core_test_app/app/components/ext_direct/composite.rb
|
372
|
-
- test/core_test_app/app/components/ext_direct/details.rb
|
373
|
-
- test/core_test_app/app/components/ext_direct/selector.rb
|
374
|
-
- test/core_test_app/app/components/ext_direct/statistics.rb
|
375
|
-
- test/core_test_app/app/components/feedback.rb
|
376
|
-
- test/core_test_app/app/components/haml_panel/html/body.html.haml
|
377
|
-
- test/core_test_app/app/components/haml_panel/html/server_response.html.haml
|
378
|
-
- test/core_test_app/app/components/haml_panel.rb
|
379
|
-
- test/core_test_app/app/components/hello_user.rb
|
380
|
-
- test/core_test_app/app/components/hello_world/javascripts/hello_world.js
|
381
|
-
- test/core_test_app/app/components/hello_world.rb
|
382
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/extra_one.js
|
383
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/extra_two.js
|
384
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/js_inclusion.js
|
385
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/method_set_one.js
|
386
|
-
- test/core_test_app/app/components/js_inclusion/javascripts/method_set_two.js
|
387
|
-
- test/core_test_app/app/components/js_inclusion.rb
|
388
|
-
- test/core_test_app/app/components/js_inclusion_extended/javascripts/some_method_set.js
|
389
|
-
- test/core_test_app/app/components/js_inclusion_extended.rb
|
390
|
-
- test/core_test_app/app/components/loaded_css_inclusion.rb
|
391
|
-
- test/core_test_app/app/components/localization.rb
|
392
|
-
- test/core_test_app/app/components/localization_extended.rb
|
393
|
-
- test/core_test_app/app/components/multi_instance_loading/javascripts/multi_instance_loading.js
|
394
|
-
- test/core_test_app/app/components/multi_instance_loading.rb
|
395
|
-
- test/core_test_app/app/components/persistence.rb
|
396
|
-
- test/core_test_app/app/components/persistence_with_shared_state.rb
|
397
|
-
- test/core_test_app/app/components/plugin_with_actions.rb
|
398
|
-
- test/core_test_app/app/components/plugin_with_components.rb
|
399
|
-
- test/core_test_app/app/components/plugin_with_endpoints.rb
|
400
|
-
- test/core_test_app/app/components/plugins.rb
|
401
|
-
- test/core_test_app/app/components/ruby_modules/basic_stuff.rb
|
402
|
-
- test/core_test_app/app/components/ruby_modules/extra_stuff.rb
|
403
|
-
- test/core_test_app/app/components/ruby_modules.rb
|
404
|
-
- test/core_test_app/app/components/scoped/deeply_scoped/scoping.rb
|
405
|
-
- test/core_test_app/app/components/scoped/scoping.rb
|
406
|
-
- test/core_test_app/app/components/scoped/scoping_extended.rb
|
407
|
-
- test/core_test_app/app/components/self_reloading.rb
|
408
|
-
- test/core_test_app/app/components/server_counter/javascripts/server_counter.js
|
409
|
-
- test/core_test_app/app/components/server_counter.rb
|
410
|
-
- test/core_test_app/app/components/session_expiration.rb
|
411
|
-
- test/core_test_app/app/components/simple_authentication_component.rb
|
412
|
-
- test/core_test_app/app/components/simple_component.rb
|
413
|
-
- test/core_test_app/app/components/simple_composite.rb
|
414
|
-
- test/core_test_app/app/components/simple_form_with_file_upload.rb
|
415
|
-
- test/core_test_app/app/components/simple_panel.rb
|
416
|
-
- test/core_test_app/app/components/simple_tab_panel.rb
|
417
|
-
- test/core_test_app/app/components/simple_window.rb
|
418
|
-
- test/core_test_app/app/components/tools.rb
|
419
|
-
- test/core_test_app/app/components/window_with_simple_component.rb
|
420
|
-
- test/core_test_app/app/controllers/alternative_controller.rb
|
421
|
-
- test/core_test_app/app/controllers/application_controller.rb
|
422
|
-
- test/core_test_app/app/controllers/components_controller.rb
|
423
|
-
- test/core_test_app/app/controllers/simple_rails_controller.rb
|
424
|
-
- test/core_test_app/app/controllers/specs_controller.rb
|
425
|
-
- test/core_test_app/app/controllers/welcome_controller.rb
|
426
|
-
- test/core_test_app/app/helpers/application_helper.rb
|
427
|
-
- test/core_test_app/app/views/components/panel_with_autoload.html.erb
|
428
|
-
- test/core_test_app/app/views/components/some_tab_panel.html.erb
|
429
|
-
- test/core_test_app/app/views/layouts/application.html.erb
|
430
|
-
- test/core_test_app/app/views/layouts/nested.html.erb
|
431
|
-
- test/core_test_app/app/views/simple_rails/multiple_nested.html.erb
|
432
|
-
- test/core_test_app/app/views/simple_rails/multiple_of_different_class.html.erb
|
433
|
-
- test/core_test_app/app/views/simple_rails/multiple_of_same_class.html.erb
|
434
|
-
- test/core_test_app/app/views/simple_rails/panel.html.erb
|
435
|
-
- test/core_test_app/config/application.rb
|
436
|
-
- test/core_test_app/config/boot.rb
|
437
|
-
- test/core_test_app/config/database.yml
|
438
|
-
- test/core_test_app/config/environment.rb
|
439
|
-
- test/core_test_app/config/environments/development.rb
|
440
|
-
- test/core_test_app/config/environments/production.rb
|
441
|
-
- test/core_test_app/config/environments/test.rb
|
442
|
-
- test/core_test_app/config/initializers/backtrace_silencers.rb
|
443
|
-
- test/core_test_app/config/initializers/inflections.rb
|
444
|
-
- test/core_test_app/config/initializers/javascripts/session_expiration.js
|
445
|
-
- test/core_test_app/config/initializers/mime_types.rb
|
446
|
-
- test/core_test_app/config/initializers/netzke.rb
|
447
|
-
- test/core_test_app/config/initializers/secret_token.rb
|
448
|
-
- test/core_test_app/config/initializers/session_store.rb
|
449
|
-
- test/core_test_app/config/locales/en.yml
|
450
|
-
- test/core_test_app/config/locales/es.yml
|
451
|
-
- test/core_test_app/config/routes.rb
|
452
|
-
- test/core_test_app/config.ru
|
453
|
-
- test/core_test_app/core_test_app.tmproj
|
454
|
-
- test/core_test_app/db/development.sqlite3
|
455
|
-
- test/core_test_app/db/development_structure.sql
|
456
|
-
- test/core_test_app/db/seeds.rb
|
457
|
-
- test/core_test_app/db/test.sqlite3
|
458
|
-
- test/core_test_app/log/development.log
|
459
|
-
- test/core_test_app/log/production.log
|
460
|
-
- test/core_test_app/log/test.log
|
461
|
-
- test/core_test_app/public/404.html
|
462
|
-
- test/core_test_app/public/422.html
|
463
|
-
- test/core_test_app/public/500.html
|
464
|
-
- test/core_test_app/public/favicon.ico
|
465
|
-
- test/core_test_app/public/images/icons/accept.png
|
466
|
-
- test/core_test_app/public/images/icons/anchor.png
|
467
|
-
- test/core_test_app/public/images/icons/tick.png
|
468
|
-
- test/core_test_app/public/images/rails.png
|
469
|
-
- test/core_test_app/public/robots.txt
|
470
|
-
- test/core_test_app/rails_app.tmproj
|
471
|
-
- test/core_test_app/Rakefile
|
472
|
-
- test/core_test_app/README
|
473
|
-
- test/core_test_app/script/rails
|
474
|
-
- test/core_test_app/tmp/cache/assets/C8B/BF0/sprockets%2F54de2792b036d1dab855f88599503551
|
475
|
-
- test/core_test_app/tmp/cache/assets/C92/5A0/sprockets%2F39e75754782ee12179bf35c9a0971d80
|
476
|
-
- test/core_test_app/tmp/cache/assets/C99/720/sprockets%2F981d5a1b957a012e380b22011a6d176d
|
477
|
-
- test/core_test_app/tmp/cache/assets/C9F/750/sprockets%2F20ce3d64040a5d3a0a8883bd60754356
|
478
|
-
- test/core_test_app/tmp/cache/assets/CC4/C00/sprockets%2Fc615df52887d8c2e67e8413576a419c5
|
479
|
-
- test/core_test_app/tmp/cache/assets/CF1/3F0/sprockets%2Fc69ee42924fab565a3533d56473ce878
|
480
|
-
- test/core_test_app/tmp/cache/assets/D0E/870/sprockets%2Fa593bf4fac106add88c9434141a49663
|
481
|
-
- test/core_test_app/tmp/cache/assets/D14/8E0/sprockets%2F20748e8d1d7d090d122904a9fe6f18fc
|
482
|
-
- test/core_test_app/tmp/cache/assets/D3E/DA0/sprockets%2Fa175f1ac5996544b908ba3ba3f64c4f3
|
483
|
-
- test/core_test_app/tmp/cache/assets/D43/C00/sprockets%2F7bc60c758776356d615ab5edff201ee2
|
484
|
-
- test/core_test_app/tmp/cache/assets/D4B/C50/sprockets%2F8483b7e322da338e8f9eb3b30a957e9a
|
485
|
-
- test/core_test_app/tmp/cache/assets/D64/090/sprockets%2F5a01ff309c3f2503eb5e4f5667cca4b3
|
486
|
-
- test/core_test_app/tmp/cache/assets/D8B/FB0/sprockets%2F7a86225caaa389f1be600b4f3a2d1ef0
|
487
|
-
- test/core_test_app/tmp/cache/assets/D98/9C0/sprockets%2F18b80e8fe200aebc522e561a867ea6fb
|
488
|
-
- test/core_test_app/tmp/cache/assets/DB0/6E0/sprockets%2F03e33f5a4779eeb48bcfc86ee717fb55
|
489
|
-
- test/core_test_app/tmp/cache/assets/DED/7E0/sprockets%2Feaedd52ba538f19e4ab543a3e20ce2c4
|
490
|
-
- test/core_test_app/tmp/cache/assets/E07/FF0/sprockets%2Fb3c071e0a6de36f041adbbdaa8ab060b
|
491
|
-
- test/core_test_app/tmp/capybara/capybara-20101214105940.html
|
492
|
-
- test/core_test_app/tmp/capybara/capybara-20101214110642.html
|
493
|
-
- test/core_test_app/tmp/capybara/capybara-20101214110749.html
|
494
|
-
- test/core_test_app/tmp/capybara/capybara-20101214110750.html
|
495
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111025.html
|
496
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111027.html
|
497
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111213.html
|
498
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111214.html
|
499
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111332.html
|
500
|
-
- test/core_test_app/tmp/capybara/capybara-20101214111333.html
|
501
|
-
- test/core_test_app/tmp/pids/passenger.3000.pid.lock
|
502
|
-
- test/core_test_app/tmp/restart.txt
|
503
|
-
- test/test_helper.rb
|
219
|
+
test_files: []
|
504
220
|
has_rdoc:
|