Rakefile in ipfs-api-0.3.0 vs Rakefile in ipfs-api-0.4.0

- old
+ new

@@ -38,20 +38,18 @@ s.name = PKG_NAME s.version = PKG_VERSION s.authors = AUTHORS s.email = EMAIL s.homepage = HOMEPAGE - s.rubyforge_project = PKG_NAME s.summary = SUMMARY s.description = DESCRIPTION s.platform = Gem::Platform::RUBY s.licenses = ["MIT"] s.require_path = 'lib' s.executables = [] s.files = PKG_FILES s.test_files = [] - s.has_rdoc = true s.extra_rdoc_files = RDOC_FILES s.rdoc_options = RDOC_OPTIONS s.required_ruby_version = ">= 2.0.0" end @@ -76,10 +74,10 @@ result << "# RUN : 'rake gem:update_gemspec'\n\n" result << "Gem::Specification.new do |s|\n" spec.instance_variables.sort.each do |ivar| value = spec.instance_variable_get(ivar) name = ivar.to_s.split("@").last - next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?) + next if skip_fields.include?(name) || value.nil? || (value.respond_to?(:empty?) && value.empty?) if name == "dependencies" value.each do |d| dep, *ver = d.to_s.split(" ") result << " s.add_dependency #{dep.inspect}, #{ver.join(" ").inspect.gsub(/[()]/, "")}\n" end