From 7af4561c0a5416959ff3810b70e13d0338633dad Mon Sep 17 00:00:00 2001 From: Dimitris Koutsogiorgas Date: Fri, 22 May 2020 16:37:10 -0700 Subject: [PATCH] Fix Ruby 2.7.0 warning --- lib/nanaimo/writer.rb | 2 +- lib/nanaimo/writer/pbxproj.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nanaimo/writer.rb b/lib/nanaimo/writer.rb index 0dccaa3..71067e3 100644 --- a/lib/nanaimo/writer.rb +++ b/lib/nanaimo/writer.rb @@ -27,7 +27,7 @@ def to_s # UTF8 = "// !$*UTF8*$!\n".freeze - # @param plist [Plist,String,Hash,Array] The plist obejct to write + # @param plist [Plist,String,Hash,Array] The plist object to write # @param pretty [Boolean] Whether to serialize annotations and add # spaces and newlines to make output more legible # @param output [#<<] The output stream to write the plist to diff --git a/lib/nanaimo/writer/pbxproj.rb b/lib/nanaimo/writer/pbxproj.rb index 7be7105..6f91963 100644 --- a/lib/nanaimo/writer/pbxproj.rb +++ b/lib/nanaimo/writer/pbxproj.rb @@ -9,8 +9,8 @@ class PBXProjWriter < Writer ISA = String.new('isa', '') private_constant :ISA - def initialize(*) - super + def initialize(plist, **args) + super(plist, **args) @objects_section = false end