rios 0.3.0 → 0.4.0
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.
- data/VERSION +1 -1
- data/bin/script.rb +0 -15
- data/ext/rios/rios/pty.h +12 -0
- data/ext/rios/{util.h → rios/util.h} +0 -0
- data/ext/rios/util.c +3 -2
- data/lib/rios/proxy.rb +0 -1
- data/rios.gemspec +4 -3
- metadata +5 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/bin/script.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- coding: utf-8 -*-
|
3
3
|
|
4
|
-
require "pathname"
|
5
|
-
|
6
|
-
$LOAD_PATH.unshift(File.dirname(File.symlink?(__FILE__) ?
|
7
|
-
Pathname.new(__FILE__).realpath : __FILE__) + "/../lib")
|
8
|
-
|
9
4
|
require "rios/proxy"
|
10
5
|
|
11
6
|
module Color
|
@@ -40,16 +35,6 @@ class Script
|
|
40
35
|
s
|
41
36
|
}
|
42
37
|
|
43
|
-
@proxy.on_input { |s|
|
44
|
-
if s.index("$")
|
45
|
-
@proxy.input("a")
|
46
|
-
@proxy.output("You cannot input $. Haha!\n")
|
47
|
-
""
|
48
|
-
else
|
49
|
-
nil
|
50
|
-
end
|
51
|
-
}
|
52
|
-
|
53
38
|
@proxy.on_finish {
|
54
39
|
@file.close
|
55
40
|
}
|
data/ext/rios/rios/pty.h
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#ifndef RIOS_PTY_H_
|
2
|
+
#define RIOS_PTY_H_
|
3
|
+
|
4
|
+
#if defined __linux__
|
5
|
+
# include <pty.h>
|
6
|
+
#elif defined __FreeBSD__
|
7
|
+
# include <libutil.h>
|
8
|
+
#elif defined __APLLE__ || defined __MACOS_X || defined __NetBSD__ || defined __OpenBSD
|
9
|
+
# include <util.h>
|
10
|
+
#endif
|
11
|
+
|
12
|
+
#endif /* !RIOS_PTY_H_ */
|
File without changes
|
data/ext/rios/util.c
CHANGED
data/lib/rios/proxy.rb
CHANGED
data/rios.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rios}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mooz"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2012-01-07}
|
13
13
|
s.default_executable = %q{script.rb}
|
14
14
|
s.description = %q{Rios is a proxy framework which works as a proxy
|
15
15
|
for command line applications and allows developer to hook input/output
|
@@ -28,8 +28,9 @@ Gem::Specification.new do |s|
|
|
28
28
|
"VERSION",
|
29
29
|
"bin/script.rb",
|
30
30
|
"ext/rios/extconf.rb",
|
31
|
+
"ext/rios/rios/pty.h",
|
32
|
+
"ext/rios/rios/util.h",
|
31
33
|
"ext/rios/util.c",
|
32
|
-
"ext/rios/util.h",
|
33
34
|
"lib/rios.rb",
|
34
35
|
"lib/rios/easy.rb",
|
35
36
|
"lib/rios/proxy.rb",
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.4.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- mooz
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-01-07 00:00:00 +09:00
|
14
14
|
default_executable: script.rb
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -87,8 +87,9 @@ files:
|
|
87
87
|
- VERSION
|
88
88
|
- bin/script.rb
|
89
89
|
- ext/rios/extconf.rb
|
90
|
+
- ext/rios/rios/pty.h
|
91
|
+
- ext/rios/rios/util.h
|
90
92
|
- ext/rios/util.c
|
91
|
-
- ext/rios/util.h
|
92
93
|
- lib/rios.rb
|
93
94
|
- lib/rios/easy.rb
|
94
95
|
- lib/rios/proxy.rb
|
@@ -109,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
110
|
requirements:
|
110
111
|
- - ">="
|
111
112
|
- !ruby/object:Gem::Version
|
112
|
-
hash: -
|
113
|
+
hash: -873091277
|
113
114
|
segments:
|
114
115
|
- 0
|
115
116
|
version: "0"
|