execute_shell 0.0.1 → 0.0.2

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.
@@ -1,11 +1,11 @@
1
- source "http://rubygems.org"
2
-
3
- gem 'Platform', '~> 0.4.0', :group => [:rake, :test],
4
- :require => 'platform'
5
- gem 'open4', '~> 1.0.1', :group => [:rake, :test]
6
- gem 'win32-open3-19', '~> 0.0.1', :group => [:rake, :test], :require => 'open3'
7
-
8
- group :rake do
9
- gem 'rake', '0.8.7'
10
- gem 'highline', '~> 1.6.1', :require => 'highline/import'
11
- end
1
+ source "http://rubygems.org"
2
+
3
+ gem 'Platform', '~> 0.4.0', :group => [:rake, :test],
4
+ :require => 'platform'
5
+ gem 'open4', '~> 1.0.1', :group => [:rake, :test]
6
+ gem 'win32-open3-19', '~> 0.0.1', :group => [:rake, :test], :require => 'open3'
7
+
8
+ group :rake do
9
+ gem 'rake', '0.8.7'
10
+ gem 'highline', '~> 1.6.1', :require => 'highline/import'
11
+ end
data/README CHANGED
@@ -0,0 +1,44 @@
1
+ == Welcome to ExecuteShell
2
+
3
+ ExecuteShell allows shell commands to be executed the same across all platforms.
4
+
5
+ == Getting Started
6
+
7
+ 1. Install ExecuteShell at the command prompt if you haven't yet:
8
+
9
+ gem install execute_shell
10
+
11
+ 2. Require the gem in your gemfile:
12
+
13
+ gem 'execute_shell', '~> 0.0.1'
14
+
15
+ 3. Require the gem wherever you need shell commands:
16
+
17
+ require 'execute_shell'
18
+
19
+ 4. Include the ExecuteShell module in your class or module:
20
+
21
+ include ExecuteShell
22
+
23
+ 5. Call a shell command:
24
+
25
+ success, output = shell('ls ~')
26
+
27
+ == Additional Notes
28
+
29
+ * The shell method has a second optional parameter, which is a path.
30
+ If specified, the working directory will be changed to this path prior
31
+ to executing the shell command. It will be set back to the original
32
+ working directory before returning to the calling function.
33
+
34
+ * Success will be false under two conditions. One is if there is any output
35
+ to stderr. The other is if an exception is raised. In either case, the
36
+ information is returned in the output.
37
+
38
+ == Additional Documentation
39
+
40
+ rake rdoc:app
41
+
42
+ == License
43
+
44
+ ExecuteShell is released under the GPLv3 license.
@@ -1,13 +1,16 @@
1
1
  gem_spec = Gem::Specification.new do |s|
2
- s.name = 'execute_shell'
3
- s.version = '0.0.1'
2
+ s.name = 'execute_shell'
3
+ s.version = '0.0.2'
4
4
 
5
- s.summary = 'Executes shell commands.'
5
+ s.summary = 'Cross-platform shell commands.'
6
+ s.description = 'Execute Shell provides ' +
7
+ 'cross-platform shell command execution.'
6
8
 
7
- s.author = 'Travis Herrick'
8
- s.email = 'tthetoad@gmail.com'
9
+ s.author = 'Travis Herrick'
10
+ s.email = 'tthetoad@gmail.com'
11
+ s.homepage = 'http://www.bitbucket.org/ToadJamb/gems_execute_shell'
9
12
 
10
- s.license = 'MIT'
13
+ s.license = 'GPLV3'
11
14
 
12
15
  s.extra_rdoc_files << 'README'
13
16
 
data/rakefile CHANGED
@@ -67,9 +67,10 @@ namespace :rdoc do
67
67
  :rdoc => rdoc_task,
68
68
  :clobber_rdoc => "#{rdoc_task}:clobber",
69
69
  :rerdoc => "#{rdoc_task}:force") do |rdtask|
70
- rdtask.rdoc_dir = "help/#{rdoc_task}"
70
+ rdtask.rdoc_dir = "doc/#{rdoc_task}"
71
71
  rdtask.options << '--charset' << 'utf8'
72
- rdtask.rdoc_files.include(RDOC_FILES[rdoc_task])
72
+ rdtask.rdoc_files.include RDOC_FILES[rdoc_task], 'README'
73
+ rdtask.main = 'README'
73
74
  end
74
75
 
75
76
  Rake::Task[rdoc_task].comment =
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Herrick
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-07-28 00:00:00 -04:00
17
+ date: 2011-07-29 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -92,7 +92,7 @@ dependencies:
92
92
  version: 1.6.1
93
93
  type: :development
94
94
  version_requirements: *id005
95
- description:
95
+ description: Execute Shell provides cross-platform shell command execution.
96
96
  email: tthetoad@gmail.com
97
97
  executables: []
98
98
 
@@ -106,16 +106,16 @@ files:
106
106
  - lib/execute_shell.rb
107
107
  - Gemfile.lock
108
108
  - README
109
- - gemfile
109
+ - Gemfile
110
110
  - rakefile
111
111
  - execute_shell.gemspec
112
112
  - test/require.rb
113
113
  - test/lib/test_case.rb
114
114
  - test/execute_shell_test.rb
115
115
  has_rdoc: true
116
- homepage:
116
+ homepage: http://www.bitbucket.org/ToadJamb/gems_execute_shell
117
117
  licenses:
118
- - MIT
118
+ - GPLV3
119
119
  post_install_message:
120
120
  rdoc_options: []
121
121
 
@@ -143,7 +143,7 @@ rubyforge_project:
143
143
  rubygems_version: 1.3.7
144
144
  signing_key:
145
145
  specification_version: 3
146
- summary: Executes shell commands.
146
+ summary: Cross-platform shell commands.
147
147
  test_files:
148
148
  - test/require.rb
149
149
  - test/lib/test_case.rb