htmlgrid 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/History.txt +8 -1
  3. data/Manifest.txt +1 -1
  4. data/lib/htmlgrid/component.rb +3 -11
  5. data/lib/htmlgrid/composite.rb +5 -5
  6. data/lib/htmlgrid/divcomposite.rb +1 -1
  7. data/lib/htmlgrid/dojotoolkit.rb +2 -6
  8. data/lib/htmlgrid/form.rb +1 -5
  9. data/lib/htmlgrid/grid.rb +9 -8
  10. data/lib/htmlgrid/link.rb +1 -1
  11. data/lib/htmlgrid/richtext.rb +1 -1
  12. data/lib/htmlgrid/spancomposite.rb +1 -1
  13. data/lib/htmlgrid/template.rb +1 -0
  14. data/lib/htmlgrid/ulcomposite.rb +1 -1
  15. data/lib/htmlgrid/version.rb +5 -0
  16. data/test/rebuild.rb +0 -0
  17. data/{ext/htmlgrid/extconf.rb → test/suite.rb} +10 -11
  18. data/test/test_add_row.rb +75 -0
  19. data/test/test_component.rb +7 -17
  20. data/test/test_composite.rb +33 -20
  21. data/test/test_datevalue.rb +2 -2
  22. data/test/test_form.rb +16 -15
  23. data/test/test_formlist.rb +11 -10
  24. data/test/test_grid.rb +10 -22
  25. data/test/test_input.rb +8 -7
  26. data/test/test_interaction_list.rb +257 -0
  27. data/test/test_label.rb +5 -14
  28. data/test/test_list.rb +3 -5
  29. data/test/test_select.rb +15 -8
  30. data/test/test_template.rb +15 -15
  31. data/test/test_text.rb +2 -2
  32. metadata +117 -74
  33. data/.gemtest +0 -0
  34. data/.gitignore +0 -3
  35. data/.travis.yml +0 -28
  36. data/COPYING +0 -515
  37. data/Gemfile +0 -20
  38. data/Gemfile.lock +0 -50
  39. data/README.txt +0 -31
  40. data/Rakefile +0 -52
  41. data/ext/htmlgrid/MANIFEST +0 -3
  42. data/ext/htmlgrid/grid.c +0 -899
  43. data/ext/htmlgrid/htmlgrid.c +0 -30
  44. data/ext/htmlgrid/include/grid.h +0 -79
  45. data/ext/htmlgrid/include/htmlgrid.h +0 -33
  46. data/htmlgrid.gemspec +0 -16
  47. data/install.rb +0 -1098
  48. data/usage-en.txt +0 -112
  49. data/widget/Tooltip.js +0 -85
@@ -1,30 +0,0 @@
1
- /*
2
- * HtmlGrid -- HyperTextMarkupLanguage Framework
3
- * Copyright (C) 2003 ywesee - intellectual capital connected
4
- * Andreas Schrafl, Benjamin Fay, Hannes Wyss, Markus Huggler
5
- *
6
- * This library is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License, or (at your option) any later version.
10
- *
11
- * This library is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with this library; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- *
20
- * ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
21
- * htmlgrid@ywesee.com, www.ywesee.com
22
- */
23
-
24
- #include "htmlgrid.h"
25
- #include "grid.h"
26
-
27
- void Init_htmlgrid() {
28
- htmlgrid = rb_define_module("HtmlGrid");
29
- Init_Grid();
30
- }
@@ -1,79 +0,0 @@
1
- /*
2
- * HtmlGrid -- HyperTextMarkupLanguage Framework
3
- * Copyright (C) 2003 ywesee - intellectual capital connected
4
- * Andreas Schrafl, Benjamin Fay, Hannes Wyss, Markus Huggler
5
- *
6
- * This library is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License, or (at your option) any later version.
10
- *
11
- * This library is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with this library; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- *
20
- * ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
21
- * htmlgrid@ywesee.com, www.ywesee.com
22
- */
23
-
24
- #ifndef GRID_H
25
- #define GRID_H
26
-
27
- #include "htmlgrid.h"
28
-
29
- #ifndef RUBY_19
30
- # define RHASH_TBL(arg) RHASH(arg)->tbl
31
- #endif
32
-
33
- VALUE grid;
34
-
35
- void Init_Grid();
36
- VALUE grid_new(long argc, VALUE *argv, VALUE klass);
37
- VALUE grid_initialize(VALUE self, VALUE attr);
38
- VALUE grid_height(VALUE self);
39
- VALUE grid_width(VALUE self);
40
- VALUE grid_to_html(VALUE self, VALUE cgi);
41
- VALUE grid_add(long argc, VALUE * argv, VALUE self);
42
- VALUE grid_add_attribute(long argc, VALUE *argv, VALUE self);
43
- VALUE grid_add_row(VALUE self, VALUE item, VALUE xval, VALUE yval);
44
- VALUE grid_add_field(VALUE self, VALUE item, VALUE xval, VALUE yval);
45
- VALUE grid_add_column(VALUE self, VALUE item, VALUE xval, VALUE yval);
46
- VALUE grid_add_tag(long argc, VALUE *argv, VALUE self);
47
- VALUE grid_add_style(long argc, VALUE *argv, VALUE self);
48
- VALUE grid_add_component_style(long argc, VALUE *argv, VALUE self);
49
- VALUE grid_push(VALUE self, VALUE item);
50
- VALUE grid_row_set_attributes(long argc, VALUE *argv, VALUE self);
51
- VALUE grid_set_colspan(long argc, VALUE *argv, VALUE self);
52
- VALUE grid_set_attribute(VALUE self, VALUE key, VALUE value);
53
- VALUE grid_set_attributes(VALUE self, VALUE hash);
54
- VALUE grid_insert_row(VALUE self, VALUE yval, VALUE item);
55
- VALUE grid_field_attribute(VALUE self, VALUE name, VALUE xval, VALUE yval);
56
-
57
- typedef struct cGrid cGrid;
58
- typedef struct cField cField;
59
-
60
- struct cField {
61
- VALUE *content;
62
- long capacity;
63
- long content_count;
64
- VALUE attributes;
65
- char tag[16];
66
- long colspan;
67
- };
68
-
69
- struct cGrid {
70
- long height;
71
- long width;
72
- long capacity;
73
- long row_capacity;
74
- VALUE attributes;
75
- VALUE *row_attributes;
76
- cField **fields;
77
- };
78
-
79
- #endif // HTMLGRID_H
@@ -1,33 +0,0 @@
1
- /*
2
- * HtmlGrid -- HyperTextMarkupLanguage Framework
3
- * Copyright (C) 2003 ywesee - intellectual capital connected
4
- * Andreas Schrafl, Benjamin Fay, Hannes Wyss, Markus Huggler
5
- *
6
- * This library is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License, or (at your option) any later version.
10
- *
11
- * This library is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with this library; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- *
20
- * ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
21
- * htmlgrid@ywesee.com, www.ywesee.com
22
- */
23
-
24
- #ifndef HTMLGRID_H
25
- #define HTMLGRID_H
26
-
27
- #include "ruby.h"
28
-
29
- #define SVALUE volatile VALUE
30
-
31
- VALUE htmlgrid;
32
-
33
- #endif // HTMLGRID_H
data/htmlgrid.gemspec DELETED
@@ -1,16 +0,0 @@
1
- require File.join(File.dirname(__FILE__), 'lib', 'htmlgrid/grid.rb')
2
-
3
- spec = Gem::Specification.new do |s|
4
- s.name = "htmlgrid"
5
- s.version = VERSION
6
- s.summary = "HtmlGrid is a Html-ToolKit for Ruby Webframeworks."
7
- s.description = "Not much to say."
8
- s.author = "Masaomi Hatakeyama, Zeno R.R. Davatz"
9
- s.email = "mhatakeyama@ywesee.com, zdavatz@ywesee.com"
10
- s.platform = Gem::Platform::RUBY
11
- s.license = "GPL v2.1"
12
- s.files = Dir.glob("{bin,lib,test}/**/*") + Dir.glob("*.txt")
13
- s.add_development_dependency "hoe"
14
- s.homepage = "https://github.com/zdavatz/htmlgrid/"
15
- end
16
-