spaceship/lib/spaceship/base.rb in fastlane-2.74.1 vs spaceship/lib/spaceship/base.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -229,11 +229,11 @@
# From https://stackoverflow.com/questions/2487333/fastest-one-liner-way-to-list-attr-accessors-in-ruby
# This will store a list of defined attr_accessors to easily access them when inspecting the values
def self.attr_accessor(*vars)
@attributes ||= []
- @attributes.concat vars
+ @attributes.concat(vars)
super(*vars)
end
def self.attributes
@attributes ||= []
@@ -259,15 +259,15 @@
# We use a Thread local storage for multi-thread friendliness
thread = Thread.current
tree_root = thread[:inspected_objects].nil?
thread[:inspected_objects] = Set.new if tree_root
- if thread[:inspected_objects].include? self
+ if thread[:inspected_objects].include?(self)
# already inspected objects have a default value,
# let's follow Ruby's convention for circular references
value = "#<Object ...>"
else
- thread[:inspected_objects].add self
+ thread[:inspected_objects].add(self)
begin
value = inspect_value
ensure
thread[:inspected_objects] = nil if tree_root
end