netzke-basepack 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +14 -6
- data/README.rdoc +16 -31
- data/Rakefile +22 -16
- data/TODO.rdoc +1 -1
- data/app/models/netzke_field_list.rb +29 -29
- data/app/models/netzke_model_attr_list.rb +4 -4
- data/app/models/netzke_persistent_array_auto_model.rb +9 -9
- data/config/database.yml +2 -35
- data/features/accordion_panel.feature +1 -1
- data/features/form_panel.feature +2 -2
- data/features/grid_panel.feature +15 -3
- data/features/search_in_grid.feature +4 -4
- data/features/simple_panel.feature +4 -4
- data/features/step_definitions/pickle_steps.rb +2 -2
- data/features/step_definitions/web_steps.rb +5 -5
- data/features/support/env.rb +6 -6
- data/features/tab_panel.feature +1 -1
- data/javascripts/basepack.js +28 -28
- data/lib/netzke-basepack.rb +5 -5
- data/lib/netzke/active_record.rb +1 -1
- data/lib/netzke/active_record/association_attributes.rb +9 -9
- data/lib/netzke/active_record/attributes.rb +24 -23
- data/lib/netzke/active_record/combobox_options.rb +3 -3
- data/lib/netzke/active_record/relation_extensions.rb +4 -4
- data/lib/netzke/basepack.rb +4 -4
- data/{app/components → lib}/netzke/basepack/accordion_panel.rb +7 -7
- data/{app/components → lib}/netzke/basepack/basic_app.rb +18 -18
- data/{app/components → lib}/netzke/basepack/basic_app/statusbar_ext.js +0 -0
- data/lib/netzke/basepack/border_layout_panel.rb +101 -0
- data/{app/components → lib}/netzke/basepack/form_panel.rb +21 -21
- data/{app/components → lib}/netzke/basepack/form_panel/fields.rb +29 -36
- data/{app/components → lib}/netzke/basepack/form_panel/javascripts/netzkefileupload.js +0 -0
- data/{app/components → lib}/netzke/basepack/form_panel/javascripts/pre.js +9 -9
- data/{app/components → lib}/netzke/basepack/form_panel/javascripts/xcheckbox.js +1 -1
- data/{app/components → lib}/netzke/basepack/form_panel/services.rb +11 -11
- data/{app/components → lib}/netzke/basepack/grid_panel.rb +74 -92
- data/{app/components → lib}/netzke/basepack/grid_panel/columns.rb +34 -36
- data/{app/components → lib}/netzke/basepack/grid_panel/javascript.rb +7 -7
- data/{app/components → lib}/netzke/basepack/grid_panel/javascripts/advanced_search.js +10 -10
- data/{app/components → lib}/netzke/basepack/grid_panel/javascripts/edit_in_form.js +2 -2
- data/{app/components → lib}/netzke/basepack/grid_panel/javascripts/pre.js +31 -31
- data/{app/components → lib}/netzke/basepack/grid_panel/javascripts/rows-dd.js +1 -1
- data/{app/components → lib}/netzke/basepack/grid_panel/multi_edit_form.rb +2 -2
- data/{app/components → lib}/netzke/basepack/grid_panel/record_form_window.rb +3 -3
- data/{app/components → lib}/netzke/basepack/grid_panel/search_window.rb +11 -11
- data/{app/components → lib}/netzke/basepack/grid_panel/services.rb +28 -28
- data/{app/components → lib}/netzke/basepack/panel.rb +0 -0
- data/{app/components → lib}/netzke/basepack/search_panel.rb +11 -11
- data/{app/components → lib}/netzke/basepack/tab_panel.rb +7 -7
- data/lib/netzke/basepack/version.rb +1 -1
- data/{app/components → lib}/netzke/basepack/window.rb +14 -14
- data/{app/components → lib}/netzke/basepack/wrapper.rb +6 -6
- data/lib/netzke/data_accessor.rb +18 -18
- data/lib/netzke/fields_configurator.rb +30 -30
- data/lib/netzke/json_array_editor.rb +9 -9
- data/lib/netzke/masquerade_selector.rb +5 -5
- data/locale/en.yml +1 -1
- data/netzke-basepack.gemspec +252 -240
- data/spec/active_record/attributes_spec.rb +6 -1
- data/spec/active_record/relation_extensions_spec.rb +11 -11
- data/spec/components/form_panel_spec.rb +13 -19
- data/spec/components/grid_panel_spec.rb +1 -1
- data/test/rails_app/Gemfile +4 -3
- data/test/rails_app/Gemfile.lock +42 -50
- data/test/rails_app/app/components/book_grid.rb +4 -0
- data/test/rails_app/app/components/generic_user_form.rb +2 -2
- data/test/rails_app/app/components/simple_basic_app.rb +3 -3
- data/test/rails_app/app/components/simple_panel.rb +1 -1
- data/test/rails_app/app/components/some_border_layout.rb +12 -11
- data/test/rails_app/app/components/some_search_panel.rb +5 -5
- data/test/rails_app/app/components/user_form.rb +1 -1
- data/test/rails_app/app/components/window_component_loader.rb +2 -2
- data/test/rails_app/app/models/author.rb +7 -0
- data/test/rails_app/app/models/book.rb +3 -0
- data/test/rails_app/app/models/user.rb +1 -1
- data/test/rails_app/config/locales/es.yml +0 -1
- data/test/rails_app/config/routes.rb +2 -2
- data/test/rails_app/db/development_structure.sql +28 -3
- data/test/rails_app/db/migrate/20101026185816_create_authors.rb +14 -0
- data/test/rails_app/db/migrate/20101026190021_create_books.rb +17 -0
- data/test/rails_app/db/schema.rb +18 -1
- data/test/rails_app/public/javascripts/effects.js +1 -1
- data/test/rails_app/spec/models/author_spec.rb +5 -0
- data/test/rails_app/spec/models/book_spec.rb +5 -0
- data/test/test_helper.rb +1 -1
- data/test/unit/accordion_panel_test.rb +2 -2
- data/test/unit/active_record_basepack_test.rb +9 -9
- data/test/unit/fields_configuration_test.rb +4 -4
- data/test/unit/grid_panel_test.rb +8 -8
- data/test/unit/tab_panel_test.rb +2 -2
- metadata +49 -36
- data/.gitignore +0 -10
- data/app/components/netzke/basepack/border_layout_panel.rb +0 -39
|
@@ -58,8 +58,8 @@ RailsApp::Application.routes.draw do
|
|
|
58
58
|
# Note: This route will make all actions in every controller accessible via GET requests.
|
|
59
59
|
|
|
60
60
|
match 'components/:component' => 'components#show', :as => "components"
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
match ':controller(/:action(/:id(.:format)))'
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
netzke
|
|
65
65
|
end
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
CREATE TABLE `authors` (
|
|
2
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
3
|
+
`first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
4
|
+
`last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
5
|
+
`created_at` datetime DEFAULT NULL,
|
|
6
|
+
`updated_at` datetime DEFAULT NULL,
|
|
7
|
+
PRIMARY KEY (`id`)
|
|
8
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
9
|
+
|
|
10
|
+
CREATE TABLE `books` (
|
|
11
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
12
|
+
`author_id` int(11) DEFAULT NULL,
|
|
13
|
+
`title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
14
|
+
`exemplars` int(11) DEFAULT NULL,
|
|
15
|
+
`digitized` tinyint(1) DEFAULT NULL,
|
|
16
|
+
`notes` text COLLATE utf8_unicode_ci,
|
|
17
|
+
`created_at` datetime DEFAULT NULL,
|
|
18
|
+
`updated_at` datetime DEFAULT NULL,
|
|
19
|
+
PRIMARY KEY (`id`)
|
|
20
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
21
|
+
|
|
1
22
|
CREATE TABLE `netzke_preferences` (
|
|
2
23
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
3
24
|
`key` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
@@ -15,7 +36,7 @@ CREATE TABLE `roles` (
|
|
|
15
36
|
`created_at` datetime DEFAULT NULL,
|
|
16
37
|
`updated_at` datetime DEFAULT NULL,
|
|
17
38
|
PRIMARY KEY (`id`)
|
|
18
|
-
) ENGINE=InnoDB AUTO_INCREMENT=
|
|
39
|
+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
19
40
|
|
|
20
41
|
CREATE TABLE `schema_migrations` (
|
|
21
42
|
`version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
|
@@ -30,10 +51,14 @@ CREATE TABLE `users` (
|
|
|
30
51
|
`created_at` datetime DEFAULT NULL,
|
|
31
52
|
`updated_at` datetime DEFAULT NULL,
|
|
32
53
|
PRIMARY KEY (`id`)
|
|
33
|
-
) ENGINE=InnoDB AUTO_INCREMENT=
|
|
54
|
+
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
34
55
|
|
|
35
56
|
INSERT INTO schema_migrations (version) VALUES ('20100905214933');
|
|
36
57
|
|
|
37
58
|
INSERT INTO schema_migrations (version) VALUES ('20100914104207');
|
|
38
59
|
|
|
39
|
-
INSERT INTO schema_migrations (version) VALUES ('20100914104236');
|
|
60
|
+
INSERT INTO schema_migrations (version) VALUES ('20100914104236');
|
|
61
|
+
|
|
62
|
+
INSERT INTO schema_migrations (version) VALUES ('20101026185816');
|
|
63
|
+
|
|
64
|
+
INSERT INTO schema_migrations (version) VALUES ('20101026190021');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
class CreateBooks < ActiveRecord::Migration
|
|
2
|
+
def self.up
|
|
3
|
+
create_table :books do |t|
|
|
4
|
+
t.integer :author_id
|
|
5
|
+
t.string :title
|
|
6
|
+
t.integer :exemplars
|
|
7
|
+
t.boolean :digitized
|
|
8
|
+
t.text :notes
|
|
9
|
+
|
|
10
|
+
t.timestamps
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def self.down
|
|
15
|
+
drop_table :books
|
|
16
|
+
end
|
|
17
|
+
end
|
data/test/rails_app/db/schema.rb
CHANGED
|
@@ -10,7 +10,24 @@
|
|
|
10
10
|
#
|
|
11
11
|
# It's strongly recommended to check this file into your version control system.
|
|
12
12
|
|
|
13
|
-
ActiveRecord::Schema.define(:version =>
|
|
13
|
+
ActiveRecord::Schema.define(:version => 20101026190021) do
|
|
14
|
+
|
|
15
|
+
create_table "authors", :force => true do |t|
|
|
16
|
+
t.string "first_name"
|
|
17
|
+
t.string "last_name"
|
|
18
|
+
t.datetime "created_at"
|
|
19
|
+
t.datetime "updated_at"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
create_table "books", :force => true do |t|
|
|
23
|
+
t.integer "author_id"
|
|
24
|
+
t.string "title"
|
|
25
|
+
t.integer "exemplars"
|
|
26
|
+
t.boolean "digitized"
|
|
27
|
+
t.text "notes"
|
|
28
|
+
t.datetime "created_at"
|
|
29
|
+
t.datetime "updated_at"
|
|
30
|
+
end
|
|
14
31
|
|
|
15
32
|
create_table "netzke_preferences", :force => true do |t|
|
|
16
33
|
t.string "key"
|
|
@@ -150,7 +150,7 @@ var Effect = {
|
|
|
150
150
|
toggle: function(element, effect, options) {
|
|
151
151
|
element = $(element);
|
|
152
152
|
effect = (effect || 'appear').toLowerCase();
|
|
153
|
-
|
|
153
|
+
|
|
154
154
|
return Effect[ Effect.PAIRS[ effect ][ element.visible() ? 1 : 0 ] ](element, Object.extend({
|
|
155
155
|
queue: { position:'end', scope:(element.id || 'global'), limit: 1 }
|
|
156
156
|
}, options || {}));
|
data/test/test_helper.rb
CHANGED
|
@@ -3,14 +3,14 @@ require 'rubygems'
|
|
|
3
3
|
require 'netzke-core'
|
|
4
4
|
|
|
5
5
|
class AccordionPanelTest < ActiveSupport::TestCase
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
test "specifying items" do
|
|
8
8
|
accordion = Netzke::AccordionPanel.new(:items => [{
|
|
9
9
|
:class_name => "Panel"
|
|
10
10
|
},{
|
|
11
11
|
:class_name => "Panel", :name => "second_panel", :active => true
|
|
12
12
|
}])
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
assert_equal(2, accordion.initial_components.keys.size)
|
|
15
15
|
assert_equal("item0", accordion.components[:item0][:name])
|
|
16
16
|
assert_equal("second_panel", accordion.components[:second_panel][:name])
|
|
@@ -7,24 +7,24 @@ class ActiveRecordBasepackTest < ActiveSupport::TestCase
|
|
|
7
7
|
|
|
8
8
|
# test "default column and field configs" do
|
|
9
9
|
# cc = Book.default_column_config(:title)
|
|
10
|
-
#
|
|
10
|
+
#
|
|
11
11
|
# assert_equal("Title", cc[:label])
|
|
12
12
|
# assert_equal(:textfield, cc[:editor])
|
|
13
13
|
# assert(!cc[:height])
|
|
14
|
-
#
|
|
14
|
+
#
|
|
15
15
|
# cc = Book.default_column_config({:name => :amount, :label => 'AMOUNT'})
|
|
16
|
-
#
|
|
16
|
+
#
|
|
17
17
|
# assert_equal("AMOUNT", cc[:label])
|
|
18
18
|
# assert_equal(:numberfield, cc[:editor])
|
|
19
|
-
#
|
|
19
|
+
#
|
|
20
20
|
# cc = Book.default_column_config(:genre_id)
|
|
21
21
|
# assert_equal("genre__name", cc[:name])
|
|
22
22
|
# assert_equal(:combobox, cc[:editor])
|
|
23
|
-
#
|
|
23
|
+
#
|
|
24
24
|
# cc = Book.default_column_config(:genre__popular)
|
|
25
25
|
# assert_equal(:checkbox, cc[:editor])
|
|
26
26
|
# end
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
test "choices for column" do
|
|
29
29
|
cities = City.netzke_combo_options_for("name")
|
|
30
30
|
assert_equal(3, cities.size)
|
|
@@ -33,11 +33,11 @@ class ActiveRecordBasepackTest < ActiveSupport::TestCase
|
|
|
33
33
|
countries = City.netzke_combo_options_for("country__name")
|
|
34
34
|
assert_equal(2, countries.size)
|
|
35
35
|
assert(countries.include?('Spain') && countries.include?('Argentina'))
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
continents = City.netzke_combo_options_for("country__continent__name")
|
|
38
38
|
assert_equal(2, continents.size)
|
|
39
39
|
assert(continents.include?('Europe') && continents.include?('South America'))
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
cities = City.netzke_combo_options_for("name", "Co")
|
|
42
42
|
assert_equal(2, cities.size)
|
|
43
43
|
assert(cities.include?('Cordoba') && cities.include?('Concordia'))
|
|
@@ -49,6 +49,6 @@ class ActiveRecordBasepackTest < ActiveSupport::TestCase
|
|
|
49
49
|
columns = [{:name => "recent"}, {:name => "title"}, {:name => "amount"}, {:name => "genre_id"}]
|
|
50
50
|
assert_equal(['Yes', 'Rayuela', 1000, 200], b.to_array(columns))
|
|
51
51
|
end
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -4,15 +4,15 @@ require 'netzke-core'
|
|
|
4
4
|
class FieldsConfigurationTest < ActiveSupport::TestCase
|
|
5
5
|
test "attributes configurator" do
|
|
6
6
|
Netzke::Base.session[:netzke_user_id] = User.find_by_login("seller1").id
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
NetzkeModelAttrList.update_list_for_current_authority("Book", [{:name => "title", :label => "Title for seller1", :hidden => false}, {:name => "recent", :label => "Recent", :hidden => true}])
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
list = NetzkeModelAttrList.read_list("Book")
|
|
11
11
|
assert_equal(["Title for seller1", false], [list[0][:label], list[0][:hidden]])
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
Netzke::Base.masquerade_as(:role, Role.find_by_name("seller").id)
|
|
14
14
|
list = NetzkeModelAttrList.read_list("Book")
|
|
15
15
|
# assert_equal(["Title for seller1", false], [list[0][:label], list[0][:hidden]])
|
|
16
16
|
end
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
end
|
|
@@ -2,7 +2,7 @@ require 'test_helper'
|
|
|
2
2
|
require 'netzke-core'
|
|
3
3
|
|
|
4
4
|
class GridPanelTest < ActiveSupport::TestCase
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
test "api" do
|
|
7
7
|
grid = Netzke::GridPanel.new(:name => 'grid', :model => 'Book', :columns => [:id, :title, :recent])
|
|
8
8
|
grid_data = grid.get_data[:data]
|
|
@@ -26,12 +26,12 @@ class GridPanelTest < ActiveSupport::TestCase
|
|
|
26
26
|
# delete all books
|
|
27
27
|
res = grid.delete_data(:records => Book.all.map(&:id).to_json)
|
|
28
28
|
assert_equal(nil, Book.first)
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
end
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
# test "normalize index" do
|
|
33
33
|
# grid = Netzke::GridPanel.new(:name => 'grid', :model => 'Book', :columns => [:id, :col0, {:name => :col1, :excluded => true}, :col2, {:name => :col3, :excluded => true}, :col4, :col5])
|
|
34
|
-
#
|
|
34
|
+
#
|
|
35
35
|
# assert_equal(0, grid.normalize_index(0))
|
|
36
36
|
# assert_equal(1, grid.normalize_index(1))
|
|
37
37
|
# assert_equal(3, grid.normalize_index(2))
|
|
@@ -41,12 +41,12 @@ class GridPanelTest < ActiveSupport::TestCase
|
|
|
41
41
|
|
|
42
42
|
test "default columns" do
|
|
43
43
|
grid = Netzke::GridPanel.new(:model => "Book")
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
assert_equal(7, grid.columns.size)
|
|
46
46
|
# assert_equal({:name => "id", :type => :integer}, grid.columns.first)
|
|
47
47
|
end
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
|
|
49
|
+
|
|
50
50
|
# TODO: add tests with association column
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
end
|
data/test/unit/tab_panel_test.rb
CHANGED
|
@@ -3,14 +3,14 @@ require 'rubygems'
|
|
|
3
3
|
require 'netzke-core'
|
|
4
4
|
|
|
5
5
|
class TabPanelTest < ActiveSupport::TestCase
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
test "active item" do
|
|
8
8
|
tab_panel = Netzke::TabPanel.new(:items => [{
|
|
9
9
|
:class_name => "Panel"
|
|
10
10
|
},{
|
|
11
11
|
:class_name => "Panel", :name => "second_panel", :active => true
|
|
12
12
|
}])
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
assert_equal(2, tab_panel.initial_components.keys.size)
|
|
15
15
|
assert_equal("item0", tab_panel.components[:item0][:name])
|
|
16
16
|
assert_equal("second_panel", tab_panel.components[:second_panel][:name])
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 6
|
|
8
|
-
-
|
|
9
|
-
version: 0.6.
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.6.1
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Sergei Kozlov
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-11-04 00:00:00 +01:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -28,8 +28,8 @@ dependencies:
|
|
|
28
28
|
segments:
|
|
29
29
|
- 0
|
|
30
30
|
- 6
|
|
31
|
-
-
|
|
32
|
-
version: 0.6.
|
|
31
|
+
- 2
|
|
32
|
+
version: 0.6.2
|
|
33
33
|
type: :runtime
|
|
34
34
|
version_requirements: *id001
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
@@ -86,38 +86,11 @@ extra_rdoc_files:
|
|
|
86
86
|
- README.rdoc
|
|
87
87
|
files:
|
|
88
88
|
- .autotest
|
|
89
|
-
- .gitignore
|
|
90
89
|
- CHANGELOG.rdoc
|
|
91
90
|
- LICENSE
|
|
92
91
|
- README.rdoc
|
|
93
92
|
- Rakefile
|
|
94
93
|
- TODO.rdoc
|
|
95
|
-
- app/components/netzke/basepack/accordion_panel.rb
|
|
96
|
-
- app/components/netzke/basepack/basic_app.rb
|
|
97
|
-
- app/components/netzke/basepack/basic_app/statusbar_ext.js
|
|
98
|
-
- app/components/netzke/basepack/border_layout_panel.rb
|
|
99
|
-
- app/components/netzke/basepack/form_panel.rb
|
|
100
|
-
- app/components/netzke/basepack/form_panel/fields.rb
|
|
101
|
-
- app/components/netzke/basepack/form_panel/javascripts/netzkefileupload.js
|
|
102
|
-
- app/components/netzke/basepack/form_panel/javascripts/pre.js
|
|
103
|
-
- app/components/netzke/basepack/form_panel/javascripts/xcheckbox.js
|
|
104
|
-
- app/components/netzke/basepack/form_panel/services.rb
|
|
105
|
-
- app/components/netzke/basepack/grid_panel.rb
|
|
106
|
-
- app/components/netzke/basepack/grid_panel/columns.rb
|
|
107
|
-
- app/components/netzke/basepack/grid_panel/javascript.rb
|
|
108
|
-
- app/components/netzke/basepack/grid_panel/javascripts/advanced_search.js
|
|
109
|
-
- app/components/netzke/basepack/grid_panel/javascripts/edit_in_form.js
|
|
110
|
-
- app/components/netzke/basepack/grid_panel/javascripts/pre.js
|
|
111
|
-
- app/components/netzke/basepack/grid_panel/javascripts/rows-dd.js
|
|
112
|
-
- app/components/netzke/basepack/grid_panel/multi_edit_form.rb
|
|
113
|
-
- app/components/netzke/basepack/grid_panel/record_form_window.rb
|
|
114
|
-
- app/components/netzke/basepack/grid_panel/search_window.rb
|
|
115
|
-
- app/components/netzke/basepack/grid_panel/services.rb
|
|
116
|
-
- app/components/netzke/basepack/panel.rb
|
|
117
|
-
- app/components/netzke/basepack/search_panel.rb
|
|
118
|
-
- app/components/netzke/basepack/tab_panel.rb
|
|
119
|
-
- app/components/netzke/basepack/window.rb
|
|
120
|
-
- app/components/netzke/basepack/wrapper.rb
|
|
121
94
|
- app/models/netzke_field_list.rb
|
|
122
95
|
- app/models/netzke_model_attr_list.rb
|
|
123
96
|
- app/models/netzke_persistent_array_auto_model.rb
|
|
@@ -153,8 +126,34 @@ files:
|
|
|
153
126
|
- lib/netzke/active_record/combobox_options.rb
|
|
154
127
|
- lib/netzke/active_record/relation_extensions.rb
|
|
155
128
|
- lib/netzke/basepack.rb
|
|
129
|
+
- lib/netzke/basepack/accordion_panel.rb
|
|
130
|
+
- lib/netzke/basepack/basic_app.rb
|
|
131
|
+
- lib/netzke/basepack/basic_app/statusbar_ext.js
|
|
132
|
+
- lib/netzke/basepack/border_layout_panel.rb
|
|
133
|
+
- lib/netzke/basepack/form_panel.rb
|
|
134
|
+
- lib/netzke/basepack/form_panel/fields.rb
|
|
135
|
+
- lib/netzke/basepack/form_panel/javascripts/netzkefileupload.js
|
|
136
|
+
- lib/netzke/basepack/form_panel/javascripts/pre.js
|
|
137
|
+
- lib/netzke/basepack/form_panel/javascripts/xcheckbox.js
|
|
138
|
+
- lib/netzke/basepack/form_panel/services.rb
|
|
139
|
+
- lib/netzke/basepack/grid_panel.rb
|
|
140
|
+
- lib/netzke/basepack/grid_panel/columns.rb
|
|
141
|
+
- lib/netzke/basepack/grid_panel/javascript.rb
|
|
142
|
+
- lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
|
|
143
|
+
- lib/netzke/basepack/grid_panel/javascripts/edit_in_form.js
|
|
144
|
+
- lib/netzke/basepack/grid_panel/javascripts/pre.js
|
|
145
|
+
- lib/netzke/basepack/grid_panel/javascripts/rows-dd.js
|
|
146
|
+
- lib/netzke/basepack/grid_panel/multi_edit_form.rb
|
|
147
|
+
- lib/netzke/basepack/grid_panel/record_form_window.rb
|
|
148
|
+
- lib/netzke/basepack/grid_panel/search_window.rb
|
|
149
|
+
- lib/netzke/basepack/grid_panel/services.rb
|
|
150
|
+
- lib/netzke/basepack/panel.rb
|
|
151
|
+
- lib/netzke/basepack/search_panel.rb
|
|
152
|
+
- lib/netzke/basepack/tab_panel.rb
|
|
156
153
|
- lib/netzke/basepack/version.rb
|
|
154
|
+
- lib/netzke/basepack/window.rb
|
|
157
155
|
- lib/netzke/basepack/wrap_lazy_loaded.rb
|
|
156
|
+
- lib/netzke/basepack/wrapper.rb
|
|
158
157
|
- lib/netzke/data_accessor.rb
|
|
159
158
|
- lib/netzke/ext.rb
|
|
160
159
|
- lib/netzke/fields_configurator.rb
|
|
@@ -184,6 +183,7 @@ files:
|
|
|
184
183
|
- test/rails_app/Gemfile.lock
|
|
185
184
|
- test/rails_app/README
|
|
186
185
|
- test/rails_app/Rakefile
|
|
186
|
+
- test/rails_app/app/components/book_grid.rb
|
|
187
187
|
- test/rails_app/app/components/generic_user_form.rb
|
|
188
188
|
- test/rails_app/app/components/simple_accordion.rb
|
|
189
189
|
- test/rails_app/app/components/simple_basic_app.rb
|
|
@@ -201,6 +201,8 @@ files:
|
|
|
201
201
|
- test/rails_app/app/controllers/components_controller.rb
|
|
202
202
|
- test/rails_app/app/controllers/welcome_controller.rb
|
|
203
203
|
- test/rails_app/app/helpers/application_helper.rb
|
|
204
|
+
- test/rails_app/app/models/author.rb
|
|
205
|
+
- test/rails_app/app/models/book.rb
|
|
204
206
|
- test/rails_app/app/models/role.rb
|
|
205
207
|
- test/rails_app/app/models/user.rb
|
|
206
208
|
- test/rails_app/app/presenters/forms/generic_user.rb
|
|
@@ -225,6 +227,8 @@ files:
|
|
|
225
227
|
- test/rails_app/db/migrate/20100905214933_create_netzke_preferences.rb
|
|
226
228
|
- test/rails_app/db/migrate/20100914104207_create_users.rb
|
|
227
229
|
- test/rails_app/db/migrate/20100914104236_create_roles.rb
|
|
230
|
+
- test/rails_app/db/migrate/20101026185816_create_authors.rb
|
|
231
|
+
- test/rails_app/db/migrate/20101026190021_create_books.rb
|
|
228
232
|
- test/rails_app/db/schema.rb
|
|
229
233
|
- test/rails_app/db/seeds.rb
|
|
230
234
|
- test/rails_app/features/support/paths.rb
|
|
@@ -244,6 +248,8 @@ files:
|
|
|
244
248
|
- test/rails_app/public/robots.txt
|
|
245
249
|
- test/rails_app/public/stylesheets/.gitkeep
|
|
246
250
|
- test/rails_app/script/rails
|
|
251
|
+
- test/rails_app/spec/models/author_spec.rb
|
|
252
|
+
- test/rails_app/spec/models/book_spec.rb
|
|
247
253
|
- test/rails_app/spec/models/role_spec.rb
|
|
248
254
|
- test/rails_app/spec/models/user_spec.rb
|
|
249
255
|
- test/rails_app/test/performance/browsing_test.rb
|
|
@@ -260,14 +266,14 @@ files:
|
|
|
260
266
|
- test/unit/tab_panel_test.rb
|
|
261
267
|
- uninstall.rb
|
|
262
268
|
has_rdoc: true
|
|
263
|
-
homepage: http://
|
|
269
|
+
homepage: http://netzke.org
|
|
264
270
|
licenses: []
|
|
265
271
|
|
|
266
272
|
post_install_message: "\n\
|
|
267
|
-
========================================================================\n\n Thanks for installing Netzke Basepack!\n
|
|
273
|
+
========================================================================\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\
|
|
268
274
|
========================================================================\n\n"
|
|
269
|
-
rdoc_options:
|
|
270
|
-
|
|
275
|
+
rdoc_options: []
|
|
276
|
+
|
|
271
277
|
require_paths:
|
|
272
278
|
- lib
|
|
273
279
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -301,6 +307,7 @@ test_files:
|
|
|
301
307
|
- spec/factories.rb
|
|
302
308
|
- spec/spec_helper.rb
|
|
303
309
|
- test/console_with_fixtures.rb
|
|
310
|
+
- test/rails_app/app/components/book_grid.rb
|
|
304
311
|
- test/rails_app/app/components/generic_user_form.rb
|
|
305
312
|
- test/rails_app/app/components/simple_accordion.rb
|
|
306
313
|
- test/rails_app/app/components/simple_basic_app.rb
|
|
@@ -318,6 +325,8 @@ test_files:
|
|
|
318
325
|
- test/rails_app/app/controllers/components_controller.rb
|
|
319
326
|
- test/rails_app/app/controllers/welcome_controller.rb
|
|
320
327
|
- test/rails_app/app/helpers/application_helper.rb
|
|
328
|
+
- test/rails_app/app/models/author.rb
|
|
329
|
+
- test/rails_app/app/models/book.rb
|
|
321
330
|
- test/rails_app/app/models/role.rb
|
|
322
331
|
- test/rails_app/app/models/user.rb
|
|
323
332
|
- test/rails_app/app/presenters/forms/generic_user.rb
|
|
@@ -337,9 +346,13 @@ test_files:
|
|
|
337
346
|
- test/rails_app/db/migrate/20100905214933_create_netzke_preferences.rb
|
|
338
347
|
- test/rails_app/db/migrate/20100914104207_create_users.rb
|
|
339
348
|
- test/rails_app/db/migrate/20100914104236_create_roles.rb
|
|
349
|
+
- test/rails_app/db/migrate/20101026185816_create_authors.rb
|
|
350
|
+
- test/rails_app/db/migrate/20101026190021_create_books.rb
|
|
340
351
|
- test/rails_app/db/schema.rb
|
|
341
352
|
- test/rails_app/db/seeds.rb
|
|
342
353
|
- test/rails_app/features/support/paths.rb
|
|
354
|
+
- test/rails_app/spec/models/author_spec.rb
|
|
355
|
+
- test/rails_app/spec/models/book_spec.rb
|
|
343
356
|
- test/rails_app/spec/models/role_spec.rb
|
|
344
357
|
- test/rails_app/spec/models/user_spec.rb
|
|
345
358
|
- test/rails_app/test/performance/browsing_test.rb
|