ctioga2 0.7 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +8 -0
- data/lib/ctioga2/commands/arguments.rb +0 -2
- data/lib/ctioga2/commands/commands.rb +0 -2
- data/lib/ctioga2/commands/context.rb +0 -2
- data/lib/ctioga2/commands/doc/doc.rb +0 -2
- data/lib/ctioga2/commands/doc/documentation-commands.rb +0 -2
- data/lib/ctioga2/commands/doc/help.rb +0 -2
- data/lib/ctioga2/commands/doc/html.rb +0 -2
- data/lib/ctioga2/commands/doc/introspection.rb +0 -2
- data/lib/ctioga2/commands/doc/man.rb +0 -2
- data/lib/ctioga2/commands/doc/markup.rb +0 -2
- data/lib/ctioga2/commands/doc/wordwrap.rb +0 -2
- data/lib/ctioga2/commands/general-commands.rb +0 -2
- data/lib/ctioga2/commands/general-types.rb +0 -2
- data/lib/ctioga2/commands/groups.rb +0 -2
- data/lib/ctioga2/commands/interpreter.rb +0 -2
- data/lib/ctioga2/commands/parsers/command-line.rb +0 -2
- data/lib/ctioga2/commands/parsers/file.rb +0 -2
- data/lib/ctioga2/commands/parsers/old-file.rb +0 -2
- data/lib/ctioga2/commands/strings.rb +0 -2
- data/lib/ctioga2/commands/type.rb +0 -2
- data/lib/ctioga2/commands/variables.rb +0 -2
- data/lib/ctioga2/data/backends/backend.rb +0 -3
- data/lib/ctioga2/data/backends/backends/direct.rb +0 -3
- data/lib/ctioga2/data/backends/backends/gnuplot.rb +0 -3
- data/lib/ctioga2/data/backends/backends/math.rb +0 -2
- data/lib/ctioga2/data/backends/backends/text.rb +0 -3
- data/lib/ctioga2/data/backends/description.rb +0 -3
- data/lib/ctioga2/data/backends/factory.rb +18 -2
- data/lib/ctioga2/data/backends/parameter.rb +0 -2
- data/lib/ctioga2/data/datacolumn.rb +0 -2
- data/lib/ctioga2/data/dataset.rb +5 -3
- data/lib/ctioga2/data/filters.rb +0 -3
- data/lib/ctioga2/data/indexed-dtable.rb +0 -3
- data/lib/ctioga2/data/point.rb +0 -3
- data/lib/ctioga2/data/stack.rb +2 -4
- data/lib/ctioga2/graphics/coordinates.rb +0 -2
- data/lib/ctioga2/graphics/elements.rb +1 -2
- data/lib/ctioga2/graphics/elements/containers.rb +32 -2
- data/lib/ctioga2/graphics/elements/contour.rb +0 -2
- data/lib/ctioga2/graphics/elements/curve2d.rb +0 -2
- data/lib/ctioga2/graphics/elements/element.rb +4 -2
- data/lib/ctioga2/graphics/elements/gradient-region.rb +0 -2
- data/lib/ctioga2/graphics/elements/histogram.rb +298 -0
- data/lib/ctioga2/graphics/elements/parametric2d.rb +7 -3
- data/lib/ctioga2/graphics/elements/primitive.rb +0 -2
- data/lib/ctioga2/graphics/elements/redirecting-container.rb +21 -2
- data/lib/ctioga2/graphics/elements/region.rb +0 -2
- data/lib/ctioga2/graphics/elements/subplot.rb +0 -2
- data/lib/ctioga2/graphics/elements/tangent.rb +0 -2
- data/lib/ctioga2/graphics/elements/xyz-contour.rb +0 -2
- data/lib/ctioga2/graphics/elements/xyz-map.rb +0 -2
- data/lib/ctioga2/graphics/generator.rb +47 -42
- data/lib/ctioga2/graphics/legends.rb +0 -2
- data/lib/ctioga2/graphics/legends/area.rb +0 -2
- data/lib/ctioga2/graphics/legends/items.rb +0 -2
- data/lib/ctioga2/graphics/legends/multicols.rb +0 -2
- data/lib/ctioga2/graphics/legends/provider.rb +0 -2
- data/lib/ctioga2/graphics/legends/storage.rb +0 -2
- data/lib/ctioga2/graphics/root.rb +0 -2
- data/lib/ctioga2/graphics/styles/arrows.rb +0 -2
- data/lib/ctioga2/graphics/styles/axes.rb +0 -2
- data/lib/ctioga2/graphics/styles/background.rb +0 -2
- data/lib/ctioga2/graphics/styles/base.rb +4 -2
- data/lib/ctioga2/graphics/styles/box.rb +0 -2
- data/lib/ctioga2/graphics/styles/carrays.rb +0 -2
- data/lib/ctioga2/graphics/styles/colormap.rb +0 -2
- data/lib/ctioga2/graphics/styles/contour.rb +0 -2
- data/lib/ctioga2/graphics/styles/curve.rb +0 -2
- data/lib/ctioga2/graphics/styles/drawable.rb +0 -2
- data/lib/ctioga2/graphics/styles/errorbar.rb +0 -2
- data/lib/ctioga2/graphics/styles/factory.rb +0 -2
- data/lib/ctioga2/graphics/styles/gradients.rb +0 -2
- data/lib/ctioga2/graphics/styles/legend.rb +0 -2
- data/lib/ctioga2/graphics/styles/location.rb +0 -2
- data/lib/ctioga2/graphics/styles/map-axes.rb +0 -2
- data/lib/ctioga2/graphics/styles/plot-types.rb +51 -3
- data/lib/ctioga2/graphics/styles/plot.rb +0 -2
- data/lib/ctioga2/graphics/styles/sets.rb +0 -2
- data/lib/ctioga2/graphics/styles/sheet.rb +0 -2
- data/lib/ctioga2/graphics/styles/texts.rb +0 -2
- data/lib/ctioga2/graphics/styles/ticks.rb +0 -2
- data/lib/ctioga2/graphics/subplot-commands.rb +0 -2
- data/lib/ctioga2/graphics/types.rb +11 -4
- data/lib/ctioga2/graphics/types/bijection.rb +0 -2
- data/lib/ctioga2/graphics/types/boundaries.rb +0 -2
- data/lib/ctioga2/graphics/types/boxes.rb +0 -2
- data/lib/ctioga2/graphics/types/dimensions.rb +0 -2
- data/lib/ctioga2/graphics/types/fill.rb +27 -15
- data/lib/ctioga2/graphics/types/grid.rb +0 -2
- data/lib/ctioga2/graphics/types/location.rb +0 -2
- data/lib/ctioga2/graphics/types/point.rb +0 -2
- data/lib/ctioga2/log.rb +0 -2
- data/lib/ctioga2/metabuilder/type.rb +0 -2
- data/lib/ctioga2/metabuilder/types/coordinates.rb +0 -2
- data/lib/ctioga2/metabuilder/types/data.rb +0 -2
- data/lib/ctioga2/metabuilder/types/dates.rb +0 -1
- data/lib/ctioga2/metabuilder/types/generic.rb +0 -3
- data/lib/ctioga2/metabuilder/types/lists.rb +25 -3
- data/lib/ctioga2/metabuilder/types/numbers.rb +0 -2
- data/lib/ctioga2/metabuilder/types/strings.rb +0 -3
- data/lib/ctioga2/metabuilder/types/styles.rb +0 -2
- data/lib/ctioga2/plotmaker.rb +2 -4
- data/lib/ctioga2/postprocess.rb +0 -2
- data/lib/ctioga2/utils.rb +6 -64
- data/lib/ctioga2/version.rb +8 -0
- metadata +6 -4
data/lib/ctioga2/plotmaker.rb
CHANGED
@@ -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 '#{
|
362
|
+
debug { "Mangled name to '#{efn}'"}
|
365
363
|
end
|
366
364
|
|
367
365
|
t.def_figure(efn) do
|
data/lib/ctioga2/postprocess.rb
CHANGED
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
|
-
|
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
|
-
|
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
|
|
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.
|
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-
|
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.
|
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:
|
177
|
+
rubyforge_project:
|
176
178
|
rubygems_version: 1.8.23
|
177
179
|
signing_key:
|
178
180
|
specification_version: 3
|