cocoapods-packager-ext 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cocoapods-packager-ext.gemspec +2 -1
- data/lib/cocoapods-packager-ext/command/install_ext.rb +32 -29
- data/lib/cocoapods-packager-ext/command/package_ext.rb +16 -8
- data/lib/cocoapods-packager-ext/ext/downloader/{path.rb → lnpath.rb} +1 -1
- data/lib/cocoapods-packager-ext/ext/downloader_ext.rb +2 -2
- data/lib/cocoapods-packager-ext/gem_version.rb +1 -1
- metadata +8 -8
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 6587776c4fe5a2244f5e1a6122daa3edcf8249dfec1b9fb9fcaf9c3bd2a07b30
         | 
| 4 | 
            +
              data.tar.gz: 994411d350114cb823bd793f68513d494e76b934789aef738928eec955605cea
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 98061e99be38cbecec7a398c79a96bf4c1e8152281895adab2841d897437353e180187ea7f612fdddd0ed8edfd1220febf097b6c0b06f479b436cd64bdc904e9
         | 
| 7 | 
            +
              data.tar.gz: d97a8923331a79cff89a85a606234b7a0c4f43cd52d58168198d2f228218025d263f344fe3511649e482928694f3563437ac7515111359c611be938d2f298470
         | 
| @@ -20,5 +20,6 @@ Gem::Specification.new do |spec| | |
| 20 20 |  | 
| 21 21 | 
             
              spec.add_development_dependency 'bundler', '~> 1.3'
         | 
| 22 22 | 
             
              spec.add_development_dependency 'rake'
         | 
| 23 | 
            -
              spec. | 
| 23 | 
            +
              spec.add_runtime_dependency(%q<cocoapods-packager>.freeze,["1.5.0"])
         | 
| 24 | 
            +
              
         | 
| 24 25 | 
             
            end
         | 
| @@ -32,25 +32,46 @@ module Pod | |
| 32 32 | 
             
                    # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
         | 
| 33 33 | 
             
                    #       in the `plugins.json` file, once your plugin is released.
         | 
| 34 34 | 
             
                    #
         | 
| 35 | 
            +
                    module ClassMethods
         | 
| 36 | 
            +
                        def options
         | 
| 37 | 
            +
                            options = [
         | 
| 38 | 
            +
                              ['--dry-deps','only test depend'],
         | 
| 39 | 
            +
                            ]
         | 
| 40 | 
            +
                            options.concat(super)
         | 
| 41 | 
            +
                        end
         | 
| 42 | 
            +
                    end
         | 
| 35 43 | 
             
                    class Install
         | 
| 44 | 
            +
             | 
| 36 45 | 
             
                        def self.options
         | 
| 37 46 | 
             
                            [
         | 
| 38 47 | 
             
                              ['--repo-update', 'Force running `pod repo update` before install'],
         | 
| 39 48 | 
             
                              ['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'],
         | 
| 40 | 
            -
                              ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' | 
| 41 | 
            -
                        'applies to projects that have enabled incremental installation'],
         | 
| 49 | 
            +
                              ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only applies to projects that have enabled incremental installation.'],
         | 
| 42 50 | 
             
                              ['--dry-deps','only test depend'],
         | 
| 43 51 | 
             
                            ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
         | 
| 44 52 | 
             
                        end
         | 
| 53 | 
            +
             | 
| 54 | 
            +
                        # class << self
         | 
| 55 | 
            +
                        #     options_t = instance_method(:options)
         | 
| 56 | 
            +
                        #     # alias options_t options
         | 
| 57 | 
            +
                        #     define_method(:options) do
         | 
| 58 | 
            +
                        #     item = options_t.bind(self).call()
         | 
| 59 | 
            +
                        #
         | 
| 60 | 
            +
                        #         [
         | 
| 61 | 
            +
                        #           ['--dry-deps','only test depend'],
         | 
| 62 | 
            +
                        #         ].concat(item)
         | 
| 63 | 
            +
                        #     end
         | 
| 64 | 
            +
                        # end
         | 
| 45 65 | 
             
                        # class << self
         | 
| 46 66 | 
             
                        #     alias options_t options
         | 
| 47 67 | 
             
                        #     def options
         | 
| 48 | 
            -
                        # | 
| 49 | 
            -
                        # | 
| 50 | 
            -
                        # | 
| 68 | 
            +
                        #         o = options_t
         | 
| 69 | 
            +
                        #         o.push(['--dry-deps','only test depend'])
         | 
| 70 | 
            +
                        #         o.concat(super)
         | 
| 51 71 | 
             
                        #     end
         | 
| 52 72 | 
             
                        #
         | 
| 53 73 | 
             
                        # end
         | 
| 74 | 
            +
             | 
| 54 75 | 
             
                        def initialize(argv)
         | 
| 55 76 | 
             
                            super
         | 
| 56 77 | 
             
                            @deployment = argv.flag?('deployment', false)
         | 
| @@ -58,34 +79,16 @@ module Pod | |
| 58 79 | 
             
                            @dry_deps = argv.flag?('dry-deps',false)
         | 
| 59 80 | 
             
                        end
         | 
| 60 81 |  | 
| 61 | 
            -
                         | 
| 62 | 
            -
                         | 
| 63 | 
            -
             | 
| 64 | 
            -
                        #         verify_podfile_exists!
         | 
| 65 | 
            -
                        #         installer = installer_for_config
         | 
| 66 | 
            -
                        #         installer.repo_update = repo_update?(:default => false)
         | 
| 67 | 
            -
                        #         installer.update = false
         | 
| 68 | 
            -
                        #         installer.deployment = @deployment
         | 
| 69 | 
            -
                        #         installer.clean_install = @clean_install
         | 
| 70 | 
            -
                        #         installer.dry_deps = @dry_deps
         | 
| 71 | 
            -
                        #         installer.install!
         | 
| 72 | 
            -
                        #     else
         | 
| 73 | 
            -
                        #         run_t
         | 
| 74 | 
            -
                        #     end
         | 
| 75 | 
            -
                        # end
         | 
| 76 | 
            -
                        def run
         | 
| 77 | 
            -
                            verify_podfile_exists!
         | 
| 78 | 
            -
                            installer = installer_for_config
         | 
| 79 | 
            -
                            installer.repo_update = repo_update?(:default => false)
         | 
| 80 | 
            -
                            installer.update = false
         | 
| 81 | 
            -
                            installer.deployment = @deployment
         | 
| 82 | 
            -
                            installer.clean_install = @clean_install
         | 
| 82 | 
            +
                        alias installer_for_config_t installer_for_config
         | 
| 83 | 
            +
                        def installer_for_config
         | 
| 84 | 
            +
                            item = installer_for_config_t
         | 
| 83 85 | 
             
                            if @dry_deps
         | 
| 84 | 
            -
                                 | 
| 86 | 
            +
                                item.dry_deps = @dry_deps
         | 
| 85 87 | 
             
                            end
         | 
| 86 | 
            -
                             | 
| 88 | 
            +
                            item
         | 
| 87 89 | 
             
                        end
         | 
| 88 90 |  | 
| 91 | 
            +
             | 
| 89 92 | 
             
                    end
         | 
| 90 93 | 
             
                end
         | 
| 91 94 | 
             
            end
         | 
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            require 'cocoapods-packager-ext/ext/downloader/ | 
| 1 | 
            +
            require 'cocoapods-packager-ext/ext/downloader/lnpath'
         | 
| 2 2 | 
             
            require 'cocoapods-packager-ext/ext/downloader_ext'
         | 
| 3 3 | 
             
            module Pod
         | 
| 4 4 | 
             
              class Command
         | 
| @@ -21,14 +21,21 @@ module Pod | |
| 21 21 | 
             
                #
         | 
| 22 22 | 
             
                class Package
         | 
| 23 23 | 
             
                    class << self
         | 
| 24 | 
            -
             | 
| 25 | 
            -
                         | 
| 26 | 
            -
             | 
| 27 | 
            -
             | 
| 28 | 
            -
             | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 24 | 
            +
             | 
| 25 | 
            +
                        begin
         | 
| 26 | 
            +
                            alias options_t options
         | 
| 27 | 
            +
                            def options
         | 
| 28 | 
            +
                                o = options_t
         | 
| 29 | 
            +
                                o.push(['--all-deps','add all-depends'])
         | 
| 30 | 
            +
                                o.push(['--archs','select archs'])
         | 
| 31 | 
            +
                                o.push(['--black-deps','select exclude deps'])
         | 
| 32 | 
            +
                                o.push(['--podfile','select deps version from podfile'])
         | 
| 33 | 
            +
                                o.concat(super)
         | 
| 34 | 
            +
                            end
         | 
| 35 | 
            +
                        rescue
         | 
| 36 | 
            +
                            return 
         | 
| 31 37 | 
             
                        end
         | 
| 38 | 
            +
                       
         | 
| 32 39 |  | 
| 33 40 | 
             
                    end
         | 
| 34 41 |  | 
| @@ -37,6 +44,7 @@ module Pod | |
| 37 44 | 
             
                        @all_deps = argv.flag?('all-deps',false)
         | 
| 38 45 | 
             
                        @select_archs = argv.option('archs','').split(',')
         | 
| 39 46 | 
             
                        @black_deps = argv.option('black-deps','').split(',')
         | 
| 47 | 
            +
                        @podfile = argv.option('podfile','')
         | 
| 40 48 | 
             
                        initialize_t argv
         | 
| 41 49 | 
             
                    end
         | 
| 42 50 |  | 
| @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            module Pod
         | 
| 2 2 | 
             
                module Downloader
         | 
| 3 | 
            -
                    autoload :LocalPath,'cocoapods-packager-ext/ext/downloader/ | 
| 3 | 
            +
                    autoload :LocalPath,'cocoapods-packager-ext/ext/downloader/lnpath'
         | 
| 4 4 | 
             
                    class << self
         | 
| 5 5 | 
             
                        alias downloader_class_by_key_t downloader_class_by_key
         | 
| 6 6 | 
             
                        def downloader_class_by_key
         | 
| 7 7 | 
             
                            keys = downloader_class_by_key_t
         | 
| 8 | 
            -
                            keys[: | 
| 8 | 
            +
                            keys[:lnpath] = LocalPath
         | 
| 9 9 | 
             
                            return keys
         | 
| 10 10 | 
             
                        end
         | 
| 11 11 | 
             
                    end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cocoapods-packager-ext
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.14
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - kyle.zhou
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021- | 
| 11 | 
            +
            date: 2021-03-18 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -42,16 +42,16 @@ dependencies: | |
| 42 42 | 
             
              name: cocoapods-packager
         | 
| 43 43 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 44 | 
             
                requirements:
         | 
| 45 | 
            -
                - -  | 
| 45 | 
            +
                - - '='
         | 
| 46 46 | 
             
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            -
                    version:  | 
| 48 | 
            -
              type: : | 
| 47 | 
            +
                    version: 1.5.0
         | 
| 48 | 
            +
              type: :runtime
         | 
| 49 49 | 
             
              prerelease: false
         | 
| 50 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 51 | 
             
                requirements:
         | 
| 52 | 
            -
                - -  | 
| 52 | 
            +
                - - '='
         | 
| 53 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            -
                    version:  | 
| 54 | 
            +
                    version: 1.5.0
         | 
| 55 55 | 
             
            description: A short description of cocoapods-packager-ext.
         | 
| 56 56 | 
             
            email:
         | 
| 57 57 | 
             
            - kyle.zhou@qq.com
         | 
| @@ -70,7 +70,7 @@ files: | |
| 70 70 | 
             
            - lib/cocoapods-packager-ext/command/install_ext.rb
         | 
| 71 71 | 
             
            - lib/cocoapods-packager-ext/command/package_ext.rb
         | 
| 72 72 | 
             
            - lib/cocoapods-packager-ext/ext/builder.rb
         | 
| 73 | 
            -
            - lib/cocoapods-packager-ext/ext/downloader/ | 
| 73 | 
            +
            - lib/cocoapods-packager-ext/ext/downloader/lnpath.rb
         | 
| 74 74 | 
             
            - lib/cocoapods-packager-ext/ext/downloader_ext.rb
         | 
| 75 75 | 
             
            - lib/cocoapods-packager-ext/gem_version.rb
         | 
| 76 76 | 
             
            - lib/cocoapods_plugin.rb
         |