Skip to content

Commit

Permalink
remove useless method_source gem dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Jun 20, 2016
1 parent 3116b3b commit f6efd8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions lib/washout_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ def wash_out(controller_name, options={})
options = options.symbolize_keys if options.is_a?(Hash)
if @scope
scope_frame = @scope.respond_to?(:frame) ? @scope.frame : @scope
# needed for backward compatibility with old version when this module name was camelized
options[:module] = options[:module].to_s.underscore if options[:module].present?
options.each { |key, value| scope_frame[key] = value }
scope_frame[:module] = scope_frame[:module].blank? ? nil : scope_frame[:module].to_s.underscore
if self.class.instance_method(:original_wash_out).source.to_s.include?("scope_frame[:module]")
options.delete(:module) if options.has_key?(:module) # prevent setting the module again in original_wash_out since scope already has it
end
controller_class_name = [scope_frame[:module], controller_name].compact.join("/").underscore
else
controller_class_name = controller_name.to_s.underscore
Expand Down
2 changes: 1 addition & 1 deletion lib/washout_builder/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module VERSION
# the minor version of the gem
MINOR = 4
# the tiny version of the gem
TINY = 2
TINY = 3
# if the version should be a e
PRE = nil

Expand Down
1 change: 0 additions & 1 deletion washout_builder.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_runtime_dependency 'wash_out', '>= 0.9.1', '>= 0.9.1'
s.add_runtime_dependency 'activesupport', '>= 4.0', '>= 4.0'
s.add_runtime_dependency 'method_source', '~> 0.8', '>= 0.8.2'

s.add_development_dependency 'wasabi', '~> 3.5', '>= 3.5'
s.add_development_dependency 'savon', '~> 2.11', '>= 2.11'
Expand Down

0 comments on commit f6efd8d

Please sign in to comment.