netzke-core 0.11.0 → 0.12.0.beta

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8985c0704cb87adfae5eb77c6419bac1b2ef76a
4
- data.tar.gz: 586a4f56bd0700cd35d72ceec9336d2dfa1796e2
3
+ metadata.gz: 073a4d9f4ceedcbe7914a36c134f449f66696bfc
4
+ data.tar.gz: d1b57f39a6edfd7b8765c2786a874a4863c865ac
5
5
  SHA512:
6
- metadata.gz: 8a00abb3fb10d0cce4a1bafafb3f2d9de4545e105440ded180fe817a0a5ca64e1b442291135b1431ac5455da54510296789d2cb62cf14dd8329324e00976af88
7
- data.tar.gz: e5e7213adadfd0a14a3d5007ad13c546d87d1a1577b0073436e08b1e1d766c02d7e489aa389c24d7cb5a834893b7a74e1e7539363626d348bb4955d6be562207
6
+ metadata.gz: b280ad883700d563153498e19853ab3381c2bfc699fcfba0b674c62574ff2c8563146265c82ffa231bef8667dd55163d0e24177efc6b3d893fdd7551d349430b
7
+ data.tar.gz: 462b1831d5542627d8fd3e941d7965944666abdb993f9c56a71572ae9b2b39773d7ce9a3d7a7fea5f4028b7086825d334c6f27e7d27ea32f6e218ad01ce661e4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.11.0 - 2015-02-05
2
+
3
+ * Rails 4.2
4
+
1
5
  # v0.10.1 - 2014-05-24
2
6
 
3
7
  * Fix an IE8 issue (@AlexKovynev)
data/README.md CHANGED
@@ -1,5 +1,3 @@
1
- ### TODO
2
-
3
1
  # Netzke Core [![Gem Version](https://fury-badge.herokuapp.com/rb/netzke-core.png)](http://badge.fury.io/rb/netzke-core) [![Build Status](https://travis-ci.org/netzke/netzke-core.png?branch=master)](https://travis-ci.org/netzke/netzke-core) [![Code Climate](https://codeclimate.com/github/netzke/netzke-core.png)](https://codeclimate.com/github/netzke/netzke-core)
4
2
 
5
3
  [RDocs](http://rdoc.info/projects/netzke/netzke-core)
@@ -329,7 +327,7 @@ Netzke provides support for HAML templates in case you don't want to put HTML in
329
327
 
330
328
  * Ruby >= 2.0.0
331
329
  * Rails ~> 4.2.0
332
- * Ext JS = 4.2.1
330
+ * Ext JS = 5.1.0
333
331
 
334
332
  ## Installation
335
333
 
data/javascripts/ext.js CHANGED
@@ -8,8 +8,8 @@ Ext.QuickTips.init();
8
8
 
9
9
  // Checking Ext JS version: both major and minor versions must be the same
10
10
  (function(){
11
- var requiredVersionMajor = 4,
12
- requiredVersionMinor = 2,
11
+ var requiredVersionMajor = 5,
12
+ requiredVersionMinor = 1,
13
13
  extVersion = Ext.getVersion('extjs'),
14
14
  currentVersionMajor = extVersion.getMajor(),
15
15
  currentVersionMinor = extVersion.getMinor(),
@@ -70,12 +70,13 @@ Ext.define('Netzke.classes.NetzkeRemotingProvider', {
70
70
  }
71
71
  },
72
72
 
73
- getCallData: function(t){
73
+ getPayload: function(t){
74
74
  return {
75
75
  path: t.action,
76
76
  endpoint: t.method,
77
77
  data: t.data,
78
- tid: t.id
78
+ tid: t.id,
79
+ type: 'rpc'
79
80
  }
80
81
  },
81
82
 
@@ -86,7 +87,7 @@ Ext.define('Netzke.classes.NetzkeRemotingProvider', {
86
87
  var methodName = ep.camelize(true),
87
88
  method = Ext.create('Ext.direct.RemotingMethod', {name: methodName, len: 1});
88
89
 
89
- cls[methodName] = this.createHandler(componentPath, method);
90
+ cls[methodName] = this.createHandler(componentPath, method);
90
91
  }, this);
91
92
  },
92
93
 
@@ -155,7 +156,7 @@ Ext.define(null, {
155
156
  Mask shown during loading of a component. Set to false to not mask. Pass config for Ext.LoadMask for configuring msg/cls, etc.
156
157
  Set msg to null if mask without any msg is desirable.
157
158
  */
158
- netzkeLoadMask: true,
159
+ netzkeLoadMask: false, // TODO: reenable
159
160
 
160
161
  /**
161
162
  * Runs through initial config options and does the following:
@@ -248,9 +249,6 @@ Ext.define(null, {
248
249
  if (config.tools) {
249
250
  var normTools = [];
250
251
  Ext.each(config.tools, function(tool){
251
- // Create an event for each action (so that higher-level components could interfere)
252
- this.addEvents(tool.id+'click');
253
-
254
252
  var handler = Ext.Function.bind(this.netzkeToolHandler, this, [tool]);
255
253
  normTools.push({type : tool, handler : handler, scope : this});
256
254
  }, this);
@@ -266,9 +264,6 @@ Ext.define(null, {
266
264
  netzkeNormalizeActions : function(config){
267
265
  var normActions = {};
268
266
  for (var name in config.actions) {
269
- // Create an event for each action (so that higher-level components could interfere)
270
- this.addEvents(name+'click');
271
-
272
267
  // Configure the action
273
268
  var actionConfig = Ext.apply({}, config.actions[name]); // do not modify original this.actions
274
269
  actionConfig.customHandler = actionConfig.handler;
@@ -371,6 +366,9 @@ Ext.define(null, {
371
366
  if (storedConfig.configOnly) {
372
367
  callbackParam = config;
373
368
  } else {
369
+ var currentCmp = Ext.ComponentManager.get(config.id);
370
+ if (currentCmp) currentCmp.destroy();
371
+
374
372
  var componentInstance = Ext.ComponentManager.create(config);
375
373
 
376
374
  // there's no sense in adding a window-type components
@@ -447,7 +445,7 @@ Ext.define(null, {
447
445
 
448
446
  if (parent) {
449
447
  var name = this.netzkeLocalId(parent);
450
- parent.netzkeLoadComponent(name, {container:this.ownerCt.id});
448
+ parent.netzkeLoadComponent(name, {container: this.getRefOwner().id});
451
449
  } else {
452
450
  window.location.reload();
453
451
  }
@@ -8,7 +8,7 @@ module Netzke
8
8
 
9
9
  def netzke_ext_css_include(params)
10
10
  # ExtJS base
11
- res = ["#{Netzke::Core.ext_uri}/resources/ext-theme-#{params[:theme]}/ext-theme-#{params[:theme]}-all.css"]
11
+ res = ["#{Netzke::Core.ext_uri}/packages/ext-theme-#{params[:theme]}/build/resources/ext-theme-#{params[:theme]}-all.css"]
12
12
 
13
13
  # Netzke-related dynamic css
14
14
  res << netzke_ext_path
@@ -22,10 +22,10 @@ module Netzke
22
22
  res = []
23
23
 
24
24
  # ExtJS
25
- res << (params[:minified] ? "#{Netzke::Core.ext_uri}/ext-all.js" : "#{Netzke::Core.ext_uri}/ext-all-debug.js")
25
+ res << (params[:minified] ? "#{Netzke::Core.ext_uri}/build/ext-all.js" : "#{Netzke::Core.ext_uri}/build/ext-all-debug.js")
26
26
 
27
27
  # Ext I18n
28
- res << "#{Netzke::Core.ext_uri}/locale/ext-lang-#{I18n.locale}" if I18n.locale != :en
28
+ res << "#{Netzke::Core.ext_uri}/packages/ext-locale/build/ext-locale-#{I18n.locale}" if I18n.locale != :en
29
29
 
30
30
  # Netzke-related dynamic JavaScript
31
31
  res << netzke_ext_path
@@ -25,7 +25,7 @@ module Netzke
25
25
  def load_netzke(params = {})
26
26
  Netzke::Core.platform = params[:platform] || :ext
27
27
  params[:minified] = !Rails.env.development? if params[:minified].nil?
28
- params[:theme] ||= "neptune"
28
+ params[:theme] ||= "crisp"
29
29
 
30
30
  raw([netzke_css_include(params), netzke_css(params), netzke_js_include(params), netzke_js(params)].join("\n"))
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module Netzke
2
2
  module Core
3
- VERSION = "0.11.0"
3
+ VERSION = "0.12.0.beta"
4
4
  end
5
5
  end
data/lib/netzke/core.rb CHANGED
@@ -15,6 +15,7 @@ module Netzke
15
15
  # * ext_path - absolute path to your Ext code root
16
16
  # * icons_uri - relative URI to the icons
17
17
  module Core
18
+ autoload :VERSION, 'netzke/core/version'
18
19
  autoload :DslConfigBase, 'netzke/core/dsl_config_base'
19
20
  autoload :ComponentConfig, 'netzke/core/component_config'
20
21
  autoload :ActionConfig, 'netzke/core/action_config'
data/netzke-core.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.name = "netzke-core"
5
5
  s.version = Netzke::Core::VERSION
6
6
  s.author = "Max Gorin"
7
- s.email = "gorinme@gmail.com"
7
+ s.email = "max@goodbitlabs.com"
8
8
  s.homepage = "http://netzke.org"
9
9
  s.summary = "Client-server GUI components with Sencha Ext JS and Ruby on Rails"
10
10
  s.description = "Build complex web GUI in a modular way"
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency 'capybara'
25
25
  s.add_development_dependency 'selenium-webdriver'
26
26
  s.add_development_dependency 'rspec-rails'
27
- s.add_development_dependency 'netzke-testing', '~> 0.11.0'
27
+ s.add_development_dependency 'netzke-testing', '~> 0.12.0.beta'
28
28
 
29
29
  s.required_rubygems_version = ">= 1.3.4"
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netzke-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Gorin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uglifier
@@ -156,16 +156,16 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.11.0
159
+ version: 0.12.0.beta
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.11.0
166
+ version: 0.12.0.beta
167
167
  description: Build complex web GUI in a modular way
168
- email: gorinme@gmail.com
168
+ email: max@goodbitlabs.com
169
169
  executables: []
170
170
  extensions: []
171
171
  extra_rdoc_files: []