Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Drop trivial activesupport requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbuchan committed Apr 4, 2013
1 parent 44442fc commit 446f62b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions lib/powershell.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'active_support/core_ext/string/inflections'

class PowershellCommand
attr_accessor :script, :working_directory, :execution_policy, :script_parameters

Expand All @@ -24,7 +22,7 @@ def command
params.push("#{script.gsub(working_directory, '.')}.ps1")

script_parameters.each do |param, value|
switch_name = param.to_s.camelize(:upper)
switch_name = param.to_s.split('_').map { |x| x.capitalize }.join

This comment has been minimized.

Copy link
@jeef3

jeef3 Apr 4, 2013

Contributor

Thanks, I didn't like using active_support for one method.


if !!value == value
params.push("-#{switch_name}:$#{value}")
Expand Down
2 changes: 0 additions & 2 deletions powershell.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ Gem::Specification.new do |s|
s.email = '[email protected]'
s.files = ['lib/powershell.rb']
s.homepage = 'http://github.com/skilitix/powershell'

s.add_dependency('activesupport', '>= 3.2.12')
end

0 comments on commit 446f62b

Please sign in to comment.