wice_grid 3.0.0.pre1 → 3.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -13,7 +13,7 @@ There are two major branches of WiceGrid.
13
13
  THIS IS AN ALPHA VERSION OF THE PLUGIN FOR RAILS 3.0.
14
14
  The current branch (https://github.com/leikind/wice_grid/tree/rails3) starts with version 3.0, works with Rails 3, and can only be used as a gem.
15
15
 
16
- For Rails 2 WiceGrid only works as a Rails plugin. See WiceGrid version 0.6 (https://github.com/leikind/wice_grid/).
16
+ For Rails 2 WiceGrid only works as a Rails plugin. See WiceGrid version 0.6 (https://github.com/leikind/wice_grid/).
17
17
 
18
18
  == Intro
19
19
 
@@ -40,7 +40,7 @@ There are two major branches of WiceGrid.
40
40
 
41
41
  The current branch (https://github.com/leikind/wice_grid/tree/rails3) starts with version 3.0, works with Rails 3, and can only be used as a gem.
42
42
 
43
- For Rails 2 WiceGrid only works as a Rails plugin. See WiceGrid version 0.6 (https://github.com/leikind/wice_grid/).
43
+ For Rails 2 WiceGrid only works as a Rails plugin. See WiceGrid version 0.6 (https://github.com/leikind/wice_grid/).
44
44
 
45
45
  WiceGrid is known to work with MySQL and Postgres.
46
46
 
@@ -63,9 +63,11 @@ Rails version 3.0 or newer.
63
63
 
64
64
  === Installation
65
65
 
66
- Install the gem:
66
+ Add the following to your Gemfile:
67
67
 
68
- gem install --pre wice_grid
68
+ gem "wice_grid", '3.0.0.pre1'
69
+
70
+ and run the <tt>bundle</tt> command.
69
71
 
70
72
  If your application is Prototype-based , run the following generator to copy all plugin assets:
71
73
 
@@ -83,7 +85,7 @@ WiceGrid started as a plugin using the Prototype javascript framework. Support f
83
85
  The plugin contains two versions of the main javascript file <tt>wice_grid.js</tt>, and depending on the generator run to
84
86
  install the assets (+wice_grid_assets_prototype+ or +wice_grid_assets_jquery+) the correct file is copied into <tt>public/javascripts</tt>.
85
87
 
86
- Some javascript code is also generated and injected into the HTML page. The value of constant <tt>Wice::Defaults::JS_FRAMEWORK</tt> in
88
+ Some javascript code is also generated and injected into the HTML page. The value of constant <tt>Wice::Defaults::JS_FRAMEWORK</tt> in
87
89
  configuration file <tt>wice_grid_config.rb</tt> defines for which JS framework code should be generated.
88
90
  Generators +wice_grid_assets_prototype+ and +wice_grid_assets_jquery+ create a version of <tt>wice_grid_config.rb</tt>
89
91
  with the corresponding value of <tt>Wice::Defaults::JS_FRAMEWORK</tt>.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0.pre1
1
+ 3.0.0.pre2
@@ -26,6 +26,7 @@ module Wice
26
26
  # WiceGrid is not a scaffolding solution, I hate scaffolding and how certain idiots associate scaffolding with Rails,
27
27
  # so I do not document this method to avoid contributing to this misunderstanding.
28
28
  def scaffolded_grid(grid_obj, opts = {}) #:nodoc:
29
+ Wice::JsAdaptor.init
29
30
  unless grid_obj.kind_of? WiceGrid
30
31
  raise WiceGridArgumentError.new("scaffolded_grid: the parameter must be a WiceGrid instance.")
31
32
  end
@@ -60,6 +61,7 @@ module Wice
60
61
  # but it's possible not to include them setting parameter +include_calendar+ to false:
61
62
  # <%= include_wice_grid_assets(:include_calendar => false) %>
62
63
  def include_wice_grid_assets(options = {})
64
+ Wice::JsAdaptor.init
63
65
  opts = {:include_calendar => true, :load_on_demand => true}
64
66
  options.assert_valid_keys(opts.keys)
65
67
  opts.merge!(options)
@@ -83,11 +85,12 @@ module Wice
83
85
  # By default +names_of_wice_grid_javascripts+ returns all javascripts, but it's possible not to include calendar widget javascripts by
84
86
  # setting parameter <tt>:include_calendar</tt> to +false+.
85
87
  def names_of_wice_grid_javascripts(options = {})
88
+ Wice::JsAdaptor.init
86
89
  opts = {:include_calendar => true}
87
90
  options.assert_valid_keys(opts.keys)
88
91
  opts.merge!(options)
89
92
  res = ['wice_grid']
90
- n = js_framework_specific_calendar_js_name
93
+ n = JsAdaptor.js_framework_specific_calendar_js_name
91
94
  res << n if n && opts[:include_calendar]
92
95
  res
93
96
  end
@@ -100,11 +103,12 @@ module Wice
100
103
  # By default +names_of_wice_grid_stylesheets+ returns all javascripts, but it's possible not to include calendar widget javascripts by
101
104
  # setting parameter <tt>:include_calendar</tt> to +false+.
102
105
  def names_of_wice_grid_stylesheets(options = {})
106
+ Wice::JsAdaptor.init
103
107
  opts = {:include_calendar => true}
104
108
  options.assert_valid_keys(opts.keys)
105
109
  opts.merge!(options)
106
110
  res = ['wice_grid']
107
- n = js_framework_specific_calendar_css_name
111
+ n = JsAdaptor.js_framework_specific_calendar_css_name
108
112
  res << n if n && opts[:include_calendar]
109
113
  res
110
114
  end
data/wice_grid.gemspec CHANGED
@@ -1,98 +1,96 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wice_grid}
8
- s.version = "3.0.0.pre1"
8
+ s.version = "3.0.0.pre2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yuri Leikind"]
12
- s.date = %q{2010-12-22}
12
+ s.date = %q{2010-12-28}
13
13
  s.description = %q{A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters }
14
14
  s.email = %q{yuri.leikind@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "CHANGELOG",
21
- "MIT-LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "SAVED_QUERIES_HOWTO.rdoc",
25
- "VERSION",
26
- "lib/generators/wice_grid/templates/calendarview.css",
27
- "lib/generators/wice_grid/templates/calendarview.js",
28
- "lib/generators/wice_grid/templates/icons/arrow_down.gif",
29
- "lib/generators/wice_grid/templates/icons/arrow_up.gif",
30
- "lib/generators/wice_grid/templates/icons/calendar_view_month.png",
31
- "lib/generators/wice_grid/templates/icons/delete.png",
32
- "lib/generators/wice_grid/templates/icons/expand.png",
33
- "lib/generators/wice_grid/templates/icons/page_white_excel.png",
34
- "lib/generators/wice_grid/templates/icons/page_white_find.png",
35
- "lib/generators/wice_grid/templates/icons/table.png",
36
- "lib/generators/wice_grid/templates/icons/table_refresh.png",
37
- "lib/generators/wice_grid/templates/icons/tick_all.png",
38
- "lib/generators/wice_grid/templates/icons/untick_all.png",
39
- "lib/generators/wice_grid/templates/wice_grid.css",
40
- "lib/generators/wice_grid/templates/wice_grid.yml",
41
- "lib/generators/wice_grid/templates/wice_grid_config.rb",
42
- "lib/generators/wice_grid/templates/wice_grid_jquery.js",
43
- "lib/generators/wice_grid/templates/wice_grid_prototype.js",
44
- "lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb",
45
- "lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb",
46
- "lib/grid_output_buffer.rb",
47
- "lib/grid_renderer.rb",
48
- "lib/helpers/js_calendar_helpers.rb",
49
- "lib/helpers/wice_grid_misc_view_helpers.rb",
50
- "lib/helpers/wice_grid_serialized_queries_view_helpers.rb",
51
- "lib/helpers/wice_grid_view_helpers.rb",
52
- "lib/js_adaptors/jquery_adaptor.rb",
53
- "lib/js_adaptors/js_adaptor.rb",
54
- "lib/js_adaptors/prototype_adaptor.rb",
55
- "lib/table_column_matrix.rb",
56
- "lib/tasks/wice_grid_tasks.rake",
57
- "lib/view_columns.rb",
58
- "lib/views/create.rjs",
59
- "lib/views/create_jq.rjs",
60
- "lib/views/delete.rjs",
61
- "lib/views/delete_jq.rjs",
62
- "lib/wice_grid.rb",
63
- "lib/wice_grid_controller.rb",
64
- "lib/wice_grid_core_ext.rb",
65
- "lib/wice_grid_misc.rb",
66
- "lib/wice_grid_serialized_queries_controller.rb",
67
- "lib/wice_grid_serialized_query.rb",
68
- "lib/wice_grid_spreadsheet.rb",
69
- "test/.gitignore",
70
- "test/database.yml",
71
- "test/schema.rb",
72
- "test/test_helper.rb",
73
- "test/views/projects_and_people_grid.html.erb",
74
- "test/views/projects_and_people_grid_invalid.html.erb",
75
- "test/views/simple_projects_grid.html.erb",
76
- "test/wice_grid_core_ext_test.rb",
77
- "test/wice_grid_functional_test.rb",
78
- "test/wice_grid_misc_test.rb",
79
- "test/wice_grid_test.rb",
80
- "test/wice_grid_view_helper_test.rb",
81
- "wice_grid.gemspec"
19
+ "CHANGELOG",
20
+ "MIT-LICENSE",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "SAVED_QUERIES_HOWTO.rdoc",
24
+ "VERSION",
25
+ "lib/generators/wice_grid/templates/calendarview.css",
26
+ "lib/generators/wice_grid/templates/calendarview.js",
27
+ "lib/generators/wice_grid/templates/icons/arrow_down.gif",
28
+ "lib/generators/wice_grid/templates/icons/arrow_up.gif",
29
+ "lib/generators/wice_grid/templates/icons/calendar_view_month.png",
30
+ "lib/generators/wice_grid/templates/icons/delete.png",
31
+ "lib/generators/wice_grid/templates/icons/expand.png",
32
+ "lib/generators/wice_grid/templates/icons/page_white_excel.png",
33
+ "lib/generators/wice_grid/templates/icons/page_white_find.png",
34
+ "lib/generators/wice_grid/templates/icons/table.png",
35
+ "lib/generators/wice_grid/templates/icons/table_refresh.png",
36
+ "lib/generators/wice_grid/templates/icons/tick_all.png",
37
+ "lib/generators/wice_grid/templates/icons/untick_all.png",
38
+ "lib/generators/wice_grid/templates/wice_grid.css",
39
+ "lib/generators/wice_grid/templates/wice_grid.yml",
40
+ "lib/generators/wice_grid/templates/wice_grid_config.rb",
41
+ "lib/generators/wice_grid/templates/wice_grid_jquery.js",
42
+ "lib/generators/wice_grid/templates/wice_grid_prototype.js",
43
+ "lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb",
44
+ "lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb",
45
+ "lib/grid_output_buffer.rb",
46
+ "lib/grid_renderer.rb",
47
+ "lib/helpers/js_calendar_helpers.rb",
48
+ "lib/helpers/wice_grid_misc_view_helpers.rb",
49
+ "lib/helpers/wice_grid_serialized_queries_view_helpers.rb",
50
+ "lib/helpers/wice_grid_view_helpers.rb",
51
+ "lib/js_adaptors/jquery_adaptor.rb",
52
+ "lib/js_adaptors/js_adaptor.rb",
53
+ "lib/js_adaptors/prototype_adaptor.rb",
54
+ "lib/table_column_matrix.rb",
55
+ "lib/tasks/wice_grid_tasks.rake",
56
+ "lib/view_columns.rb",
57
+ "lib/views/create.rjs",
58
+ "lib/views/create_jq.rjs",
59
+ "lib/views/delete.rjs",
60
+ "lib/views/delete_jq.rjs",
61
+ "lib/wice_grid.rb",
62
+ "lib/wice_grid_controller.rb",
63
+ "lib/wice_grid_core_ext.rb",
64
+ "lib/wice_grid_misc.rb",
65
+ "lib/wice_grid_serialized_queries_controller.rb",
66
+ "lib/wice_grid_serialized_query.rb",
67
+ "lib/wice_grid_spreadsheet.rb",
68
+ "test/.gitignore",
69
+ "test/database.yml",
70
+ "test/schema.rb",
71
+ "test/test_helper.rb",
72
+ "test/views/projects_and_people_grid.html.erb",
73
+ "test/views/projects_and_people_grid_invalid.html.erb",
74
+ "test/views/simple_projects_grid.html.erb",
75
+ "test/wice_grid_core_ext_test.rb",
76
+ "test/wice_grid_functional_test.rb",
77
+ "test/wice_grid_misc_test.rb",
78
+ "test/wice_grid_test.rb",
79
+ "test/wice_grid_view_helper_test.rb",
80
+ "wice_grid.gemspec"
82
81
  ]
83
82
  s.homepage = %q{http://github.com/lekind/wice_grid}
84
- s.rdoc_options = ["--charset=UTF-8"]
85
83
  s.require_paths = ["lib"]
86
84
  s.rubygems_version = %q{1.3.7}
87
85
  s.summary = %q{Rails Grid Plugin}
88
86
  s.test_files = [
89
87
  "test/schema.rb",
90
- "test/test_helper.rb",
91
- "test/wice_grid_core_ext_test.rb",
92
- "test/wice_grid_functional_test.rb",
93
- "test/wice_grid_misc_test.rb",
94
- "test/wice_grid_test.rb",
95
- "test/wice_grid_view_helper_test.rb"
88
+ "test/test_helper.rb",
89
+ "test/wice_grid_core_ext_test.rb",
90
+ "test/wice_grid_functional_test.rb",
91
+ "test/wice_grid_misc_test.rb",
92
+ "test/wice_grid_test.rb",
93
+ "test/wice_grid_view_helper_test.rb"
96
94
  ]
97
95
 
98
96
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wice_grid
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1876988208
4
+ hash: -1876988207
5
5
  prerelease: true
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 0
10
- - pre1
11
- version: 3.0.0.pre1
10
+ - pre2
11
+ version: 3.0.0.pre2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Yuri Leikind
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-22 00:00:00 +01:00
19
+ date: 2010-12-28 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -44,7 +44,6 @@ extensions: []
44
44
  extra_rdoc_files:
45
45
  - README.rdoc
46
46
  files:
47
- - .gitignore
48
47
  - CHANGELOG
49
48
  - MIT-LICENSE
50
49
  - README.rdoc
@@ -112,8 +111,8 @@ homepage: http://github.com/lekind/wice_grid
112
111
  licenses: []
113
112
 
114
113
  post_install_message:
115
- rdoc_options:
116
- - --charset=UTF-8
114
+ rdoc_options: []
115
+
117
116
  require_paths:
118
117
  - lib
119
118
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- .DS_Store