topas-tools 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2170b03e20ff05d36be9578bae34c91277c61099
4
- data.tar.gz: 36c698ba2ec54a4ceb21a8bd4f858a5baa6f24af
3
+ metadata.gz: 987df3ec3a644e10544cc624319256d6cae2db0d
4
+ data.tar.gz: 452e747ae4ab2be232b55c68b6d11582341f5046
5
5
  SHA512:
6
- metadata.gz: 02492c79940bf73d62fde03d6b91aa81e57656d8d85c38852392090ba12d35d2f034180997c04d5aa9afa491215470e51a203eeb4f94f654d232a258bb77d40c
7
- data.tar.gz: d8be1e2f7db5ce5a8627a809fd472db3d39bf3c699b5b1c0b9bd22721e25d165adb0addc4e3b58f1ff0ea7e0fe0fbd9e5bcfc164915ecd2f6b7382cbb443edb5
6
+ metadata.gz: f9ab976c9b4e1118b8ea2d49e547e58d8fee48f3bf23bac7b4de838191d739e0eaba5db9c2ffac090fe1e9daa2102cf3257a9d3b342400ae9dbe616ff1301fe3
7
+ data.tar.gz: cb1b3808929fd8e51f68abe5d6ae90fa805aadae4ff3b50042ab1673d898263ef57b8f2f7ba12238552e3dbb836d569b886c7721e60cfced5c0ad14e35217b87
File without changes
@@ -9,11 +9,7 @@ Shoes.app :width => 400, :height => 800 do
9
9
 
10
10
  @log = StringIO.new
11
11
  @log.write "Hi, log starts here!\n"
12
-
13
- def log
14
- @log
15
- end
16
-
12
+
17
13
  #base flow
18
14
  flow :margin=>10 do
19
15
 
@@ -36,7 +32,6 @@ Shoes.app :width => 400, :height => 800 do
36
32
  #\small flow
37
33
 
38
34
  caption "Points and steps"
39
- para "TODO объяснить, кто все эти люди"
40
35
  flow do
41
36
  para "Points:"
42
37
  @pointline = edit_line
@@ -60,12 +55,13 @@ Shoes.app :width => 400, :height => 800 do
60
55
  begin
61
56
  points = @pointline.text.split(/[,\s]+/).map(&:to_f)
62
57
  steps = @stepsline.text.split(/[,\s]+/).map(&:to_f)
63
- rescue alert("Блюди формат точек и шагов!!")
58
+ rescue alert("Some issues with steps'n'points!")
64
59
  end
65
60
 
66
61
  Thread.new(points, steps, @log ) do |points, steps|
67
62
  inp = @inpline.text
68
63
  TopasEngine.system = @systemlist.text.to_sym
64
+ TopasEngine.topasdir = @topasdir.text
69
65
  runner = TopasEngine.new File.dirname(inp)
70
66
  input = TopasInput.new IO.read(inp, :encoding => "UTF-8"), inp
71
67
  runner.refine input, points, steps, BaseAnalyzer.new(@log)
@@ -15,6 +15,8 @@ class TopasEngine
15
15
  end
16
16
 
17
17
  def self.topasdir=(topasdir)
18
+ Dir.exists?(topasdir) || raise("Non-existing directory!")
19
+ Dir.entries(topasdir).any?{|f| f == 'tc.exe'} || raise("Where is my tc.exe?!")
18
20
  @@topasdir = topasdir
19
21
  end
20
22
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: topas-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Dmitrienko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: green_shoes
@@ -44,7 +44,7 @@ files:
44
44
  - lib/topas-tools/Analyzers.rb
45
45
  - lib/topas-tools/TopasEngine.rb
46
46
  - lib/topas-tools/TopasInput.rb
47
- homepage:
47
+ homepage: https://github.com/dmitrienka/topas-tools
48
48
  licenses:
49
49
  - GPL2
50
50
  metadata: {}