fluent_command_builder 0.7.8 → 0.7.9

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.
Files changed (53) hide show
  1. data/lib/fluent_command_builder.rb +1 -1
  2. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +9 -1
  3. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +9 -1
  4. data/lib/fluent_command_builder/command_builders/bundle.rb +9 -1
  5. data/lib/fluent_command_builder/command_builders/cucumber.rb +9 -1
  6. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +9 -1
  7. data/lib/fluent_command_builder/command_builders/dotcover.rb +9 -1
  8. data/lib/fluent_command_builder/command_builders/installutil.rb +9 -1
  9. data/lib/fluent_command_builder/command_builders/msbuild.rb +9 -1
  10. data/lib/fluent_command_builder/command_builders/msdeploy.rb +9 -1
  11. data/lib/fluent_command_builder/command_builders/mstest.rb +9 -1
  12. data/lib/fluent_command_builder/command_builders/netsh.rb +9 -1
  13. data/lib/fluent_command_builder/command_builders/nuget.rb +9 -1
  14. data/lib/fluent_command_builder/command_builders/nunit.rb +9 -1
  15. data/lib/fluent_command_builder/command_builders/nunit_25.rb +23 -23
  16. data/lib/fluent_command_builder/command_builders/nunit_26.rb +31 -31
  17. data/lib/fluent_command_builder/command_builders/rake.rb +9 -1
  18. data/lib/fluent_command_builder/command_builders/security_osx.rb +9 -1
  19. data/lib/fluent_command_builder/command_builders/sevenzip.rb +9 -1
  20. data/lib/fluent_command_builder/command_builders/{sevenzip_92.rb → sevenzip_920.rb} +5 -5
  21. data/lib/fluent_command_builder/command_builders/simian.rb +9 -1
  22. data/lib/fluent_command_builder/command_builders/team_foundation.rb +9 -1
  23. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +9 -1
  24. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +5 -118
  25. data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +5 -0
  26. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +9 -1
  27. data/lib/fluent_command_builder/version.rb +2 -1
  28. data/lib/fluent_command_builder/version_detectors/{lib/appengine_python_version_detector.rb → appengine_python_version_detector.rb} +18 -14
  29. data/lib/fluent_command_builder/version_detectors/default_version_detector.rb +32 -0
  30. data/lib/fluent_command_builder/version_detectors/osx_version_detector.rb +12 -0
  31. data/lib/fluent_command_builder/version_detectors/standard_version_detector.rb +22 -0
  32. data/lib/fluent_command_builder/version_detectors/version_detector_init.rb +24 -0
  33. data/lib/fluent_command_builder/version_detectors/windows_version_detector.rb +12 -0
  34. metadata +13 -27
  35. data/lib/fluent_command_builder/version_detectors/appcfg_python.rb +0 -9
  36. data/lib/fluent_command_builder/version_detectors/aspnet_compiler.rb +0 -9
  37. data/lib/fluent_command_builder/version_detectors/bundle.rb +0 -9
  38. data/lib/fluent_command_builder/version_detectors/cucumber.rb +0 -9
  39. data/lib/fluent_command_builder/version_detectors/dev_appserver_python.rb +0 -9
  40. data/lib/fluent_command_builder/version_detectors/dotcover.rb +0 -9
  41. data/lib/fluent_command_builder/version_detectors/installutil.rb +0 -9
  42. data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +0 -14
  43. data/lib/fluent_command_builder/version_detectors/msbuild.rb +0 -9
  44. data/lib/fluent_command_builder/version_detectors/msdeploy.rb +0 -9
  45. data/lib/fluent_command_builder/version_detectors/mstest.rb +0 -9
  46. data/lib/fluent_command_builder/version_detectors/nuget.rb +0 -9
  47. data/lib/fluent_command_builder/version_detectors/nunit.rb +0 -9
  48. data/lib/fluent_command_builder/version_detectors/rake.rb +0 -9
  49. data/lib/fluent_command_builder/version_detectors/security_osx.rb +0 -9
  50. data/lib/fluent_command_builder/version_detectors/sevenzip.rb +0 -9
  51. data/lib/fluent_command_builder/version_detectors/team_foundation.rb +0 -9
  52. data/lib/fluent_command_builder/version_detectors/team_foundation_tee.rb +0 -9
  53. 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
+ #
@@ -0,0 +1,12 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/standard_version_detector')
2
+
3
+ module FluentCommandBuilder
4
+ class WindowsVersionDetector
5
+
6
+ def version(path=nil)
7
+ d = StandardVersionDetector.new 'ver'
8
+ d.version
9
+ end
10
+
11
+ end
12
+ end
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.8
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-20 00:00:00.000000000 Z
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: &70242207534860 !ruby/object:Gem::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: *70242207534860
24
+ version_requirements: *70139262250900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: term-ansicolor
27
- requirement: &70242207534420 !ruby/object:Gem::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: *70242207534420
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/sevenzip_92.rb
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/appcfg_python.rb
113
- - lib/fluent_command_builder/version_detectors/aspnet_compiler.rb
114
- - lib/fluent_command_builder/version_detectors/bundle.rb
115
- - lib/fluent_command_builder/version_detectors/cucumber.rb
116
- - lib/fluent_command_builder/version_detectors/dev_appserver_python.rb
117
- - lib/fluent_command_builder/version_detectors/dotcover.rb
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 AppCfgPython
5
- def self.version(path=nil)
6
- AppEnginePythonVersionDetector.version 'appcfg.py', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/msbuild')
2
-
3
- module FluentCommandBuilder
4
- module AspnetCompiler
5
- def self.version(path=nil)
6
- MSBuild.version path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module Bundle
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'bundle', '--version', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module Cucumber
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'cucumber', '--version', path
7
- end
8
- end
9
- end
@@ -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,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module DotCover
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'dotcover', 'version', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module InstallUtil
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'installutil', '', 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
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module MSBuild
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'msbuild', '/version', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module MSDeploy
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'msdeploy', '', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module MSTest
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'mstest', '/help', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module NuGet
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'nuget', '', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module NUnit
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'nunit-console', '/help', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module Rake
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'rake', '--version', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module SecurityOSX
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'sw_vers', '-productVersion', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module SevenZip
5
- def self.version(path=nil)
6
- StandardVersionDetector.version '7za', '', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module TeamFoundation
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'tf', '', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module TeamFoundationTEE
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'tf', '', path
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/lib/standard_version_detector')
2
-
3
- module FluentCommandBuilder
4
- module XCodeBuild
5
- def self.version(path=nil)
6
- StandardVersionDetector.version 'xcodebuild', '-version', path
7
- end
8
- end
9
- end