rubyplots 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDM5YjRmMDlkMjdiY2Q4MzlmNTBlMGRlZTViY2Q4MmFlNDRiNTBmMQ==
5
+ data.tar.gz: !binary |-
6
+ YWZjYjM1ZTI0YmQ3NjEyYjZiZmQyMTE2YzVhYjJmOGI4MGQ3NzE2Zg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NTYzNmQyMTA0NDVmOWNlMWZiZjZjYTBjY2YwNTQwZTlmNGEyMWNkYjE1NGQw
10
+ NDM2NWQ0MjRmMzdhZjgzYjA1ZGEwZTJmMzBhM2I0Y2I3ZjMzMTE5NDA2ODNm
11
+ MjJhYzM4YjQ5YjJhZTUwN2RmZDM4MjczYTM5ZDYzOGM2MTc0YWI=
12
+ data.tar.gz: !binary |-
13
+ YjU3NDA5MmZlZDkwNjViM2FkMjI2YmJhZjc4N2U0Y2I5OGY2ZjM5MTFhN2Nj
14
+ MGQxNTlmZWE0MjA0NGRhN2Q3NjYyOWRjMWViZDdkZmY2ODZmYzcxNTlmMGJl
15
+ NDZlMGQxNmNhNTIzOWViOWExNDZjMDE5MmM1Njc0OGVjYmZjNmQ=
@@ -10,16 +10,19 @@ require_relative './rubyplots/orchestrator'
10
10
 
11
11
  class RubyPlots
12
12
 
13
- @orchestrator = nil
13
+ @orchestrator
14
+ @filesFound
14
15
 
15
16
  def initialize
16
17
  end
17
18
 
18
19
  # data can be a file or directory
19
20
  def generatePlotsFor(data)
20
- dataPath = File.expand_path(data)
21
+ dataPath = File.absolute_path(data)
21
22
  tempLatexDir = createTempDirectoryFor dataPath
23
+ puts "RubyPlots: created temporary working directory '#{tempLatexDir}'."
22
24
  @orchestrator = Orchestrator.new(tempLatexDir)
25
+ @filesFound = 0
23
26
 
24
27
  if File.directory? dataPath
25
28
  checkTypeAndGenerateForDir dataPath
@@ -29,6 +32,7 @@ class RubyPlots
29
32
 
30
33
  @orchestrator.generatePlots
31
34
  @orchestrator.savePlotsAndCleanup tempLatexDir
35
+ return {:filesFound => @filesFound}
32
36
  end
33
37
 
34
38
 
@@ -47,6 +51,7 @@ class RubyPlots
47
51
 
48
52
  def checkTypeAndGenerateForFile(file)
49
53
  if isRightType?(file)
54
+ @filesFound += 1
50
55
  @orchestrator.addLatexFor(file)
51
56
  end
52
57
  end
@@ -43,6 +43,7 @@ class ScatterPlot
43
43
  file << '\\end{tikzpicture}' + "\n"
44
44
  end
45
45
  end
46
+ puts "RubyPlots: added latex for '#{dataFile}'."
46
47
  end
47
48
 
48
49
  def validateColumnNames(x, y)
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyplots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Matthew Pate
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-04-06 00:00:00.000000000 Z
11
+ date: 2014-04-26 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: RubyPlots can be set loose on a directory of datafiles or a singluar
15
14
  datafile. It uses the file extension to determine a datafile of interest and, using
@@ -21,31 +20,30 @@ extensions: []
21
20
  extra_rdoc_files: []
22
21
  files:
23
22
  - lib/rubyplots.rb
24
- - lib/rubyplots/scatterplot.rb
25
23
  - lib/rubyplots/orchestrator.rb
24
+ - lib/rubyplots/scatterplot.rb
26
25
  homepage: http://mcpate.github.io/RubyPlots/
27
26
  licenses:
28
27
  - MIT
28
+ metadata: {}
29
29
  post_install_message:
30
30
  rdoc_options: []
31
31
  require_paths:
32
32
  - lib
33
33
  required_ruby_version: !ruby/object:Gem::Requirement
34
- none: false
35
34
  requirements:
36
35
  - - ! '>='
37
36
  - !ruby/object:Gem::Version
38
37
  version: '0'
39
38
  required_rubygems_version: !ruby/object:Gem::Requirement
40
- none: false
41
39
  requirements:
42
40
  - - ! '>='
43
41
  - !ruby/object:Gem::Version
44
42
  version: '0'
45
43
  requirements: []
46
44
  rubyforge_project:
47
- rubygems_version: 1.8.23
45
+ rubygems_version: 2.2.2
48
46
  signing_key:
49
- specification_version: 3
47
+ specification_version: 4
50
48
  summary: RubyPlots - An open source plotting utility for Ruby!
51
49
  test_files: []