Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bump slop to bugfixed version.

  • Loading branch information...
commit 2cd74118d17002d242848ca8a0bc41258bc90f41 1 parent 288694d
Jørgen P. Tjernø jorgenpt authored
Showing with 1 addition and 17 deletions.
  1. +1 −1  jenkins-plugin-runtime.gemspec
  2. +0 −16 lib/jenkins/cli/command.rb
2  jenkins-plugin-runtime.gemspec
View
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_dependency "json"
- s.add_dependency "slop", "~> 3.0.0"
+ s.add_dependency "slop", "~> 3.0.2"
s.add_development_dependency "rake", "0.8.7"
s.add_development_dependency "rspec", "~> 2.7.0" # something in rspec 2.8 breaks rspec-spies
16 lib/jenkins/cli/command.rb
View
@@ -1,21 +1,5 @@
require 'slop'
-class Slop
- # Temporary 1.8.x compatibility override, until
- # https://github.com/injekt/slop/pull/50 is in a release.
- def to_s
- heads = options.reject(&:tail?)
- tails = (options - heads)
- opts = (heads + tails).select(&:help).map(&:to_s)
- optstr = opts.each_with_index.map { |o, i|
- (str = @separators[i + 1]) ? [o, str].join("\n") : o
- }.join("\n")
- config[:banner] ? config[:banner] + "\n" + optstr : optstr
- end
-
- alias help to_s
-end
-
module Jenkins::CLI
module Command
extend Jenkins::Plugin::Behavior
Please sign in to comment.
Something went wrong with that request. Please try again.