fluent_command_builder 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fluent_command_builder.rb +1 -1
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +9 -1
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +9 -1
- data/lib/fluent_command_builder/command_builders/bundle.rb +9 -1
- data/lib/fluent_command_builder/command_builders/cucumber.rb +9 -1
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +9 -1
- data/lib/fluent_command_builder/command_builders/dotcover.rb +9 -1
- data/lib/fluent_command_builder/command_builders/installutil.rb +9 -1
- data/lib/fluent_command_builder/command_builders/msbuild.rb +9 -1
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +9 -1
- data/lib/fluent_command_builder/command_builders/mstest.rb +9 -1
- data/lib/fluent_command_builder/command_builders/netsh.rb +9 -1
- data/lib/fluent_command_builder/command_builders/nuget.rb +9 -1
- data/lib/fluent_command_builder/command_builders/nunit.rb +9 -1
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +23 -23
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +31 -31
- data/lib/fluent_command_builder/command_builders/rake.rb +9 -1
- data/lib/fluent_command_builder/command_builders/security_osx.rb +9 -1
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +9 -1
- data/lib/fluent_command_builder/command_builders/{sevenzip_92.rb → sevenzip_920.rb} +5 -5
- data/lib/fluent_command_builder/command_builders/simian.rb +9 -1
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +9 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +9 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +5 -118
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +5 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +9 -1
- data/lib/fluent_command_builder/version.rb +2 -1
- data/lib/fluent_command_builder/version_detectors/{lib/appengine_python_version_detector.rb → appengine_python_version_detector.rb} +18 -14
- data/lib/fluent_command_builder/version_detectors/default_version_detector.rb +32 -0
- data/lib/fluent_command_builder/version_detectors/osx_version_detector.rb +12 -0
- data/lib/fluent_command_builder/version_detectors/standard_version_detector.rb +22 -0
- data/lib/fluent_command_builder/version_detectors/version_detector_init.rb +24 -0
- data/lib/fluent_command_builder/version_detectors/windows_version_detector.rb +12 -0
- metadata +13 -27
- data/lib/fluent_command_builder/version_detectors/appcfg_python.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/aspnet_compiler.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/bundle.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/cucumber.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/dev_appserver_python.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/dotcover.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/installutil.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +0 -14
- data/lib/fluent_command_builder/version_detectors/msbuild.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/msdeploy.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/mstest.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/nuget.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/nunit.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/rake.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/security_osx.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/sevenzip.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/team_foundation.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/team_foundation_tee.rb +0 -9
- data/lib/fluent_command_builder/version_detectors/xcodebuild.rb +0 -9
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../version')
|
2
|
+
|
3
|
+
module FluentCommandBuilder
|
4
|
+
class StandardVersionDetector
|
5
|
+
|
6
|
+
def initialize(command_name, command_arg=nil)
|
7
|
+
@command_name = command_name
|
8
|
+
@command_arg = command_arg
|
9
|
+
end
|
10
|
+
|
11
|
+
def version(path=nil)
|
12
|
+
path ||= FluentCommandBuilder.path_finder.find_path @command_name
|
13
|
+
return unless path
|
14
|
+
executable = File.join path, @command_name
|
15
|
+
command = %Q["#{executable}" #{@command_arg} 2>&1]
|
16
|
+
output = FluentCommandBuilder.executor.execute_backticks command
|
17
|
+
v = Version.match(output)
|
18
|
+
v ? v.version : nil
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#require File.expand_path(File.dirname(__FILE__) + '/appengine_python_version_detector')
|
2
|
+
#require File.expand_path(File.dirname(__FILE__) + '/default_version_detector')
|
3
|
+
#
|
4
|
+
#module FluentCommandBuilder
|
5
|
+
# AppCfgPython.version_detector = AppEnginePythonVersionDetector.new AppCfgPython::COMMAND_NAME
|
6
|
+
# AspnetCompiler.version_detector = MSBuild.version_detector
|
7
|
+
# Bundle.version_detector.args = '--version'
|
8
|
+
# Cucumber.version_detector.args = '--version'
|
9
|
+
# DevAppserverPython.version_detector = AppEnginePythonVersionDetector.new DevAppserverPython::COMMAND_NAME
|
10
|
+
# DotCover.version_detector.args = 'version'
|
11
|
+
# InstallUtil.version_detector.args = nil
|
12
|
+
# MSBuild.version_detector.args = '/version'
|
13
|
+
# MSDeploy.version_detector.args = nil
|
14
|
+
# MSTest.version_detector.args = '/help'
|
15
|
+
# NuGet.version_detector.args = nil
|
16
|
+
# NUnit.version_detector.args = '/help'
|
17
|
+
# Rake.version_detector.args = '--version'
|
18
|
+
# SecurityOSX.version_detector = DefaultVersionDetector.new 'sw_vers', '-productVersion'
|
19
|
+
# SevenZip.version_detector.args = nil
|
20
|
+
# TeamFoundation.version_detector.args = nil
|
21
|
+
# TeamFoundationTEE.version_detector.args = nil
|
22
|
+
# XCodeBuild.version_detector.args = '-version'
|
23
|
+
#end
|
24
|
+
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent_command_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70139262250900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70139262250900
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: term-ansicolor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70139262250460 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70139262250460
|
36
36
|
description: Fluent Command Builder makes building command lines easy and clean.
|
37
37
|
email: matthew-github@matthewriley.name
|
38
38
|
executables: []
|
@@ -87,7 +87,7 @@ files:
|
|
87
87
|
- lib/fluent_command_builder/command_builders/security_osx.rb
|
88
88
|
- lib/fluent_command_builder/command_builders/security_osx_107.rb
|
89
89
|
- lib/fluent_command_builder/command_builders/sevenzip.rb
|
90
|
-
- lib/fluent_command_builder/command_builders/
|
90
|
+
- lib/fluent_command_builder/command_builders/sevenzip_920.rb
|
91
91
|
- lib/fluent_command_builder/command_builders/simian.rb
|
92
92
|
- lib/fluent_command_builder/command_builders/simian_23.rb
|
93
93
|
- lib/fluent_command_builder/command_builders/team_foundation.rb
|
@@ -109,26 +109,12 @@ files:
|
|
109
109
|
- lib/fluent_command_builder/printer.rb
|
110
110
|
- lib/fluent_command_builder/underlying_builder.rb
|
111
111
|
- lib/fluent_command_builder/version.rb
|
112
|
-
- lib/fluent_command_builder/version_detectors/
|
113
|
-
- lib/fluent_command_builder/version_detectors/
|
114
|
-
- lib/fluent_command_builder/version_detectors/
|
115
|
-
- lib/fluent_command_builder/version_detectors/
|
116
|
-
- lib/fluent_command_builder/version_detectors/
|
117
|
-
- lib/fluent_command_builder/version_detectors/
|
118
|
-
- lib/fluent_command_builder/version_detectors/installutil.rb
|
119
|
-
- lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb
|
120
|
-
- lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb
|
121
|
-
- lib/fluent_command_builder/version_detectors/msbuild.rb
|
122
|
-
- lib/fluent_command_builder/version_detectors/msdeploy.rb
|
123
|
-
- lib/fluent_command_builder/version_detectors/mstest.rb
|
124
|
-
- lib/fluent_command_builder/version_detectors/nuget.rb
|
125
|
-
- lib/fluent_command_builder/version_detectors/nunit.rb
|
126
|
-
- lib/fluent_command_builder/version_detectors/rake.rb
|
127
|
-
- lib/fluent_command_builder/version_detectors/security_osx.rb
|
128
|
-
- lib/fluent_command_builder/version_detectors/sevenzip.rb
|
129
|
-
- lib/fluent_command_builder/version_detectors/team_foundation.rb
|
130
|
-
- lib/fluent_command_builder/version_detectors/team_foundation_tee.rb
|
131
|
-
- lib/fluent_command_builder/version_detectors/xcodebuild.rb
|
112
|
+
- lib/fluent_command_builder/version_detectors/appengine_python_version_detector.rb
|
113
|
+
- lib/fluent_command_builder/version_detectors/default_version_detector.rb
|
114
|
+
- lib/fluent_command_builder/version_detectors/osx_version_detector.rb
|
115
|
+
- lib/fluent_command_builder/version_detectors/standard_version_detector.rb
|
116
|
+
- lib/fluent_command_builder/version_detectors/version_detector_init.rb
|
117
|
+
- lib/fluent_command_builder/version_detectors/windows_version_detector.rb
|
132
118
|
- lib/fluent_command_builder/version_validator.rb
|
133
119
|
- lib/fluent_command_builder.rb
|
134
120
|
homepage: http://rubygems.org/gems/fluent_command_builder
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/lib/appengine_python_version_detector')
|
2
|
-
|
3
|
-
module FluentCommandBuilder
|
4
|
-
module DevAppserverPython
|
5
|
-
def self.version(path=nil)
|
6
|
-
AppEnginePythonVersionDetector.version 'dev_appserver.py', path
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../version')
|
2
|
-
|
3
|
-
module FluentCommandBuilder
|
4
|
-
class StandardVersionDetector
|
5
|
-
def self.version(executable_name, executable_args, path=nil)
|
6
|
-
path ||= FluentCommandBuilder.path_finder.find_path executable_name
|
7
|
-
return unless path
|
8
|
-
executable = File.join path, executable_name
|
9
|
-
command = %Q["#{executable}" #{executable_args} 2>&1]
|
10
|
-
output = FluentCommandBuilder.executor.execute_backticks command
|
11
|
-
Version.match(output).version
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|