Skip to content
Browse files

Removing aruba dependency, fixing array-as-parameter issue in Ruby 1.8.x

  • Loading branch information...
1 parent 1b297ac commit cb7de2bbfe58c9b18a740959a258be43ceb013e8 @winton committed
Showing with 3 additions and 4 deletions.
  1. +0 −1 gitcycle.gemspec
  2. +3 −3 lib/gitcycle.rb
View
1 gitcycle.gemspec
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
s.require_paths = %w(lib)
s.test_files = `cd #{root} && git ls-files -- {features,test,spec}/*`.split("\n")
- s.add_development_dependency "aruba"
s.add_development_dependency "cucumber"
s.add_development_dependency "lighthouse"
s.add_development_dependency "redis"
View
6 lib/gitcycle.rb
@@ -321,8 +321,6 @@ def create_qa_branch(options)
source = qa_branch['source']
name = "qa_#{source}"
- puts qa_branch.inspect
-
unless qa_branch['branches'].empty?
unless options[:preserve]
if branches(:current => source)
@@ -399,7 +397,9 @@ def get(path, hash={})
params = ''
hash[:session] = 0
hash.each do |k, v|
- if v
+ if v && v.is_a?(::Array)
+ params << "#{URI.escape(k.to_s)}=#{URI.escape(v.inspect)}&"
+ elsif v
params << "#{URI.escape(k.to_s)}=#{URI.escape(v.to_s)}&"
end
end

0 comments on commit cb7de2b

Please sign in to comment.
Something went wrong with that request. Please try again.