tkar 0.64 → 0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/tkar +104 -0
  3. data/lib/tkar/version.rb +2 -2
  4. metadata +6 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4196633cb35d88e09177f98152a39c7e270e430c
4
- data.tar.gz: d49c7da5c07643a4eb64a122dfcaf719739570a2
3
+ metadata.gz: 656db5fb41eda64bf2422fb83348f86bcfe470bc
4
+ data.tar.gz: 1d5ebdd17e5c934846594f9534a377e5bdace760
5
5
  SHA512:
6
- metadata.gz: 8c3331fa2839d571f00e824df61e30e8c22e3a85d1043d8af16d403bac82b0c29725a9ffdbb02f19d7556144717b62b4a645d8a46bcbaecb51afd6290f34494d
7
- data.tar.gz: 41d04aded1f21bc6bda145d67f288d512fab7a64bf456825683b80c32cfdc5ad9d88b39748e835cd1947bda13f21fd8690ce0ba2b7355952b7b312771a1fa1de
6
+ metadata.gz: 28ebabb21ae8278113a23f82b00c8e83637bd82683bdc980635a6913d792a433c1220008d1ac6305483da251e5826db0b131154575349a0e9cd7436317118d68
7
+ data.tar.gz: 3beb95995cbc63252dd86ec77ae417e8c5f2d7e7601d2ba0130db156e345fd518024f4aca938b93d7e748451afd1d80dc365a34c8895d42cc3cac4f474452c73
@@ -0,0 +1,104 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ local_lib_dir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
4
+
5
+ if ARGV.delete("--local-lib")
6
+ $LOAD_PATH.unshift local_lib_dir
7
+ end
8
+
9
+ require 'tkar/argos'
10
+
11
+ optdef = {
12
+ "b" => true,
13
+ "c" => true,
14
+ "h" => true,
15
+ "help" => true,
16
+ "v" => true,
17
+ "persist" => true,
18
+ "radians" => true,
19
+ "flip" => true,
20
+ "stderr" => proc {|arg| arg},
21
+ "version" => true
22
+ }
23
+
24
+ opts = Argos.parse_options(ARGV, optdef)
25
+
26
+ stderr_file = opts["stderr"]
27
+ if stderr_file
28
+ begin
29
+ $stderr = File.open(stderr_file, "w")
30
+ rescue
31
+ $stderr.puts "Warning: could not open #{stderr_file} for writing."
32
+ end
33
+ end
34
+
35
+ $0 = "tkar"
36
+
37
+ if opts["h"] or opts["help"]
38
+ puts <<-END
39
+
40
+ #{$0} [options] [addr] [port]
41
+
42
+ Start a tkar animation process. Its inputs and outputs are one of:
43
+
44
+ stdin/stdout: this is the default
45
+
46
+ TCP socket: if port is given (addr default is 127.0.0.1)
47
+
48
+ UNIX socket: if addr only is given
49
+
50
+ Options:
51
+
52
+ -b turns on binary protocol mode, otherwise uses ascii
53
+
54
+ -c act as client instead of server [socket cases only];
55
+ attempts to connect to specified address
56
+
57
+ -h this help
58
+ --help
59
+
60
+ -v be verbose
61
+
62
+ --version print version information and exit
63
+
64
+ --local-lib look for tkar lib files at path relative to this
65
+ program (currently, #{local_lib_dir})
66
+
67
+ --persist keep window open after finishing (even in
68
+ case of errors)
69
+
70
+ --radians accept rotation input in radians instead of degrees;
71
+ doesn't affect coords inside shapes
72
+
73
+ --flip flips the global y axis, affecting both input
74
+ and output; doesn't affect coords inside shapes
75
+
76
+ END
77
+ exit
78
+ end
79
+
80
+ if opts["version"]
81
+ require 'tkar/version'
82
+ puts Tkar::Version
83
+ exit
84
+ end
85
+
86
+ require 'tkar'
87
+
88
+ # so io errors kill the whole process instead of just one thread.
89
+ Thread.abort_on_exception = true
90
+
91
+ if defined?(REQUIRE2LIB) # for rubyscript2exe
92
+ require 'tk/root'
93
+ require 'tk/frame'
94
+ require 'tk/bindtag'
95
+ require 'tk/pack'
96
+ require 'tk/grid'
97
+ require 'tk/scrollbar'
98
+ require 'tk/virtevent'
99
+ require 'tk/timer'
100
+ require 'tk/variable'
101
+ exit
102
+ end
103
+
104
+ Tkar.run(ARGV, opts)
@@ -1,4 +1,4 @@
1
1
  module Tkar
2
- VERSION = '0.64'
2
+ VERSION = '0.65'
3
3
  end
4
-
4
+
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkar
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.64'
4
+ version: '0.65'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel VanderWerf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-25 00:00:00.000000000 Z
11
+ date: 2014-08-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Tkar listens to an incoming stream of data and animates it in a 2D canvas.
14
14
  User interaction is streamed back out.
15
15
  email: vjoel@users.sourceforge.net
16
- executables: []
16
+ executables:
17
+ - tkar
17
18
  extensions: []
18
19
  extra_rdoc_files:
19
20
  - README.md
@@ -22,6 +23,7 @@ files:
22
23
  - COPYING
23
24
  - README.md
24
25
  - Rakefile
26
+ - bin/tkar
25
27
  - doc/faq.md
26
28
  - doc/old-history.txt
27
29
  - doc/protocol.md
@@ -74,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
76
  version: '0'
75
77
  requirements: []
76
78
  rubyforge_project:
77
- rubygems_version: 2.2.1
79
+ rubygems_version: 2.4.1
78
80
  signing_key:
79
81
  specification_version: 4
80
82
  summary: Generic 2D animation tool