lkpackage 0.1.6 → 0.1.7
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/lib/lkpackage/version.rb +1 -1
 - data/lib/lkpackage.rb +8 -1
 - data/lib/package.rb +6 -5
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: d2940a7b80f4939ad52a2f0301cc88311f50e8bc703f72766ff6379cc4997833
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 2d5cdaed31d48d4984126670a26c86f92c28df1b323010e73d6abb76b5575fbc
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: fd6e1c037d9ad3396167351f2bdc92d014c70d1f01183c7e6710ae214f0ceefe8616581632f190ddec33a8b8c6b5f4a914fb65fce4d2a884a6fea8787e4426d2
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 291a8ab5c555a3e2dac8bde6566db7ce2a1972c93ec3423597d5fa3ad3cbf72162b18ef2656baa3e9deed5ea347aac39f6fb874ce6eb89574fe661274d9e12d3
         
     | 
    
        data/lib/lkpackage/version.rb
    CHANGED
    
    
    
        data/lib/lkpackage.rb
    CHANGED
    
    | 
         @@ -19,7 +19,14 @@ module Lkpackage 
     | 
|
| 
       19 
19 
     | 
    
         
             
                if repoSource.empty?
         
     | 
| 
       20 
20 
     | 
    
         
             
                    raise "请输入 repo source"
         
     | 
| 
       21 
21 
     | 
    
         
             
                end
         
     | 
| 
       22 
     | 
    
         
            -
                
         
     | 
| 
      
 22 
     | 
    
         
            +
                puts "podspec 文件:#{podspecFile}"
         
     | 
| 
      
 23 
     | 
    
         
            +
                puts "tag 版本:#{tagVersion}"
         
     | 
| 
      
 24 
     | 
    
         
            +
                puts "是否打包静态库:#{needPackageLib}"
         
     | 
| 
      
 25 
     | 
    
         
            +
                puts "repo source:#{repoSource}"
         
     | 
| 
      
 26 
     | 
    
         
            +
                puts "release notes:#{releaseNotes}"
         
     | 
| 
      
 27 
     | 
    
         
            +
                puts "lintRepoSources :#{lintRepoSources}"
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
       23 
30 
     | 
    
         
             
                packageCommand = "ruby package.rb #{podspecFile} #{tagVersion} #{needPackageLib} #{repoSource} #{releaseNotes} #{lintRepoSources}"
         
     | 
| 
       24 
31 
     | 
    
         
             
                system packageCommand
         
     | 
| 
       25 
32 
     | 
    
         | 
    
        data/lib/package.rb
    CHANGED
    
    | 
         @@ -8,27 +8,28 @@ puts "当前执行路径为:" + CURRENT_PATH 
     | 
|
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         
             
            #传参  0:podspec文件名(exp:xxx.podspec)  1:tag 版本  2:是否打包静态库(0:不打,1:打静态库)  3:repo source(exp:https://github.com/CocoaPods/Specs.git)  4:release note,  5: lint repo sources
         
     | 
| 
       10 
10 
     | 
    
         
             
            PODSPEC_FILE = ARGV[0]
         
     | 
| 
       11 
     | 
    
         
            -
            puts "podspec  
     | 
| 
      
 11 
     | 
    
         
            +
            puts "podspec 文件名为:#{PODSPEC_FILE}"
         
     | 
| 
       12 
12 
     | 
    
         
             
            #pod 组件名(去掉 .podspec 后缀)
         
     | 
| 
       13 
13 
     | 
    
         
             
            POD_NAME = PODSPEC_FILE.split(".")[0]
         
     | 
| 
       14 
     | 
    
         
            -
            puts "pod  
     | 
| 
      
 14 
     | 
    
         
            +
            puts "pod 库为:#{POD_NAME}"
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
            TAG_VERSION = ARGV[1]
         
     | 
| 
       17 
     | 
    
         
            -
            puts "tag  
     | 
| 
      
 17 
     | 
    
         
            +
            puts "tag 版本号:#{TAG_VERSION}"
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            IS_NEED_PACKAGE_LIB = ARGV[2]
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
            REPO_SOURCE = ARGV[3]
         
     | 
| 
       22 
     | 
    
         
            -
            puts "repo source: " 
     | 
| 
      
 22 
     | 
    
         
            +
            puts "repo source: #{REPO_SOURCE}"
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            RELEASE_NOTES = ARGV[4]
         
     | 
| 
       25 
     | 
    
         
            -
            puts "release notes: " 
     | 
| 
      
 25 
     | 
    
         
            +
            puts "release notes: #{RELEASE_NOTES}"
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
            if ARGV.size >= 6
         
     | 
| 
       28 
28 
     | 
    
         
             
                LINT_REPO_SOURCES = ARGV[5]
         
     | 
| 
       29 
29 
     | 
    
         
             
            else
         
     | 
| 
       30 
30 
     | 
    
         
             
                LINT_REPO_SOURCES = "git@gitlab.leoao-inc.com:Lefit_iOS_Organization/PrivatePods.git,git@gitlab.leoao-inc.com:Lefit_iOS_ThirdSDK/ThirdSDKSpec.git,git@gitlab.leoao-inc.com:Lefit_LFE_Architecture_Organization/Lefit_Platform_iOS/PlatformSDKSpec.git"
         
     | 
| 
       31 
31 
     | 
    
         
             
            end
         
     | 
| 
      
 32 
     | 
    
         
            +
            puts "lint repo sources: #{LINT_REPO_SOURCES}"
         
     | 
| 
       32 
33 
     | 
    
         | 
| 
       33 
34 
     | 
    
         | 
| 
       34 
35 
     | 
    
         
             
            def git_make_tag
         
     |