Sha256: 85d5141ae29547a96a8bcae9791ec4df18a1716e7b781ed4a55a35d8d501de5d

Contents?: true

Size: 972 Bytes

Versions: 6

Compression:

Stored size: 972 Bytes

Contents

#(☝ ՞ਊ ՞)☝------------------------------------------------------------------===#
#
# This source file is part of the xsort open source project
#
# Copyright (c) 2018 -  Keisuke Yamagishi. project authors
# Licensed under MIT LICENCE
#
# See https://github.com/keisukeYamagishi/xsort/blob/master/LICENSE.txt for license information
#
#===------------------------------------------------------------------(☝ ՞ਊ ՞)☝/

module Xsort
    class Sortproj

        def initialize (path)
            @path = path
        end

        def sort (stdout,notOverwrite)
            puts @path
            pbxproj = Xcodeproj::Pbxproj::PbxObject::Pbxproj.new(@path,stdout)
            pbxproj.parse
            sort = Xcodeproj::Pbxproj::PbxObject::PbxSort.new(pbxproj.pbxGroups)
            pbxObject = sort.psort
            write = Xcodeproj::Pbxproj::PbxObject::PbxWrite.new(@path,pbxObject,stdout,notOverwrite)
            write.overWrite
        end
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xsort-1.4.2 lib/xsort/sortproj.rb
xsort-1.4.1 lib/xsort/sortproj.rb
xsort-1.4.0 lib/xsort/sortproj.rb
xsort-1.3.0 lib/xsort/sortproj.rb
xsort-1.2.6 lib/xsort/sortproj.rb
xsort-1.2.5 lib/xsort/sortproj.rb