netzke-core 0.7.7 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -2
- data/CHANGELOG.md +572 -0
- data/LICENSE +7 -1
- data/README.md +345 -29
- data/Rakefile +3 -3
- data/app/controllers/netzke_controller.rb +37 -48
- data/config/ci/before-travis.sh +3 -4
- data/javascripts/base.js +86 -150
- data/javascripts/ext.js +180 -210
- data/javascripts/{core_extensions.js → js_extensions.js} +0 -0
- data/lib/netzke-core.rb +16 -6
- data/lib/netzke/base.rb +84 -107
- data/lib/netzke/core.rb +7 -41
- data/lib/netzke/core/action_config.rb +37 -0
- data/lib/netzke/core/actions.rb +123 -0
- data/lib/netzke/core/client_class.rb +252 -0
- data/lib/netzke/core/component_config.rb +12 -0
- data/lib/netzke/core/composition.rb +274 -0
- data/lib/netzke/core/config_to_dsl_delegator.rb +69 -0
- data/lib/netzke/core/configuration.rb +63 -0
- data/lib/netzke/core/css_config.rb +51 -0
- data/lib/netzke/core/dynamic_assets.rb +19 -49
- data/lib/netzke/{embedding.rb → core/embedding.rb} +4 -6
- data/lib/netzke/core/endpoint_response.rb +15 -0
- data/lib/netzke/core/javascript.rb +111 -0
- data/lib/netzke/core/panel.rb +11 -0
- data/lib/netzke/{plugins.rb → core/plugins.rb} +10 -5
- data/lib/netzke/core/railz.rb +4 -0
- data/lib/netzke/{railz → core/railz}/action_view_ext.rb +22 -18
- data/lib/netzke/core/railz/action_view_ext/ext.rb +49 -0
- data/lib/netzke/core/railz/controller_extensions.rb +17 -0
- data/lib/netzke/core/railz/engine.rb +16 -0
- data/lib/netzke/core/railz/routes.rb +10 -0
- data/lib/netzke/core/ruby_ext.rb +5 -0
- data/lib/netzke/core/ruby_ext/array.rb +23 -0
- data/lib/netzke/core/ruby_ext/hash.rb +47 -0
- data/lib/netzke/{core_ext → core/ruby_ext}/string.rb +2 -7
- data/lib/netzke/core/ruby_ext/symbol.rb +13 -0
- data/lib/netzke/{core_ext → core/ruby_ext}/time_with_zone.rb +0 -0
- data/lib/netzke/core/services.rb +130 -0
- data/lib/netzke/core/session.rb +15 -19
- data/lib/netzke/core/state.rb +40 -0
- data/lib/netzke/core/stylesheets.rb +48 -0
- data/lib/netzke/core/version.rb +2 -2
- data/lib/netzke/plugin.rb +8 -11
- data/netzke-core.gemspec +69 -59
- data/test/core_test_app/Gemfile +2 -20
- data/test/core_test_app/Gemfile.lock +65 -74
- data/test/core_test_app/app/components/card_component_loader.rb +4 -4
- data/test/core_test_app/app/components/component_loader.rb +40 -120
- data/test/core_test_app/app/components/component_loader/javascripts/component_loader.js +49 -0
- data/test/core_test_app/app/components/component_with_actions.rb +61 -47
- data/test/core_test_app/app/components/component_with_custom_css.rb +8 -5
- data/test/core_test_app/app/components/component_with_js_mixin.rb +11 -5
- data/test/core_test_app/app/components/component_with_js_mixin/javascripts/extra_one.js +1 -1
- data/test/core_test_app/app/components/component_with_js_mixin/javascripts/extra_two.js +1 -1
- data/test/core_test_app/app/components/component_with_js_mixin/javascripts/method_set_one.js +1 -1
- data/test/core_test_app/app/components/component_with_nested_through.rb +2 -2
- data/test/core_test_app/app/components/component_with_prebuilt_toolbar_control.rb +12 -0
- data/test/core_test_app/app/components/component_with_prebuilt_toolbar_control/javascripts/component_with_prebuilt_toolbar_control.js +12 -0
- data/test/core_test_app/app/components/component_with_required_js.rb +24 -0
- data/test/core_test_app/app/components/configurable_on_class_level.rb +8 -0
- data/test/core_test_app/app/components/dsl_delegated_properties.rb +4 -0
- data/test/core_test_app/app/components/dsl_delegated_properties_base.rb +5 -0
- data/test/core_test_app/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js +2 -2
- data/test/core_test_app/app/components/ext_direct/composite.rb +32 -33
- data/test/core_test_app/app/components/ext_direct/details.rb +2 -4
- data/test/core_test_app/app/components/ext_direct/selector.rb +20 -22
- data/test/core_test_app/app/components/ext_direct/statistics.rb +2 -4
- data/test/core_test_app/app/components/extended_component_with_actions.rb +7 -3
- data/test/core_test_app/app/components/extended_component_with_js_mixin.rb +7 -4
- data/test/core_test_app/app/components/extended_component_with_js_mixin/javascripts/some_method_set.js +1 -1
- data/test/core_test_app/app/components/extended_server_caller.rb +20 -14
- data/test/core_test_app/app/components/hello_world.rb +23 -0
- data/test/core_test_app/app/components/hello_world/javascripts/hello_world.js +12 -0
- data/test/core_test_app/app/components/included.js +2 -2
- data/test/core_test_app/app/components/kinda_complex_component.rb +1 -3
- data/test/core_test_app/app/components/kinda_complex_component/basic_stuff.rb +15 -17
- data/test/core_test_app/app/components/kinda_complex_component/extra_stuff.rb +4 -5
- data/test/core_test_app/app/components/loader_of_component_with_custom_css.rb +14 -5
- data/test/core_test_app/app/components/localized_panel.rb +23 -25
- data/test/core_test_app/app/components/multipane_component_loader.rb +19 -20
- data/test/core_test_app/app/components/nested_component.rb +4 -5
- data/test/core_test_app/app/components/panel_with_plugin.rb +8 -3
- data/test/core_test_app/app/components/panel_with_tools.rb +15 -14
- data/test/core_test_app/app/components/plugin_with_components.rb +20 -12
- data/test/core_test_app/app/components/scoped_components/deep_scoped_components/some_deep_scoped_component.rb +5 -2
- data/test/core_test_app/app/components/scoped_components/extended_scoped_component.rb +5 -2
- data/test/core_test_app/app/components/scoped_components/some_scoped_component.rb +5 -2
- data/test/core_test_app/app/components/server_caller.rb +39 -17
- data/test/core_test_app/app/components/server_caller/javascripts/server_caller.js +42 -0
- data/test/core_test_app/app/components/server_counter.rb +18 -82
- data/test/core_test_app/app/components/server_counter/javascripts/server_counter.js +53 -0
- data/test/core_test_app/app/components/simple_authentication_component.rb +46 -0
- data/test/core_test_app/app/components/simple_component.rb +8 -3
- data/test/core_test_app/app/components/simple_composite.rb +12 -0
- data/test/core_test_app/app/components/simple_form_with_file_upload.rb +49 -0
- data/test/core_test_app/app/components/simple_panel.rb +2 -2
- data/test/core_test_app/app/components/simple_tab_panel.rb +24 -3
- data/test/core_test_app/app/components/simple_window.rb +4 -2
- data/test/core_test_app/app/components/some_composite.rb +77 -48
- data/test/core_test_app/app/components/some_plugin.rb +31 -30
- data/test/core_test_app/app/components/stateful_component.rb +46 -0
- data/test/core_test_app/app/components/stateful_component_with_shared_state.rb +11 -0
- data/test/core_test_app/app/components/window_with_simple_component.rb +14 -0
- data/test/core_test_app/app/views/layouts/application.html.erb +1 -1
- data/test/core_test_app/app/views/simple_rails/multiple_nested.html.erb +7 -19
- data/test/core_test_app/app/views/simple_rails/panel.html.erb +1 -0
- data/test/core_test_app/config/database.yml.travis +3 -5
- data/test/core_test_app/config/environments/production.rb +1 -1
- data/test/core_test_app/config/initializers/netzke.rb +3 -1
- data/test/core_test_app/config/locales/en.yml +9 -4
- data/test/core_test_app/config/locales/es.yml +4 -2
- data/test/core_test_app/config/routes.rb +2 -8
- data/test/core_test_app/db/schema.rb +3 -11
- data/test/core_test_app/features/actions_and_tools.feature +1 -0
- data/test/core_test_app/features/client-server.feature +7 -0
- data/test/core_test_app/features/component_loader.feature +13 -13
- data/test/core_test_app/features/composition.feature +14 -0
- data/test/core_test_app/features/config_to_dsl_delegation.feature +10 -0
- data/test/core_test_app/features/file_inclusion.feature +1 -1
- data/test/core_test_app/features/i18n.feature +4 -4
- data/test/core_test_app/features/js_include.feature +1 -1
- data/test/core_test_app/features/persistence.feature +21 -5
- data/test/core_test_app/features/step_definitions/generic_steps.rb +14 -0
- data/test/core_test_app/features/support/paths.rb +0 -3
- 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/spec/action_config_spec.rb +15 -0
- data/test/core_test_app/spec/{component/actions_spec.rb → actions_spec.rb} +38 -36
- data/test/core_test_app/spec/base_spec.rb +35 -0
- data/test/core_test_app/spec/client_class_spec.rb +17 -0
- data/test/core_test_app/spec/component +0 -0
- data/test/core_test_app/spec/composition_spec.rb +118 -0
- data/test/core_test_app/spec/core_ext_spec.rb +3 -14
- data/test/core_test_app/spec/endpoint_response_spec.rb +17 -0
- data/test/core_test_app/spec/javascript_spec.rb +33 -0
- data/test/core_test_app/spec/js_class_config_scope.rb +37 -0
- data/test/core_test_app/spec/panel_spec.rb +11 -0
- data/test/core_test_app/spec/services_spec.rb +16 -0
- data/test/core_test_app/spec/state_spec.rb +20 -0
- data/test/unit/core_ext_test.rb +0 -53
- data/test/unit/netzke_core_test.rb +11 -11
- metadata +76 -62
- data/CHANGELOG.rdoc +0 -325
- data/javascripts/touch.js +0 -58
- data/lib/netzke/actions.rb +0 -107
- data/lib/netzke/composition.rb +0 -224
- data/lib/netzke/config_to_dsl_delegator.rb +0 -43
- data/lib/netzke/configuration.rb +0 -195
- data/lib/netzke/core/masquerading.rb +0 -34
- data/lib/netzke/core_ext.rb +0 -6
- data/lib/netzke/core_ext/array.rb +0 -30
- data/lib/netzke/core_ext/hash.rb +0 -86
- data/lib/netzke/core_ext/symbol.rb +0 -21
- data/lib/netzke/ext_component.rb +0 -25
- data/lib/netzke/inheritance.rb +0 -31
- data/lib/netzke/javascript.rb +0 -382
- data/lib/netzke/javascript/scopes.rb +0 -39
- data/lib/netzke/railz.rb +0 -4
- data/lib/netzke/railz/action_view_ext/ext.rb +0 -64
- data/lib/netzke/railz/action_view_ext/touch.rb +0 -52
- data/lib/netzke/railz/controller_extensions.rb +0 -33
- data/lib/netzke/railz/engine.rb +0 -48
- data/lib/netzke/railz/routes.rb +0 -7
- data/lib/netzke/services.rb +0 -101
- data/lib/netzke/session.rb +0 -54
- data/lib/netzke/state.rb +0 -91
- data/lib/netzke/stylesheets.rb +0 -65
- data/test/core_test_app/app/components/component_with_included_js.rb +0 -16
- data/test/core_test_app/app/components/component_with_session_persistence.rb +0 -35
- data/test/core_test_app/app/components/deprecated/server_caller.rb +0 -20
- data/test/core_test_app/app/components/dynamic_tab_panel.rb +0 -19
- data/test/core_test_app/app/components/hello_world_component.rb +0 -31
- data/test/core_test_app/app/components/touch/hello_world_component.rb +0 -25
- data/test/core_test_app/app/components/touch/server_caller.rb +0 -28
- data/test/core_test_app/app/components/touch/simple_carousel.rb +0 -17
- data/test/core_test_app/app/controllers/touch_controller.rb +0 -6
- data/test/core_test_app/app/helpers/touch_helper.rb +0 -2
- data/test/core_test_app/app/views/layouts/touch.html.erb +0 -13
- data/test/core_test_app/db/migrate/20110110132720_create_netzke_component_states.rb +0 -20
- data/test/core_test_app/features/step_definitions/touch_steps.rb +0 -3
- data/test/core_test_app/features/touch.feature +0 -10
- data/test/core_test_app/gemfiles/rails3_1.gemfile +0 -16
- data/test/core_test_app/gemfiles/rails3_2.gemfile +0 -16
- data/test/core_test_app/spec/component/base_spec.rb +0 -36
- data/test/core_test_app/spec/component/component_spec.rb +0 -20
- data/test/core_test_app/spec/component/composition_spec.rb +0 -132
- data/test/core_test_app/spec/component/configuration_spec.rb +0 -61
- data/test/core_test_app/spec/component/javascript_spec.rb +0 -16
- data/test/core_test_app/spec/component/state_spec.rb +0 -18
@@ -0,0 +1,40 @@
|
|
1
|
+
module Netzke::Core
|
2
|
+
# A component can access and update its state through the +state+ method, e.g.:
|
3
|
+
#
|
4
|
+
# state[:position] = {:x => 100, :y => 200}
|
5
|
+
#
|
6
|
+
# state[:position] #=> {:x => 100, :y => 200}
|
7
|
+
#
|
8
|
+
# Default implementation uses session to store stateful data, but can be implemented differently by 3rd-party gems.
|
9
|
+
#
|
10
|
+
# == Sharing state
|
11
|
+
#
|
12
|
+
# Different components can share the state by specifying the same +persistent_key+ option.
|
13
|
+
#
|
14
|
+
# Note that the provided persistence_key has effect on _application_ level, _not_ only within the view.
|
15
|
+
# By default +persistence_key+ is set to component's +js_id+. Thus, _two components named equally will share the state even being used in different Rails views_.
|
16
|
+
module State
|
17
|
+
# A string which identifies the component. Can be passed as +persistence_key+ config option. Two components with the same +persistence_key+ will be sharing the state.
|
18
|
+
# If +persistence_key+ is passed, use it. Otherwise use js_id.
|
19
|
+
def persistence_key
|
20
|
+
(config.persistence_key || js_id).to_sym
|
21
|
+
end
|
22
|
+
|
23
|
+
# Component's persistent state.
|
24
|
+
#
|
25
|
+
# state[:position] = {:x => 100, :y => 200}
|
26
|
+
#
|
27
|
+
# state[:position] #=> {:x => 100, :y => 200}
|
28
|
+
#
|
29
|
+
# May be overridden by persistence subsystems. The object returned by this should implement at least the following methods:
|
30
|
+
#
|
31
|
+
# * []
|
32
|
+
# * []=
|
33
|
+
# * delete(key)
|
34
|
+
# * clear
|
35
|
+
def state
|
36
|
+
session[:state] ||= {}
|
37
|
+
session[:state][persistence_key] ||= {}
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module Netzke::Core
|
2
|
+
module Stylesheets
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
included do
|
6
|
+
class_attribute :css_included_files
|
7
|
+
self.css_included_files = []
|
8
|
+
end
|
9
|
+
|
10
|
+
module ClassMethods
|
11
|
+
# Configures JS class
|
12
|
+
def css_configure &block
|
13
|
+
block.call(css_config)
|
14
|
+
end
|
15
|
+
|
16
|
+
def css_config
|
17
|
+
@_css_config ||= Netzke::Core::CssConfig.new(self)
|
18
|
+
end
|
19
|
+
|
20
|
+
# Returns all extra CSS code (as string) required by this component's class
|
21
|
+
def css_included
|
22
|
+
# Prevent re-including code that was already included by the parent
|
23
|
+
# (thus, only include those JS files when include_js was defined in the current class, not in its ancestors)
|
24
|
+
((singleton_methods(false).map(&:to_sym).include?(:include_css) ? include_css : [] ) + css_config.required_files).inject(""){ |r, path| r + File.new(path).read + "\n"}
|
25
|
+
end
|
26
|
+
|
27
|
+
# All CSS code needed for this class including the one from the ancestor component
|
28
|
+
def css_code(cached = [])
|
29
|
+
res = ""
|
30
|
+
|
31
|
+
# include the base-class javascript if doing JS inheritance
|
32
|
+
res << superclass.css_code << "\n" if !js_config.extending_extjs_component? && !cached.include?(superclass.name)
|
33
|
+
|
34
|
+
res << css_included << "\n"
|
35
|
+
|
36
|
+
res
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def css_missing_code(cached = [])
|
41
|
+
code = dependency_classes.inject("") do |r,k|
|
42
|
+
cached.include?(k.js_config.xtype) ? r : r + k.css_code(cached)
|
43
|
+
end
|
44
|
+
code.blank? ? nil : code
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
data/lib/netzke/core/version.rb
CHANGED
data/lib/netzke/plugin.rb
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
module Netzke
|
2
2
|
class Plugin < Base
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
js_configure do |c|
|
4
|
+
c.extend = "Ext.Component"
|
5
|
+
c.init = <<-JS
|
6
|
+
function(cmp){
|
7
|
+
this.cmp = cmp;
|
8
|
+
}
|
9
|
+
JS
|
7
10
|
end
|
8
|
-
|
9
|
-
js_method :init, <<-JS
|
10
|
-
function(cmp){
|
11
|
-
this.cmp = cmp;
|
12
|
-
}
|
13
|
-
JS
|
14
11
|
end
|
15
|
-
end
|
12
|
+
end
|
data/netzke-core.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "netzke-core"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.8.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["nomadcoder"]
|
12
|
-
s.date = "2012-
|
13
|
-
s.description = "Allows building
|
12
|
+
s.date = "2012-12-09"
|
13
|
+
s.description = "Allows building complex RIA by greatly facilitating modular development"
|
14
14
|
s.email = "nmcoder@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".autotest",
|
21
21
|
".travis.yml",
|
22
|
-
"CHANGELOG.
|
22
|
+
"CHANGELOG.md",
|
23
23
|
"LICENSE",
|
24
24
|
"Manifest",
|
25
25
|
"README.md",
|
@@ -30,45 +30,44 @@ Gem::Specification.new do |s|
|
|
30
30
|
"init.rb",
|
31
31
|
"install.rb",
|
32
32
|
"javascripts/base.js",
|
33
|
-
"javascripts/core_extensions.js",
|
34
33
|
"javascripts/ext.js",
|
35
|
-
"javascripts/
|
34
|
+
"javascripts/js_extensions.js",
|
36
35
|
"lib/netzke-core.rb",
|
37
|
-
"lib/netzke/actions.rb",
|
38
36
|
"lib/netzke/base.rb",
|
39
|
-
"lib/netzke/composition.rb",
|
40
|
-
"lib/netzke/config_to_dsl_delegator.rb",
|
41
|
-
"lib/netzke/configuration.rb",
|
42
37
|
"lib/netzke/core.rb",
|
38
|
+
"lib/netzke/core/action_config.rb",
|
39
|
+
"lib/netzke/core/actions.rb",
|
40
|
+
"lib/netzke/core/client_class.rb",
|
41
|
+
"lib/netzke/core/component_config.rb",
|
42
|
+
"lib/netzke/core/composition.rb",
|
43
|
+
"lib/netzke/core/config_to_dsl_delegator.rb",
|
44
|
+
"lib/netzke/core/configuration.rb",
|
45
|
+
"lib/netzke/core/css_config.rb",
|
43
46
|
"lib/netzke/core/dynamic_assets.rb",
|
44
|
-
"lib/netzke/core/
|
47
|
+
"lib/netzke/core/embedding.rb",
|
48
|
+
"lib/netzke/core/endpoint_response.rb",
|
49
|
+
"lib/netzke/core/javascript.rb",
|
45
50
|
"lib/netzke/core/options_hash.rb",
|
51
|
+
"lib/netzke/core/panel.rb",
|
52
|
+
"lib/netzke/core/plugins.rb",
|
53
|
+
"lib/netzke/core/railz.rb",
|
54
|
+
"lib/netzke/core/railz/action_view_ext.rb",
|
55
|
+
"lib/netzke/core/railz/action_view_ext/ext.rb",
|
56
|
+
"lib/netzke/core/railz/controller_extensions.rb",
|
57
|
+
"lib/netzke/core/railz/engine.rb",
|
58
|
+
"lib/netzke/core/railz/routes.rb",
|
59
|
+
"lib/netzke/core/ruby_ext.rb",
|
60
|
+
"lib/netzke/core/ruby_ext/array.rb",
|
61
|
+
"lib/netzke/core/ruby_ext/hash.rb",
|
62
|
+
"lib/netzke/core/ruby_ext/string.rb",
|
63
|
+
"lib/netzke/core/ruby_ext/symbol.rb",
|
64
|
+
"lib/netzke/core/ruby_ext/time_with_zone.rb",
|
65
|
+
"lib/netzke/core/services.rb",
|
46
66
|
"lib/netzke/core/session.rb",
|
67
|
+
"lib/netzke/core/state.rb",
|
68
|
+
"lib/netzke/core/stylesheets.rb",
|
47
69
|
"lib/netzke/core/version.rb",
|
48
|
-
"lib/netzke/core_ext.rb",
|
49
|
-
"lib/netzke/core_ext/array.rb",
|
50
|
-
"lib/netzke/core_ext/hash.rb",
|
51
|
-
"lib/netzke/core_ext/string.rb",
|
52
|
-
"lib/netzke/core_ext/symbol.rb",
|
53
|
-
"lib/netzke/core_ext/time_with_zone.rb",
|
54
|
-
"lib/netzke/embedding.rb",
|
55
|
-
"lib/netzke/ext_component.rb",
|
56
|
-
"lib/netzke/inheritance.rb",
|
57
|
-
"lib/netzke/javascript.rb",
|
58
|
-
"lib/netzke/javascript/scopes.rb",
|
59
70
|
"lib/netzke/plugin.rb",
|
60
|
-
"lib/netzke/plugins.rb",
|
61
|
-
"lib/netzke/railz.rb",
|
62
|
-
"lib/netzke/railz/action_view_ext.rb",
|
63
|
-
"lib/netzke/railz/action_view_ext/ext.rb",
|
64
|
-
"lib/netzke/railz/action_view_ext/touch.rb",
|
65
|
-
"lib/netzke/railz/controller_extensions.rb",
|
66
|
-
"lib/netzke/railz/engine.rb",
|
67
|
-
"lib/netzke/railz/routes.rb",
|
68
|
-
"lib/netzke/services.rb",
|
69
|
-
"lib/netzke/session.rb",
|
70
|
-
"lib/netzke/state.rb",
|
71
|
-
"lib/netzke/stylesheets.rb",
|
72
71
|
"lib/tasks/netzke_core_tasks.rake",
|
73
72
|
"netzke-core.gemspec",
|
74
73
|
"stylesheets/core.css",
|
@@ -82,10 +81,10 @@ Gem::Specification.new do |s|
|
|
82
81
|
"test/core_test_app/app/components/border_layout_panel.rb",
|
83
82
|
"test/core_test_app/app/components/card_component_loader.rb",
|
84
83
|
"test/core_test_app/app/components/component_loader.rb",
|
84
|
+
"test/core_test_app/app/components/component_loader/javascripts/component_loader.js",
|
85
85
|
"test/core_test_app/app/components/component_with_actions.rb",
|
86
86
|
"test/core_test_app/app/components/component_with_custom_css.rb",
|
87
87
|
"test/core_test_app/app/components/component_with_custom_css/stylesheets/custom.css",
|
88
|
-
"test/core_test_app/app/components/component_with_included_js.rb",
|
89
88
|
"test/core_test_app/app/components/component_with_js_mixin.rb",
|
90
89
|
"test/core_test_app/app/components/component_with_js_mixin/javascripts/component_with_js_mixin.js",
|
91
90
|
"test/core_test_app/app/components/component_with_js_mixin/javascripts/extra_one.js",
|
@@ -93,9 +92,12 @@ Gem::Specification.new do |s|
|
|
93
92
|
"test/core_test_app/app/components/component_with_js_mixin/javascripts/method_set_one.js",
|
94
93
|
"test/core_test_app/app/components/component_with_js_mixin/javascripts/method_set_two.js",
|
95
94
|
"test/core_test_app/app/components/component_with_nested_through.rb",
|
96
|
-
"test/core_test_app/app/components/
|
97
|
-
"test/core_test_app/app/components/
|
98
|
-
"test/core_test_app/app/components/
|
95
|
+
"test/core_test_app/app/components/component_with_prebuilt_toolbar_control.rb",
|
96
|
+
"test/core_test_app/app/components/component_with_prebuilt_toolbar_control/javascripts/component_with_prebuilt_toolbar_control.js",
|
97
|
+
"test/core_test_app/app/components/component_with_required_js.rb",
|
98
|
+
"test/core_test_app/app/components/configurable_on_class_level.rb",
|
99
|
+
"test/core_test_app/app/components/dsl_delegated_properties.rb",
|
100
|
+
"test/core_test_app/app/components/dsl_delegated_properties_base.rb",
|
99
101
|
"test/core_test_app/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js",
|
100
102
|
"test/core_test_app/app/components/ext_direct/composite.rb",
|
101
103
|
"test/core_test_app/app/components/ext_direct/details.rb",
|
@@ -106,7 +108,8 @@ Gem::Specification.new do |s|
|
|
106
108
|
"test/core_test_app/app/components/extended_component_with_js_mixin/javascripts/some_method_set.js",
|
107
109
|
"test/core_test_app/app/components/extended_localized_panel.rb",
|
108
110
|
"test/core_test_app/app/components/extended_server_caller.rb",
|
109
|
-
"test/core_test_app/app/components/
|
111
|
+
"test/core_test_app/app/components/hello_world.rb",
|
112
|
+
"test/core_test_app/app/components/hello_world/javascripts/hello_world.js",
|
110
113
|
"test/core_test_app/app/components/included.js",
|
111
114
|
"test/core_test_app/app/components/inline_composite.rb",
|
112
115
|
"test/core_test_app/app/components/kinda_complex_component.rb",
|
@@ -123,32 +126,35 @@ Gem::Specification.new do |s|
|
|
123
126
|
"test/core_test_app/app/components/scoped_components/extended_scoped_component.rb",
|
124
127
|
"test/core_test_app/app/components/scoped_components/some_scoped_component.rb",
|
125
128
|
"test/core_test_app/app/components/server_caller.rb",
|
129
|
+
"test/core_test_app/app/components/server_caller/javascripts/server_caller.js",
|
126
130
|
"test/core_test_app/app/components/server_counter.rb",
|
131
|
+
"test/core_test_app/app/components/server_counter/javascripts/server_counter.js",
|
132
|
+
"test/core_test_app/app/components/simple_authentication_component.rb",
|
127
133
|
"test/core_test_app/app/components/simple_component.rb",
|
134
|
+
"test/core_test_app/app/components/simple_composite.rb",
|
135
|
+
"test/core_test_app/app/components/simple_form_with_file_upload.rb",
|
128
136
|
"test/core_test_app/app/components/simple_panel.rb",
|
129
137
|
"test/core_test_app/app/components/simple_tab_panel.rb",
|
130
138
|
"test/core_test_app/app/components/simple_window.rb",
|
131
139
|
"test/core_test_app/app/components/some_composite.rb",
|
132
140
|
"test/core_test_app/app/components/some_ext_component.rb",
|
133
141
|
"test/core_test_app/app/components/some_plugin.rb",
|
134
|
-
"test/core_test_app/app/components/
|
135
|
-
"test/core_test_app/app/components/
|
136
|
-
"test/core_test_app/app/components/
|
142
|
+
"test/core_test_app/app/components/stateful_component.rb",
|
143
|
+
"test/core_test_app/app/components/stateful_component_with_shared_state.rb",
|
144
|
+
"test/core_test_app/app/components/window_with_simple_component.rb",
|
137
145
|
"test/core_test_app/app/controllers/application_controller.rb",
|
138
146
|
"test/core_test_app/app/controllers/components_controller.rb",
|
139
147
|
"test/core_test_app/app/controllers/simple_rails_controller.rb",
|
140
|
-
"test/core_test_app/app/controllers/touch_controller.rb",
|
141
148
|
"test/core_test_app/app/controllers/welcome_controller.rb",
|
142
149
|
"test/core_test_app/app/helpers/application_helper.rb",
|
143
|
-
"test/core_test_app/app/helpers/touch_helper.rb",
|
144
150
|
"test/core_test_app/app/views/components/panel_with_autoload.html.erb",
|
145
151
|
"test/core_test_app/app/views/components/some_tab_panel.html.erb",
|
146
152
|
"test/core_test_app/app/views/layouts/application.html.erb",
|
147
153
|
"test/core_test_app/app/views/layouts/nested.html.erb",
|
148
|
-
"test/core_test_app/app/views/layouts/touch.html.erb",
|
149
154
|
"test/core_test_app/app/views/simple_rails/multiple_nested.html.erb",
|
150
155
|
"test/core_test_app/app/views/simple_rails/multiple_of_different_class.html.erb",
|
151
156
|
"test/core_test_app/app/views/simple_rails/multiple_of_same_class.html.erb",
|
157
|
+
"test/core_test_app/app/views/simple_rails/panel.html.erb",
|
152
158
|
"test/core_test_app/config.ru",
|
153
159
|
"test/core_test_app/config/application.rb",
|
154
160
|
"test/core_test_app/config/boot.rb",
|
@@ -168,7 +174,6 @@ Gem::Specification.new do |s|
|
|
168
174
|
"test/core_test_app/config/locales/es.yml",
|
169
175
|
"test/core_test_app/config/routes.rb",
|
170
176
|
"test/core_test_app/db/development_structure.sql",
|
171
|
-
"test/core_test_app/db/migrate/20110110132720_create_netzke_component_states.rb",
|
172
177
|
"test/core_test_app/db/schema.rb",
|
173
178
|
"test/core_test_app/db/seeds.rb",
|
174
179
|
"test/core_test_app/features/actions_and_tools.feature",
|
@@ -178,6 +183,7 @@ Gem::Specification.new do |s|
|
|
178
183
|
"test/core_test_app/features/component.feature",
|
179
184
|
"test/core_test_app/features/component_loader.feature",
|
180
185
|
"test/core_test_app/features/composition.feature",
|
186
|
+
"test/core_test_app/features/config_to_dsl_delegation.feature",
|
181
187
|
"test/core_test_app/features/custom_css.feature",
|
182
188
|
"test/core_test_app/features/ext.direct.feature",
|
183
189
|
"test/core_test_app/features/file_inclusion.feature",
|
@@ -191,31 +197,35 @@ Gem::Specification.new do |s|
|
|
191
197
|
"test/core_test_app/features/scopes.feature",
|
192
198
|
"test/core_test_app/features/step_definitions/custom_css_steps.rb",
|
193
199
|
"test/core_test_app/features/step_definitions/generic_steps.rb",
|
194
|
-
"test/core_test_app/features/step_definitions/touch_steps.rb",
|
195
200
|
"test/core_test_app/features/step_definitions/web_steps.rb",
|
196
201
|
"test/core_test_app/features/support/env.rb",
|
197
202
|
"test/core_test_app/features/support/paths.rb",
|
198
|
-
"test/core_test_app/features/touch.feature",
|
199
|
-
"test/core_test_app/gemfiles/rails3_1.gemfile",
|
200
|
-
"test/core_test_app/gemfiles/rails3_2.gemfile",
|
201
203
|
"test/core_test_app/lib/tasks/.gitkeep",
|
202
204
|
"test/core_test_app/public/404.html",
|
203
205
|
"test/core_test_app/public/422.html",
|
204
206
|
"test/core_test_app/public/500.html",
|
205
207
|
"test/core_test_app/public/favicon.ico",
|
208
|
+
"test/core_test_app/public/images/icons/accept.png",
|
209
|
+
"test/core_test_app/public/images/icons/anchor.png",
|
210
|
+
"test/core_test_app/public/images/icons/tick.png",
|
206
211
|
"test/core_test_app/public/images/rails.png",
|
207
212
|
"test/core_test_app/public/robots.txt",
|
208
213
|
"test/core_test_app/script/rails",
|
209
|
-
"test/core_test_app/spec/
|
210
|
-
"test/core_test_app/spec/
|
211
|
-
"test/core_test_app/spec/
|
212
|
-
"test/core_test_app/spec/
|
213
|
-
"test/core_test_app/spec/component
|
214
|
-
"test/core_test_app/spec/
|
215
|
-
"test/core_test_app/spec/component/state_spec.rb",
|
214
|
+
"test/core_test_app/spec/action_config_spec.rb",
|
215
|
+
"test/core_test_app/spec/actions_spec.rb",
|
216
|
+
"test/core_test_app/spec/base_spec.rb",
|
217
|
+
"test/core_test_app/spec/client_class_spec.rb",
|
218
|
+
"test/core_test_app/spec/component",
|
219
|
+
"test/core_test_app/spec/composition_spec.rb",
|
216
220
|
"test/core_test_app/spec/core_ext_spec.rb",
|
221
|
+
"test/core_test_app/spec/endpoint_response_spec.rb",
|
222
|
+
"test/core_test_app/spec/javascript_spec.rb",
|
223
|
+
"test/core_test_app/spec/js_class_config_scope.rb",
|
224
|
+
"test/core_test_app/spec/panel_spec.rb",
|
225
|
+
"test/core_test_app/spec/services_spec.rb",
|
217
226
|
"test/core_test_app/spec/spec.opt",
|
218
227
|
"test/core_test_app/spec/spec_helper.rb",
|
228
|
+
"test/core_test_app/spec/state_spec.rb",
|
219
229
|
"test/core_test_app/tmp/restart.txt",
|
220
230
|
"test/core_test_app/vendor/plugins/.gitkeep",
|
221
231
|
"test/test_helper.rb",
|
@@ -225,8 +235,8 @@ Gem::Specification.new do |s|
|
|
225
235
|
]
|
226
236
|
s.homepage = "http://netzke.org"
|
227
237
|
s.require_paths = ["lib"]
|
228
|
-
s.rubygems_version = "1.8.
|
229
|
-
s.summary = "
|
238
|
+
s.rubygems_version = "1.8.24"
|
239
|
+
s.summary = "Client-server GUI components with Sencha Ext JS and Ruby"
|
230
240
|
|
231
241
|
if s.respond_to? :specification_version then
|
232
242
|
s.specification_version = 3
|
data/test/core_test_app/Gemfile
CHANGED
@@ -1,34 +1,16 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '3.2.
|
4
|
-
gem 'netzke-persistence'
|
3
|
+
gem 'rails', '~>3.2.0'
|
5
4
|
|
6
5
|
gem 'sqlite3'
|
7
6
|
|
8
|
-
# Use unicorn as the web server
|
9
|
-
# gem 'unicorn'
|
10
|
-
|
11
|
-
# Deploy with Capistrano
|
12
|
-
# gem 'capistrano'
|
13
|
-
|
14
|
-
# To use debugger
|
15
|
-
# gem 'ruby-debug'
|
16
|
-
|
17
|
-
# Bundle the extra gems:
|
18
|
-
# gem 'bj'
|
19
|
-
# gem 'nokogiri', '1.4.1'
|
20
|
-
# gem 'sqlite3-ruby', :require => 'sqlite3'
|
21
|
-
# gem 'aws-s3', :require => 'aws/s3'
|
22
|
-
|
23
7
|
# Bundle gems for the local environment. Make sure to
|
24
8
|
# put test-only gems in this group so their generators
|
25
9
|
# and rake tasks are available in development mode:
|
26
10
|
group :test do
|
27
|
-
gem 'capybara'
|
11
|
+
gem 'capybara', '~>1'
|
28
12
|
gem 'database_cleaner'
|
29
13
|
gem 'cucumber-rails', :require => false
|
30
14
|
gem 'cucumber'
|
31
15
|
gem 'rspec-rails'
|
32
|
-
gem 'spork'
|
33
|
-
gem 'launchy' # So you can do Then show me the page
|
34
16
|
end
|
@@ -1,136 +1,130 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (3.2.
|
5
|
-
actionpack (= 3.2.
|
4
|
+
actionmailer (3.2.9)
|
5
|
+
actionpack (= 3.2.9)
|
6
6
|
mail (~> 2.4.4)
|
7
|
-
actionpack (3.2.
|
8
|
-
activemodel (= 3.2.
|
9
|
-
activesupport (= 3.2.
|
7
|
+
actionpack (3.2.9)
|
8
|
+
activemodel (= 3.2.9)
|
9
|
+
activesupport (= 3.2.9)
|
10
10
|
builder (~> 3.0.0)
|
11
11
|
erubis (~> 2.7.0)
|
12
|
-
journey (~> 1.0.
|
12
|
+
journey (~> 1.0.4)
|
13
13
|
rack (~> 1.4.0)
|
14
14
|
rack-cache (~> 1.2)
|
15
15
|
rack-test (~> 0.6.1)
|
16
|
-
sprockets (~> 2.1
|
17
|
-
activemodel (3.2.
|
18
|
-
activesupport (= 3.2.
|
16
|
+
sprockets (~> 2.2.1)
|
17
|
+
activemodel (3.2.9)
|
18
|
+
activesupport (= 3.2.9)
|
19
19
|
builder (~> 3.0.0)
|
20
|
-
activerecord (3.2.
|
21
|
-
activemodel (= 3.2.
|
22
|
-
activesupport (= 3.2.
|
20
|
+
activerecord (3.2.9)
|
21
|
+
activemodel (= 3.2.9)
|
22
|
+
activesupport (= 3.2.9)
|
23
23
|
arel (~> 3.0.2)
|
24
24
|
tzinfo (~> 0.3.29)
|
25
|
-
activeresource (3.2.
|
26
|
-
activemodel (= 3.2.
|
27
|
-
activesupport (= 3.2.
|
28
|
-
activesupport (3.2.
|
25
|
+
activeresource (3.2.9)
|
26
|
+
activemodel (= 3.2.9)
|
27
|
+
activesupport (= 3.2.9)
|
28
|
+
activesupport (3.2.9)
|
29
29
|
i18n (~> 0.6)
|
30
30
|
multi_json (~> 1.0)
|
31
|
-
addressable (2.2
|
31
|
+
addressable (2.3.2)
|
32
32
|
arel (3.0.2)
|
33
|
-
builder (3.0.
|
34
|
-
capybara (1.1.
|
33
|
+
builder (3.0.4)
|
34
|
+
capybara (1.1.4)
|
35
35
|
mime-types (>= 1.16)
|
36
36
|
nokogiri (>= 1.3.3)
|
37
37
|
rack (>= 1.0.0)
|
38
38
|
rack-test (>= 0.5.4)
|
39
39
|
selenium-webdriver (~> 2.0)
|
40
40
|
xpath (~> 0.1.4)
|
41
|
-
childprocess (0.3.
|
42
|
-
ffi (~> 1.0.6)
|
43
|
-
cucumber (1.1
|
41
|
+
childprocess (0.3.6)
|
42
|
+
ffi (~> 1.0, >= 1.0.6)
|
43
|
+
cucumber (1.2.1)
|
44
44
|
builder (>= 2.1.2)
|
45
|
-
diff-lcs (>= 1.1.
|
46
|
-
gherkin (~> 2.
|
45
|
+
diff-lcs (>= 1.1.3)
|
46
|
+
gherkin (~> 2.11.0)
|
47
47
|
json (>= 1.4.6)
|
48
|
-
term-ansicolor (>= 1.0.6)
|
49
48
|
cucumber-rails (1.3.0)
|
50
49
|
capybara (>= 1.1.2)
|
51
50
|
cucumber (>= 1.1.8)
|
52
51
|
nokogiri (>= 1.5.0)
|
53
|
-
database_cleaner (0.
|
52
|
+
database_cleaner (0.9.1)
|
54
53
|
diff-lcs (1.1.3)
|
55
54
|
erubis (2.7.0)
|
56
|
-
ffi (1.0
|
57
|
-
gherkin (2.
|
55
|
+
ffi (1.2.0)
|
56
|
+
gherkin (2.11.5)
|
58
57
|
json (>= 1.4.6)
|
59
58
|
hike (1.2.1)
|
60
|
-
i18n (0.6.
|
61
|
-
journey (1.0.
|
62
|
-
json (1.
|
63
|
-
|
64
|
-
addressable (~> 2.2.6)
|
65
|
-
libwebsocket (0.1.3)
|
59
|
+
i18n (0.6.1)
|
60
|
+
journey (1.0.4)
|
61
|
+
json (1.7.5)
|
62
|
+
libwebsocket (0.1.7.1)
|
66
63
|
addressable
|
64
|
+
websocket
|
67
65
|
mail (2.4.4)
|
68
66
|
i18n (>= 0.4.0)
|
69
67
|
mime-types (~> 1.16)
|
70
68
|
treetop (~> 1.4.8)
|
71
|
-
mime-types (1.
|
72
|
-
multi_json (1.
|
73
|
-
|
74
|
-
nokogiri (1.5.2)
|
69
|
+
mime-types (1.19)
|
70
|
+
multi_json (1.4.0)
|
71
|
+
nokogiri (1.5.5)
|
75
72
|
polyglot (0.3.3)
|
76
73
|
rack (1.4.1)
|
77
74
|
rack-cache (1.2)
|
78
75
|
rack (>= 0.4)
|
79
76
|
rack-ssl (1.3.2)
|
80
77
|
rack
|
81
|
-
rack-test (0.6.
|
78
|
+
rack-test (0.6.2)
|
82
79
|
rack (>= 1.0)
|
83
|
-
rails (3.2.
|
84
|
-
actionmailer (= 3.2.
|
85
|
-
actionpack (= 3.2.
|
86
|
-
activerecord (= 3.2.
|
87
|
-
activeresource (= 3.2.
|
88
|
-
activesupport (= 3.2.
|
80
|
+
rails (3.2.9)
|
81
|
+
actionmailer (= 3.2.9)
|
82
|
+
actionpack (= 3.2.9)
|
83
|
+
activerecord (= 3.2.9)
|
84
|
+
activeresource (= 3.2.9)
|
85
|
+
activesupport (= 3.2.9)
|
89
86
|
bundler (~> 1.0)
|
90
|
-
railties (= 3.2.
|
91
|
-
railties (3.2.
|
92
|
-
actionpack (= 3.2.
|
93
|
-
activesupport (= 3.2.
|
87
|
+
railties (= 3.2.9)
|
88
|
+
railties (3.2.9)
|
89
|
+
actionpack (= 3.2.9)
|
90
|
+
activesupport (= 3.2.9)
|
94
91
|
rack-ssl (~> 1.3.2)
|
95
92
|
rake (>= 0.8.7)
|
96
93
|
rdoc (~> 3.4)
|
97
|
-
thor (
|
98
|
-
rake (0.
|
94
|
+
thor (>= 0.14.6, < 2.0)
|
95
|
+
rake (10.0.2)
|
99
96
|
rdoc (3.12)
|
100
97
|
json (~> 1.4)
|
101
|
-
rspec (2.
|
102
|
-
|
103
|
-
rspec-expectations (~> 2.9.0)
|
104
|
-
rspec-mocks (~> 2.9.0)
|
105
|
-
rspec-core (2.9.0)
|
106
|
-
rspec-expectations (2.9.1)
|
98
|
+
rspec-core (2.12.1)
|
99
|
+
rspec-expectations (2.12.0)
|
107
100
|
diff-lcs (~> 1.1.3)
|
108
|
-
rspec-mocks (2.
|
109
|
-
rspec-rails (2.
|
101
|
+
rspec-mocks (2.12.0)
|
102
|
+
rspec-rails (2.12.0)
|
110
103
|
actionpack (>= 3.0)
|
111
104
|
activesupport (>= 3.0)
|
112
105
|
railties (>= 3.0)
|
113
|
-
rspec (~> 2.
|
114
|
-
|
115
|
-
|
106
|
+
rspec-core (~> 2.12.0)
|
107
|
+
rspec-expectations (~> 2.12.0)
|
108
|
+
rspec-mocks (~> 2.12.0)
|
109
|
+
rubyzip (0.9.9)
|
110
|
+
selenium-webdriver (2.26.0)
|
116
111
|
childprocess (>= 0.2.5)
|
117
|
-
ffi (~> 1.0)
|
118
112
|
libwebsocket (~> 0.1.3)
|
119
113
|
multi_json (~> 1.0)
|
120
114
|
rubyzip
|
121
|
-
|
122
|
-
sprockets (2.1.2)
|
115
|
+
sprockets (2.2.2)
|
123
116
|
hike (~> 1.2)
|
117
|
+
multi_json (~> 1.0)
|
124
118
|
rack (~> 1.0)
|
125
119
|
tilt (~> 1.1, != 1.3.0)
|
126
120
|
sqlite3 (1.3.6)
|
127
|
-
|
128
|
-
thor (0.14.6)
|
121
|
+
thor (0.16.0)
|
129
122
|
tilt (1.3.3)
|
130
|
-
treetop (1.4.
|
123
|
+
treetop (1.4.12)
|
131
124
|
polyglot
|
132
125
|
polyglot (>= 0.3.1)
|
133
|
-
tzinfo (0.3.
|
126
|
+
tzinfo (0.3.35)
|
127
|
+
websocket (1.0.4)
|
134
128
|
xpath (0.1.4)
|
135
129
|
nokogiri (~> 1.3)
|
136
130
|
|
@@ -138,13 +132,10 @@ PLATFORMS
|
|
138
132
|
ruby
|
139
133
|
|
140
134
|
DEPENDENCIES
|
141
|
-
capybara
|
135
|
+
capybara (~> 1)
|
142
136
|
cucumber
|
143
137
|
cucumber-rails
|
144
138
|
database_cleaner
|
145
|
-
|
146
|
-
netzke-persistence
|
147
|
-
rails (= 3.2.3)
|
139
|
+
rails (~> 3.2.0)
|
148
140
|
rspec-rails
|
149
|
-
spork
|
150
141
|
sqlite3
|