ctioga2 0.7 → 0.8

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.
Files changed (107) hide show
  1. data/Changelog +8 -0
  2. data/lib/ctioga2/commands/arguments.rb +0 -2
  3. data/lib/ctioga2/commands/commands.rb +0 -2
  4. data/lib/ctioga2/commands/context.rb +0 -2
  5. data/lib/ctioga2/commands/doc/doc.rb +0 -2
  6. data/lib/ctioga2/commands/doc/documentation-commands.rb +0 -2
  7. data/lib/ctioga2/commands/doc/help.rb +0 -2
  8. data/lib/ctioga2/commands/doc/html.rb +0 -2
  9. data/lib/ctioga2/commands/doc/introspection.rb +0 -2
  10. data/lib/ctioga2/commands/doc/man.rb +0 -2
  11. data/lib/ctioga2/commands/doc/markup.rb +0 -2
  12. data/lib/ctioga2/commands/doc/wordwrap.rb +0 -2
  13. data/lib/ctioga2/commands/general-commands.rb +0 -2
  14. data/lib/ctioga2/commands/general-types.rb +0 -2
  15. data/lib/ctioga2/commands/groups.rb +0 -2
  16. data/lib/ctioga2/commands/interpreter.rb +0 -2
  17. data/lib/ctioga2/commands/parsers/command-line.rb +0 -2
  18. data/lib/ctioga2/commands/parsers/file.rb +0 -2
  19. data/lib/ctioga2/commands/parsers/old-file.rb +0 -2
  20. data/lib/ctioga2/commands/strings.rb +0 -2
  21. data/lib/ctioga2/commands/type.rb +0 -2
  22. data/lib/ctioga2/commands/variables.rb +0 -2
  23. data/lib/ctioga2/data/backends/backend.rb +0 -3
  24. data/lib/ctioga2/data/backends/backends/direct.rb +0 -3
  25. data/lib/ctioga2/data/backends/backends/gnuplot.rb +0 -3
  26. data/lib/ctioga2/data/backends/backends/math.rb +0 -2
  27. data/lib/ctioga2/data/backends/backends/text.rb +0 -3
  28. data/lib/ctioga2/data/backends/description.rb +0 -3
  29. data/lib/ctioga2/data/backends/factory.rb +18 -2
  30. data/lib/ctioga2/data/backends/parameter.rb +0 -2
  31. data/lib/ctioga2/data/datacolumn.rb +0 -2
  32. data/lib/ctioga2/data/dataset.rb +5 -3
  33. data/lib/ctioga2/data/filters.rb +0 -3
  34. data/lib/ctioga2/data/indexed-dtable.rb +0 -3
  35. data/lib/ctioga2/data/point.rb +0 -3
  36. data/lib/ctioga2/data/stack.rb +2 -4
  37. data/lib/ctioga2/graphics/coordinates.rb +0 -2
  38. data/lib/ctioga2/graphics/elements.rb +1 -2
  39. data/lib/ctioga2/graphics/elements/containers.rb +32 -2
  40. data/lib/ctioga2/graphics/elements/contour.rb +0 -2
  41. data/lib/ctioga2/graphics/elements/curve2d.rb +0 -2
  42. data/lib/ctioga2/graphics/elements/element.rb +4 -2
  43. data/lib/ctioga2/graphics/elements/gradient-region.rb +0 -2
  44. data/lib/ctioga2/graphics/elements/histogram.rb +298 -0
  45. data/lib/ctioga2/graphics/elements/parametric2d.rb +7 -3
  46. data/lib/ctioga2/graphics/elements/primitive.rb +0 -2
  47. data/lib/ctioga2/graphics/elements/redirecting-container.rb +21 -2
  48. data/lib/ctioga2/graphics/elements/region.rb +0 -2
  49. data/lib/ctioga2/graphics/elements/subplot.rb +0 -2
  50. data/lib/ctioga2/graphics/elements/tangent.rb +0 -2
  51. data/lib/ctioga2/graphics/elements/xyz-contour.rb +0 -2
  52. data/lib/ctioga2/graphics/elements/xyz-map.rb +0 -2
  53. data/lib/ctioga2/graphics/generator.rb +47 -42
  54. data/lib/ctioga2/graphics/legends.rb +0 -2
  55. data/lib/ctioga2/graphics/legends/area.rb +0 -2
  56. data/lib/ctioga2/graphics/legends/items.rb +0 -2
  57. data/lib/ctioga2/graphics/legends/multicols.rb +0 -2
  58. data/lib/ctioga2/graphics/legends/provider.rb +0 -2
  59. data/lib/ctioga2/graphics/legends/storage.rb +0 -2
  60. data/lib/ctioga2/graphics/root.rb +0 -2
  61. data/lib/ctioga2/graphics/styles/arrows.rb +0 -2
  62. data/lib/ctioga2/graphics/styles/axes.rb +0 -2
  63. data/lib/ctioga2/graphics/styles/background.rb +0 -2
  64. data/lib/ctioga2/graphics/styles/base.rb +4 -2
  65. data/lib/ctioga2/graphics/styles/box.rb +0 -2
  66. data/lib/ctioga2/graphics/styles/carrays.rb +0 -2
  67. data/lib/ctioga2/graphics/styles/colormap.rb +0 -2
  68. data/lib/ctioga2/graphics/styles/contour.rb +0 -2
  69. data/lib/ctioga2/graphics/styles/curve.rb +0 -2
  70. data/lib/ctioga2/graphics/styles/drawable.rb +0 -2
  71. data/lib/ctioga2/graphics/styles/errorbar.rb +0 -2
  72. data/lib/ctioga2/graphics/styles/factory.rb +0 -2
  73. data/lib/ctioga2/graphics/styles/gradients.rb +0 -2
  74. data/lib/ctioga2/graphics/styles/legend.rb +0 -2
  75. data/lib/ctioga2/graphics/styles/location.rb +0 -2
  76. data/lib/ctioga2/graphics/styles/map-axes.rb +0 -2
  77. data/lib/ctioga2/graphics/styles/plot-types.rb +51 -3
  78. data/lib/ctioga2/graphics/styles/plot.rb +0 -2
  79. data/lib/ctioga2/graphics/styles/sets.rb +0 -2
  80. data/lib/ctioga2/graphics/styles/sheet.rb +0 -2
  81. data/lib/ctioga2/graphics/styles/texts.rb +0 -2
  82. data/lib/ctioga2/graphics/styles/ticks.rb +0 -2
  83. data/lib/ctioga2/graphics/subplot-commands.rb +0 -2
  84. data/lib/ctioga2/graphics/types.rb +11 -4
  85. data/lib/ctioga2/graphics/types/bijection.rb +0 -2
  86. data/lib/ctioga2/graphics/types/boundaries.rb +0 -2
  87. data/lib/ctioga2/graphics/types/boxes.rb +0 -2
  88. data/lib/ctioga2/graphics/types/dimensions.rb +0 -2
  89. data/lib/ctioga2/graphics/types/fill.rb +27 -15
  90. data/lib/ctioga2/graphics/types/grid.rb +0 -2
  91. data/lib/ctioga2/graphics/types/location.rb +0 -2
  92. data/lib/ctioga2/graphics/types/point.rb +0 -2
  93. data/lib/ctioga2/log.rb +0 -2
  94. data/lib/ctioga2/metabuilder/type.rb +0 -2
  95. data/lib/ctioga2/metabuilder/types/coordinates.rb +0 -2
  96. data/lib/ctioga2/metabuilder/types/data.rb +0 -2
  97. data/lib/ctioga2/metabuilder/types/dates.rb +0 -1
  98. data/lib/ctioga2/metabuilder/types/generic.rb +0 -3
  99. data/lib/ctioga2/metabuilder/types/lists.rb +25 -3
  100. data/lib/ctioga2/metabuilder/types/numbers.rb +0 -2
  101. data/lib/ctioga2/metabuilder/types/strings.rb +0 -3
  102. data/lib/ctioga2/metabuilder/types/styles.rb +0 -2
  103. data/lib/ctioga2/plotmaker.rb +2 -4
  104. data/lib/ctioga2/postprocess.rb +0 -2
  105. data/lib/ctioga2/utils.rb +6 -64
  106. data/lib/ctioga2/version.rb +8 -0
  107. metadata +6 -4
@@ -20,8 +20,6 @@ require 'ctioga2/utils'
20
20
 
21
21
  module CTioga2
22
22
 
23
- Version::register_svn_info('$Revision: 401 $', '$Date: 2013-08-19 17:29:59 +0200 (Mon, 19 Aug 2013) $')
24
-
25
23
  module MetaBuilder
26
24
 
27
25
  # The module Types should be used for all subclasses of
@@ -19,9 +19,6 @@ require 'ctioga2/utils'
19
19
 
20
20
  module CTioga2
21
21
 
22
- Version::register_svn_info('$Revision: 2 $', '$Date: 2009-04-25 14:03:30 +0200 (Sat, 25 Apr 2009) $')
23
-
24
-
25
22
  module MetaBuilder
26
23
 
27
24
  # The module Types should be used for all subclasses of
@@ -20,8 +20,6 @@ require 'ctioga2/utils'
20
20
 
21
21
  module CTioga2
22
22
 
23
- Version::register_svn_info('$Revision: 401 $', '$Date: 2013-08-19 17:29:59 +0200 (Mon, 19 Aug 2013) $')
24
-
25
23
  module MetaBuilder
26
24
  module Types
27
25
 
@@ -158,8 +158,6 @@ require 'ctioga2/postprocess'
158
158
  # displays of rate constants vs potentials)
159
159
  module CTioga2
160
160
 
161
- Version::register_svn_info('$Revision: 522 $', '$Date: 2013-09-22 12:02:48 +0200 (Sun, 22 Sep 2013) $')
162
-
163
161
  # This class is the core of ctioga. It parses the command-line arguments,
164
162
  # reads all necessary files and plots graphs. Most of its functionality
165
163
  # is delegated into classes.
@@ -357,11 +355,11 @@ module CTioga2
357
355
  fn = path.basename.to_s
358
356
 
359
357
  efn = fn.gsub(/[.\s]/) do |x|
360
- "__#{x.ord}__"
358
+ "__#{x[0].ord}__"
361
359
  end
362
360
 
363
361
  if efn != fn
364
- debug { "Mangled name to '#{fn}'"}
362
+ debug { "Mangled name to '#{efn}'"}
365
363
  end
366
364
 
367
365
  t.def_figure(efn) do
@@ -17,8 +17,6 @@ require 'ctioga2/log'
17
17
 
18
18
  module CTioga2
19
19
 
20
- Version::register_svn_info('$Revision: 522 $', '$Date: 2013-09-22 12:02:48 +0200 (Sun, 22 Sep 2013) $')
21
-
22
20
  # What happens to generated PDF files ?
23
21
  #
24
22
  # \todo
data/lib/ctioga2/utils.rb CHANGED
@@ -14,6 +14,10 @@
14
14
  # For platform detection
15
15
  require 'rbconfig'
16
16
 
17
+ # The version
18
+ require 'ctioga2/version'
19
+
20
+
17
21
  module CTioga2
18
22
 
19
23
  # An exception to raise upon to-be-implemented-one-day features
@@ -26,69 +30,14 @@ module CTioga2
26
30
 
27
31
  # The current version of the program.
28
32
  def self.version
29
- if CTIOGA_VERSION =~ /SVN/
30
- return "SVN, revision #{SVN_INFO['revision']}#{SVN_INFO['suffix']}, #{SVN_INFO['date']}"
31
- else
32
- return CTIOGA_VERSION
33
- end
33
+ return GIT_VERSION
34
34
  end
35
35
 
36
36
 
37
- # All files should use this function with the appropriate
38
- # arguments and have the Date and Revision svn:keyword:. Use this
39
- # way:
40
- #
41
- # Version::register_svn_info('$Revision: 532 $', '$Date: 2013-09-29 12:13:33 +0200 (Sun, 29 Sep 2013) $')
42
- #
43
- # To set the correct properties, the following command-line can be
44
- # used:
45
- #
46
- # svn propset svn:keywords 'Date Revision'
47
- def self.register_svn_info(rev_str, date_str)
48
- if rev_str =~ /(\d+)/
49
- rev = $1
50
- str = 'Date'
51
- date = date_str.gsub(/\$#{str}:\s*(.*)\$/) { $1 }
52
- if SVN_INFO['revision'] < rev.to_i
53
- SVN_INFO['revision'] = rev.to_i
54
- SVN_INFO['date'] = date
55
- end
56
- # Hmmm, we want to see how many revisions is git ahead of SVN
57
- if rev_str =~ /(\+git\d+)/
58
- SVN_INFO['suffix'] = $1
59
- end
60
- end
61
- end
62
-
63
37
  # Returns the date ctioga2 was last modified.
64
38
  def self.last_modified_date
65
- SVN_INFO['date'] =~ /([\d-]+)/
66
- return $1
39
+ return GIT_DATE
67
40
  end
68
-
69
-
70
- # The constants are moved here, as they disturb rdoc parsing.
71
-
72
-
73
- # Informations collected about subversion revisions
74
- SVN_INFO = {
75
- 'revision' => 0,
76
- 'date' => "old",
77
- 'suffix' => ''
78
- }
79
-
80
- # The position of the URL, used for getting the version
81
- SVN_URL = '$HeadURL: svn+ssh://rubyforge.org/var/svn/ctioga2/releases/ctioga2-0.7/lib/ctioga2/utils.rb $'
82
-
83
- # The version of ctioga2
84
- CTIOGA_VERSION = if SVN_URL =~ /releases\/ctioga2-([^\/]+)/
85
- $1
86
- else
87
- "SVN version"
88
- end
89
-
90
- register_svn_info('$Revision: 532 $', '$Date: 2013-09-29 12:13:33 +0200 (Sun, 29 Sep 2013) $')
91
-
92
41
  end
93
42
 
94
43
  # Various utilities
@@ -477,11 +426,4 @@ class String
477
426
  end
478
427
  end
479
428
 
480
- begin
481
- # This is a dirty hack in order to ensure that the SVN revision
482
- # information is kept up-to-date even when using git-svn. This
483
- # file is not present in standard installations.
484
- require 'ctioga2/git-fools-svn'
485
- rescue LoadError => e
486
- end
487
429
 
@@ -0,0 +1,8 @@
1
+ # Automatically generated file.
2
+ module CTioga2
3
+
4
+ module Version
5
+ GIT_VERSION = '0.8'
6
+ GIT_DATE = 'Fri 27 Dec 01:11:58 CET 2013'
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ctioga2
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: '0.8'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-07 00:00:00.000000000 Z
12
+ date: 2013-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tioga
@@ -66,6 +66,7 @@ files:
66
66
  - lib/ctioga2/commands/commands.rb
67
67
  - lib/ctioga2/postprocess.rb
68
68
  - lib/ctioga2/utils.rb
69
+ - lib/ctioga2/version.rb
69
70
  - lib/ctioga2/graphics/types/dimensions.rb
70
71
  - lib/ctioga2/graphics/types/boundaries.rb
71
72
  - lib/ctioga2/graphics/types/location.rb
@@ -76,6 +77,7 @@ files:
76
77
  - lib/ctioga2/graphics/types/point.rb
77
78
  - lib/ctioga2/graphics/coordinates.rb
78
79
  - lib/ctioga2/graphics/elements/redirecting-container.rb
80
+ - lib/ctioga2/graphics/elements/histogram.rb
79
81
  - lib/ctioga2/graphics/elements/parametric2d.rb
80
82
  - lib/ctioga2/graphics/elements/gradient-region.rb
81
83
  - lib/ctioga2/graphics/elements/region.rb
@@ -153,7 +155,7 @@ files:
153
155
  - Changelog
154
156
  - setup.rb
155
157
  - bin/ctioga2
156
- homepage: http://ctioga2.rubyforge.org
158
+ homepage: http://ctioga2.sourceforge.net
157
159
  licenses: []
158
160
  post_install_message:
159
161
  rdoc_options: []
@@ -172,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
174
  - !ruby/object:Gem::Version
173
175
  version: '0'
174
176
  requirements: []
175
- rubyforge_project: ctioga2
177
+ rubyforge_project:
176
178
  rubygems_version: 1.8.23
177
179
  signing_key:
178
180
  specification_version: 3