rhcp_shell 0.0.3 → 0.0.4
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/{lib/rhcp_shell.rb → bin/rhcp_shell} +1 -15
- data/lib/test.log +24 -0
- data/lib/version.rb +15 -0
- metadata +18 -36
- data/History.txt +0 -6
- data/Manifest.txt +0 -12
- data/README +0 -3
- data/README.txt +0 -48
- data/Rakefile +0 -76
- data/rhcp_shell.sh +0 -4
@@ -10,24 +10,10 @@ require 'rhcp'
|
|
10
10
|
|
11
11
|
require 'base_shell'
|
12
12
|
require 'rhcp_shell_backend'
|
13
|
+
require 'version'
|
13
14
|
|
14
15
|
class RhcpShell
|
15
16
|
|
16
|
-
class Version
|
17
|
-
|
18
|
-
include Singleton
|
19
|
-
|
20
|
-
MAJOR = 0
|
21
|
-
MINOR = 0
|
22
|
-
TINY = 3
|
23
|
-
|
24
|
-
def Version.to_s
|
25
|
-
[ MAJOR, MINOR, TINY ].join(".")
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
17
|
HELP_STRING = <<EOF
|
32
18
|
|
33
19
|
RHCP Command Shell v #{RhcpShell::Version.to_s} (using RHCP library v #{RHCP::Version.to_s})
|
data/lib/test.log
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Logfile created on Sat Nov 29 11:02:31 +0100 2008 by /
|
2
|
+
D, [2008-11-29T11:02:31.531026 #7852] DEBUG -- : collection completion values for ''
|
3
|
+
D, [2008-11-29T11:02:31.531129 #7852] DEBUG -- : completion proposals: 'reverse' 'test'
|
4
|
+
D, [2008-11-29T11:02:31.531466 #7852] DEBUG -- : processing input 'reverse'
|
5
|
+
D, [2008-11-29T11:02:31.531528 #7852] DEBUG -- : got command 'reverse' (params: )
|
6
|
+
D, [2008-11-29T11:02:31.531590 #7852] DEBUG -- : command_selected: #<RHCP::Command:0xb7a99ab8>
|
7
|
+
D, [2008-11-29T11:02:31.531648 #7852] DEBUG -- : selected command reverse
|
8
|
+
D, [2008-11-29T11:02:31.531721 #7852] DEBUG -- : got 1 missing params : input
|
9
|
+
D, [2008-11-29T11:02:31.531832 #7852] DEBUG -- : collection completion values for ''
|
10
|
+
D, [2008-11-29T11:02:31.531924 #7852] DEBUG -- : completion proposals: 'zaphod' 'beeblebrox'
|
11
|
+
D, [2008-11-29T11:02:31.532213 #7852] DEBUG -- : processing input 'does not exist'
|
12
|
+
D, [2008-11-29T11:02:31.532277 #7852] DEBUG -- : got command 'does' (params: notexist)
|
13
|
+
D, [2008-11-29T11:02:31.532604 #7852] DEBUG -- : processing input 'reverse'
|
14
|
+
D, [2008-11-29T11:02:31.532666 #7852] DEBUG -- : got command 'reverse' (params: )
|
15
|
+
D, [2008-11-29T11:02:31.532727 #7852] DEBUG -- : command_selected: #<RHCP::Command:0xb7a97c04>
|
16
|
+
D, [2008-11-29T11:02:31.532784 #7852] DEBUG -- : selected command reverse
|
17
|
+
D, [2008-11-29T11:02:31.532854 #7852] DEBUG -- : got 1 missing params : input
|
18
|
+
D, [2008-11-29T11:02:31.532971 #7852] DEBUG -- : processing input 'zaphod'
|
19
|
+
D, [2008-11-29T11:02:31.533036 #7852] DEBUG -- : accepted value zaphod for param input
|
20
|
+
D, [2008-11-29T11:02:31.533098 #7852] DEBUG -- : finished parameter input mode for param input
|
21
|
+
D, [2008-11-29T11:02:31.533702 #7852] DEBUG -- : processing input 'test'
|
22
|
+
D, [2008-11-29T11:02:31.533766 #7852] DEBUG -- : got command 'test' (params: )
|
23
|
+
D, [2008-11-29T11:02:31.533826 #7852] DEBUG -- : command_selected: #<RHCP::Command:0xb7a96228>
|
24
|
+
D, [2008-11-29T11:02:31.533883 #7852] DEBUG -- : selected command test
|
data/lib/version.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhcp_shell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philipp Traeder
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-21 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,48 +20,30 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 0.1.9
|
24
24
|
version:
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.8.2
|
34
|
-
version:
|
35
|
-
description: FIX (describe your package)
|
36
|
-
email:
|
37
|
-
- philipp@hitchhackers.net
|
38
|
-
executables: []
|
39
|
-
|
25
|
+
description:
|
26
|
+
email: philipp at hitchhackers.net
|
27
|
+
executables:
|
28
|
+
- rhcp_shell
|
40
29
|
extensions: []
|
41
30
|
|
42
|
-
extra_rdoc_files:
|
43
|
-
|
44
|
-
- Manifest.txt
|
45
|
-
- README.txt
|
31
|
+
extra_rdoc_files: []
|
32
|
+
|
46
33
|
files:
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
- Rakefile
|
51
|
-
- README
|
34
|
+
- bin/rhcp_shell
|
35
|
+
- lib/test.log
|
36
|
+
- lib/shell_backend.rb
|
52
37
|
- lib/base_shell.rb
|
53
|
-
- lib/
|
38
|
+
- lib/version.rb
|
54
39
|
- lib/rhcp_shell_backend.rb
|
55
|
-
- lib/shell_backend.rb
|
56
|
-
- rhcp_shell.sh
|
57
|
-
- test/rhcp_shell_backend_test.rb
|
58
40
|
- test/setup_test_registry.rb
|
41
|
+
- test/rhcp_shell_backend_test.rb
|
59
42
|
has_rdoc: true
|
60
|
-
homepage:
|
43
|
+
homepage: http://rubyforge.org/projects/rhcp
|
61
44
|
post_install_message:
|
62
|
-
rdoc_options:
|
63
|
-
|
64
|
-
- README.txt
|
45
|
+
rdoc_options: []
|
46
|
+
|
65
47
|
require_paths:
|
66
48
|
- lib
|
67
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -82,6 +64,6 @@ rubyforge_project: rhcp
|
|
82
64
|
rubygems_version: 1.3.1
|
83
65
|
signing_key:
|
84
66
|
specification_version: 2
|
85
|
-
summary:
|
67
|
+
summary: RHCP is a protocol designed for building up a command-metadata-based communication infrastructure making it easier for application developers to export commands in applications to generic clients - this is the generic shell for it.
|
86
68
|
test_files: []
|
87
69
|
|
data/History.txt
DELETED
data/Manifest.txt
DELETED
data/README
DELETED
data/README.txt
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
= sow_test
|
2
|
-
|
3
|
-
* FIX (url)
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
FIX (describe your package)
|
8
|
-
|
9
|
-
== FEATURES/PROBLEMS:
|
10
|
-
|
11
|
-
* FIX (list of features or problems)
|
12
|
-
|
13
|
-
== SYNOPSIS:
|
14
|
-
|
15
|
-
FIX (code sample of usage)
|
16
|
-
|
17
|
-
== REQUIREMENTS:
|
18
|
-
|
19
|
-
* FIX (list of requirements)
|
20
|
-
|
21
|
-
== INSTALL:
|
22
|
-
|
23
|
-
* FIX (sudo gem install, anything else)
|
24
|
-
|
25
|
-
== LICENSE:
|
26
|
-
|
27
|
-
(The MIT License)
|
28
|
-
|
29
|
-
Copyright (c) 2009 FIX
|
30
|
-
|
31
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
32
|
-
a copy of this software and associated documentation files (the
|
33
|
-
'Software'), to deal in the Software without restriction, including
|
34
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
35
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
36
|
-
permit persons to whom the Software is furnished to do so, subject to
|
37
|
-
the following conditions:
|
38
|
-
|
39
|
-
The above copyright notice and this permission notice shall be
|
40
|
-
included in all copies or substantial portions of the Software.
|
41
|
-
|
42
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
43
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
44
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
45
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
46
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
47
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
48
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
require 'rake/packagetask'
|
5
|
-
require 'rake/gempackagetask'
|
6
|
-
require 'rubygems'
|
7
|
-
require 'hoe'
|
8
|
-
|
9
|
-
$LOAD_PATH.push('lib')
|
10
|
-
require File.join(File.dirname(__FILE__), 'lib', 'rhcp_shell.rb')
|
11
|
-
|
12
|
-
PKG_NAME = 'rhcp_shell'
|
13
|
-
PKG_VERSION = RhcpShell::Version.to_s
|
14
|
-
|
15
|
-
desc "Default Task"
|
16
|
-
task :default => [ :test ]
|
17
|
-
|
18
|
-
###############################################
|
19
|
-
### TESTS
|
20
|
-
Rake::TestTask.new() { |t|
|
21
|
-
t.libs << "test"
|
22
|
-
t.test_files = FileList['test/*_test.rb']
|
23
|
-
t.verbose = true
|
24
|
-
}
|
25
|
-
|
26
|
-
###############################################
|
27
|
-
### RDOC
|
28
|
-
Rake::RDocTask.new { |rdoc|
|
29
|
-
rdoc.rdoc_dir = 'doc'
|
30
|
-
rdoc.title = "RHCP Shell"
|
31
|
-
rdoc.options << '--line-numbers' << '--inline-source' <<
|
32
|
-
'--accessor' << 'cattr_accessor=object'
|
33
|
-
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
|
34
|
-
#rdoc.rdoc_files.include('README', 'CHANGELOG')
|
35
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
36
|
-
}
|
37
|
-
|
38
|
-
###############################################
|
39
|
-
### METRICS
|
40
|
-
task :lines do
|
41
|
-
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0
|
42
|
-
|
43
|
-
for file_name in FileList["lib/**/*.rb"]
|
44
|
-
f = File.open(file_name)
|
45
|
-
|
46
|
-
while line = f.gets
|
47
|
-
lines += 1
|
48
|
-
next if line =~ /^\s*$/
|
49
|
-
next if line =~ /^\s*#/
|
50
|
-
codelines += 1
|
51
|
-
end
|
52
|
-
puts "L: #{sprintf("%4d", lines)}, LOC #{sprintf("%4d", codelines)} | #{file_name}"
|
53
|
-
|
54
|
-
total_lines += lines
|
55
|
-
total_codelines += codelines
|
56
|
-
|
57
|
-
lines, codelines = 0, 0
|
58
|
-
end
|
59
|
-
|
60
|
-
puts "Total: Lines #{total_lines}, LOC #{total_codelines}"
|
61
|
-
end
|
62
|
-
|
63
|
-
task :coverage do
|
64
|
-
system "rcov -I lib/ -I test/ -x rcov.rb -x var/lib -x lib/shell_backend.rb test/*test.rb"
|
65
|
-
end
|
66
|
-
|
67
|
-
task :update_manifest do
|
68
|
-
system "rake check_manifest 2>/dev/null | grep -vE 'qooxdoo|nbproject|coverage' | grep -E '^\+' | grep -vE '^$' | grep -v '(in ' | grep -vE '^\+\+\+' | cut -b 2-200 >> Manifest.txt"
|
69
|
-
end
|
70
|
-
|
71
|
-
Hoe.new('rhcp_shell', PKG_VERSION) do |p|
|
72
|
-
p.rubyforge_name = 'rhcp' # if different than lowercase project name
|
73
|
-
p.developer('Philipp Traeder', 'philipp@hitchhackers.net')
|
74
|
-
p.extra_deps << 'rhcp'
|
75
|
-
end
|
76
|
-
|
data/rhcp_shell.sh
DELETED