aleksi-rush 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/README.rdoc +89 -0
  2. data/Rakefile +59 -0
  3. data/VERSION +1 -0
  4. data/bin/rush +13 -0
  5. data/bin/rushd +7 -0
  6. data/lib/rush.rb +87 -0
  7. data/lib/rush/access.rb +130 -0
  8. data/lib/rush/array_ext.rb +19 -0
  9. data/lib/rush/box.rb +115 -0
  10. data/lib/rush/commands.rb +55 -0
  11. data/lib/rush/config.rb +154 -0
  12. data/lib/rush/dir.rb +160 -0
  13. data/lib/rush/embeddable_shell.rb +26 -0
  14. data/lib/rush/entry.rb +189 -0
  15. data/lib/rush/exceptions.rb +39 -0
  16. data/lib/rush/file.rb +85 -0
  17. data/lib/rush/find_by.rb +39 -0
  18. data/lib/rush/fixnum_ext.rb +18 -0
  19. data/lib/rush/head_tail.rb +11 -0
  20. data/lib/rush/local.rb +398 -0
  21. data/lib/rush/process.rb +59 -0
  22. data/lib/rush/process_set.rb +62 -0
  23. data/lib/rush/remote.rb +158 -0
  24. data/lib/rush/search_results.rb +58 -0
  25. data/lib/rush/server.rb +117 -0
  26. data/lib/rush/shell.rb +187 -0
  27. data/lib/rush/ssh_tunnel.rb +122 -0
  28. data/lib/rush/string_ext.rb +3 -0
  29. data/spec/access_spec.rb +134 -0
  30. data/spec/array_ext_spec.rb +15 -0
  31. data/spec/base.rb +24 -0
  32. data/spec/box_spec.rb +80 -0
  33. data/spec/commands_spec.rb +47 -0
  34. data/spec/config_spec.rb +108 -0
  35. data/spec/dir_spec.rb +164 -0
  36. data/spec/embeddable_shell_spec.rb +17 -0
  37. data/spec/entry_spec.rb +133 -0
  38. data/spec/file_spec.rb +83 -0
  39. data/spec/find_by_spec.rb +58 -0
  40. data/spec/fixnum_ext_spec.rb +19 -0
  41. data/spec/local_spec.rb +364 -0
  42. data/spec/process_set_spec.rb +50 -0
  43. data/spec/process_spec.rb +73 -0
  44. data/spec/remote_spec.rb +140 -0
  45. data/spec/rush_spec.rb +28 -0
  46. data/spec/search_results_spec.rb +44 -0
  47. data/spec/shell_spec.rb +23 -0
  48. data/spec/ssh_tunnel_spec.rb +122 -0
  49. data/spec/string_ext_spec.rb +23 -0
  50. metadata +142 -0
@@ -0,0 +1,23 @@
1
+ require File.dirname(__FILE__) + '/base'
2
+
3
+ describe String do
4
+ before do
5
+ @string = "abc"
6
+ end
7
+
8
+ it "heads from the front of the string" do
9
+ @string.head(1).should == 'a'
10
+ end
11
+
12
+ it "tails from the back of the string" do
13
+ @string.tail(1).should == 'c'
14
+ end
15
+
16
+ it "gives the whole string when head exceeds length" do
17
+ @string.head(999).should == @string
18
+ end
19
+
20
+ it "gives the whole string when tail exceeds length" do
21
+ @string.tail(999).should == @string
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aleksi-rush
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 6
8
+ - 6
9
+ version: 0.6.6
10
+ platform: ruby
11
+ authors:
12
+ - Adam Wiggins, Aleksey Palazhchenko
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-03-10 00:00:00 +03:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: session
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ version_requirements: *id001
32
+ description: A Ruby replacement for bash+ssh, providing both an interactive shell and a library. Manage both local and remote unix systems from a single client.
33
+ email: aleksey.palazhchenko@gmail.com
34
+ executables:
35
+ - rush
36
+ - rushd
37
+ extensions: []
38
+
39
+ extra_rdoc_files:
40
+ - README.rdoc
41
+ files:
42
+ - README.rdoc
43
+ - Rakefile
44
+ - VERSION
45
+ - bin/rush
46
+ - bin/rushd
47
+ - lib/rush.rb
48
+ - lib/rush/access.rb
49
+ - lib/rush/array_ext.rb
50
+ - lib/rush/box.rb
51
+ - lib/rush/commands.rb
52
+ - lib/rush/config.rb
53
+ - lib/rush/dir.rb
54
+ - lib/rush/embeddable_shell.rb
55
+ - lib/rush/entry.rb
56
+ - lib/rush/exceptions.rb
57
+ - lib/rush/file.rb
58
+ - lib/rush/find_by.rb
59
+ - lib/rush/fixnum_ext.rb
60
+ - lib/rush/head_tail.rb
61
+ - lib/rush/local.rb
62
+ - lib/rush/process.rb
63
+ - lib/rush/process_set.rb
64
+ - lib/rush/remote.rb
65
+ - lib/rush/search_results.rb
66
+ - lib/rush/server.rb
67
+ - lib/rush/shell.rb
68
+ - lib/rush/ssh_tunnel.rb
69
+ - lib/rush/string_ext.rb
70
+ - spec/access_spec.rb
71
+ - spec/array_ext_spec.rb
72
+ - spec/base.rb
73
+ - spec/box_spec.rb
74
+ - spec/commands_spec.rb
75
+ - spec/config_spec.rb
76
+ - spec/dir_spec.rb
77
+ - spec/embeddable_shell_spec.rb
78
+ - spec/entry_spec.rb
79
+ - spec/file_spec.rb
80
+ - spec/find_by_spec.rb
81
+ - spec/fixnum_ext_spec.rb
82
+ - spec/local_spec.rb
83
+ - spec/process_set_spec.rb
84
+ - spec/process_spec.rb
85
+ - spec/remote_spec.rb
86
+ - spec/rush_spec.rb
87
+ - spec/search_results_spec.rb
88
+ - spec/shell_spec.rb
89
+ - spec/ssh_tunnel_spec.rb
90
+ - spec/string_ext_spec.rb
91
+ has_rdoc: true
92
+ homepage: http://github.com/AlekSi/rush
93
+ licenses: []
94
+
95
+ post_install_message:
96
+ rdoc_options:
97
+ - --charset=UTF-8
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ requirements: []
115
+
116
+ rubyforge_project:
117
+ rubygems_version: 1.3.6
118
+ signing_key:
119
+ specification_version: 3
120
+ summary: A Ruby replacement for bash+ssh.
121
+ test_files:
122
+ - spec/string_ext_spec.rb
123
+ - spec/box_spec.rb
124
+ - spec/entry_spec.rb
125
+ - spec/shell_spec.rb
126
+ - spec/process_spec.rb
127
+ - spec/process_set_spec.rb
128
+ - spec/local_spec.rb
129
+ - spec/file_spec.rb
130
+ - spec/array_ext_spec.rb
131
+ - spec/config_spec.rb
132
+ - spec/dir_spec.rb
133
+ - spec/base.rb
134
+ - spec/fixnum_ext_spec.rb
135
+ - spec/ssh_tunnel_spec.rb
136
+ - spec/access_spec.rb
137
+ - spec/find_by_spec.rb
138
+ - spec/embeddable_shell_spec.rb
139
+ - spec/remote_spec.rb
140
+ - spec/commands_spec.rb
141
+ - spec/search_results_spec.rb
142
+ - spec/rush_spec.rb