netzke-basepack 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ = v0.5.11 - 2010-06-20
2
+ * Fix: Partial fix for IE's (the rest to be fixed in Ext).
3
+ * Fix: In some circumstances Netzke::ActiveRecord modules were not loading.
4
+
1
5
  = v0.5.10 - 2010-06-14
2
6
  * Impr: Checkbox replaced with tri-state checkbox in multi-edit form in GridPanel.
3
7
  * Impr: Column renderers reworked, allowing for more flexibility and cleanness.
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  begin
2
2
  require 'jeweler'
3
3
  Jeweler::Tasks.new do |gemspec|
4
- gemspec.version = "0.5.10"
4
+ gemspec.version = "0.5.11"
5
5
  gemspec.name = "netzke-basepack"
6
6
  gemspec.summary = "Pre-built Rails + ExtJS widgets for your RIA"
7
7
  gemspec.description = "A set of full-featured extendible Netzke widgets (such as FormPanel, GridPanel, Window, BorderLayoutPanel, etc) which can be used as building block for your RIA"
@@ -2,9 +2,9 @@ module Netzke::ActiveRecord
2
2
 
3
3
  # Extend ActiveRecord
4
4
  ActiveRecord::Base.class_eval do
5
- include AssociationAttributes
6
- include Attributes
7
- include ComboboxOptions
5
+ include ::Netzke::ActiveRecord::AssociationAttributes
6
+ include ::Netzke::ActiveRecord::Attributes
7
+ include ::Netzke::ActiveRecord::ComboboxOptions
8
8
  end
9
9
 
10
10
  end
@@ -2,17 +2,6 @@ module Netzke::ActiveRecord
2
2
  # Provides extensions to those ActiveRecord-based models that provide data to the "data accessor" widgets,
3
3
  # like GridPanel, FormPanel, etc
4
4
  module DataAccessor
5
-
6
- # Allow specify the netzke widget that requires this data. Virtual attributes may be using it to produce
7
- # widget-dependent result.
8
- # def netzke_widget=(widget)
9
- # @netzke_widget = widget
10
- # end
11
- #
12
- # def netzke_widget
13
- # @netzke_widget
14
- # end
15
-
16
5
  # Transforms a record to array of values according to the passed columns.
17
6
  def to_array(columns, widget = nil)
18
7
  # self.netzke_widget = widget
@@ -207,11 +207,11 @@ module Netzke
207
207
  app: this,
208
208
  handler: function() {
209
209
  this.ownerCt.ownerCt.getForm().submit({
210
- url: this.app.buildApiUrl("submit_login"),
210
+ url: this.app.buildApiUrl("submit_login")
211
211
  });
212
212
  }
213
213
  }]
214
- }],
214
+ }]
215
215
  });
216
216
 
217
217
  w.show();
@@ -310,7 +310,7 @@ module Netzke
310
310
  decimal :'Numeric',
311
311
  datetime:'Date',
312
312
  date :'Date',
313
- string :'String',
313
+ string :'String'
314
314
  };
315
315
  map['boolean'] = "Boolean"; // "boolean" is a JS reserved word
316
316
  return map[attrType] || 'String';
@@ -44,7 +44,7 @@ class ActiveRecordBasepackTest < ActiveSupport::TestCase
44
44
  end
45
45
 
46
46
  test "to array" do
47
- Book.send(:include, Netzke::ActiveRecord::DataAccessor)
47
+ Book.send(:include, ::Netzke::ActiveRecord::DataAccessor )
48
48
  b = Book.create({:title => 'Rayuela', :genre_id => 200, :amount => 1000})
49
49
  columns = [{:name => "recent"}, {:name => "title"}, {:name => "amount"}, {:name => "genre_id"}]
50
50
  assert_equal(['Yes', 'Rayuela', 1000, 200], b.to_array(columns))
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netzke-basepack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 5
9
- - 10
10
- version: 0.5.10
8
+ - 11
9
+ version: 0.5.11
11
10
  platform: ruby
12
11
  authors:
13
12
  - Sergei Kozlov
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-06-14 00:00:00 +02:00
17
+ date: 2010-06-20 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 13
30
28
  segments:
31
29
  - 0
32
30
  - 5
@@ -42,7 +40,6 @@ dependencies:
42
40
  requirements:
43
41
  - - ">="
44
42
  - !ruby/object:Gem::Version
45
- hash: 15
46
43
  segments:
47
44
  - 2
48
45
  - 0
@@ -58,7 +55,6 @@ dependencies:
58
55
  requirements:
59
56
  - - ">="
60
57
  - !ruby/object:Gem::Version
61
- hash: 15
62
58
  segments:
63
59
  - 2
64
60
  - 0
@@ -74,7 +70,6 @@ dependencies:
74
70
  requirements:
75
71
  - - ">="
76
72
  - !ruby/object:Gem::Version
77
- hash: 31
78
73
  segments:
79
74
  - 0
80
75
  - 1
@@ -205,21 +200,9 @@ has_rdoc: true
205
200
  homepage: http://github.com/skozlov/netzke-basepack
206
201
  licenses: []
207
202
 
208
- post_install_message: |+
209
-
210
- ========================================================================
211
-
212
- Thanks for installing Netzke Basepack!
213
-
214
- Don't forget to run "./script/generate netzke_basepack" for each
215
- Rails app that will be using this gem.
216
-
217
- Netzke home page: http://netzke.org
218
- Netzke Google Groups: http://groups.google.com/group/netzke
219
- Netzke tutorials: http://blog.writelesscode.com
220
-
221
- ========================================================================
222
-
203
+ post_install_message: "\n\
204
+ ========================================================================\n\n Thanks for installing Netzke Basepack!\n \n Don't forget to run \"./script/generate netzke_basepack\" for each \n Rails app that will be using this gem.\n\n Netzke home page: http://netzke.org\n Netzke Google Groups: http://groups.google.com/group/netzke\n Netzke tutorials: http://blog.writelesscode.com\n\n\
205
+ ========================================================================\n\n"
223
206
  rdoc_options:
224
207
  - --charset=UTF-8
225
208
  require_paths:
@@ -229,7 +212,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
212
  requirements:
230
213
  - - ">="
231
214
  - !ruby/object:Gem::Version
232
- hash: 3
233
215
  segments:
234
216
  - 0
235
217
  version: "0"
@@ -238,7 +220,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
220
  requirements:
239
221
  - - ">="
240
222
  - !ruby/object:Gem::Version
241
- hash: 3
242
223
  segments:
243
224
  - 0
244
225
  version: "0"