cocoapods-bb-PodAssistant 0.3.12.0 → 0.3.12.1
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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: f24cb36efee097e747c10f4f2d4f7746bc48711818b02c13db8748dde4b3eec6
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 7a2c0fbc83879774f5bef6b4b4162ded38076953e378d76394c2f441dbc0a170
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5b72cb59afd1d49622913c3b65040e93f93331f12a1f7c20c9b35cd8a88d182bdaa81c2507d752d8a76bd804c1d20f6bf64094a63b13470e934352d99f337cac
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7151e24ab59a31c0d631937257a9901d9c2a10736b093190eca261bbef24714ff7d23f197270133b0f650b7b292ac8873f608067e3aac6be0572f77ef6ae2a06
         
     | 
| 
         @@ -125,17 +125,22 @@ def isCityApp 
     | 
|
| 
       125 
125 
     | 
    
         
             
                return bundleId === "com.sinyee.babybus.city"
         
     | 
| 
       126 
126 
     | 
    
         
             
            end
         
     | 
| 
       127 
127 
     | 
    
         | 
| 
       128 
     | 
    
         
            -
            # 是否创意世界产品
         
     | 
| 
      
 128 
     | 
    
         
            +
            # 是否创意世界产品(海外)
         
     | 
| 
       129 
129 
     | 
    
         
             
            def isGameWorldApp
         
     | 
| 
       130 
130 
     | 
    
         
             
                bundleId = getProjectBundleIdentifier()
         
     | 
| 
       131 
131 
     | 
    
         
             
                return bundleId === "com.sinyee.babybus.gameworld"
         
     | 
| 
       132 
132 
     | 
    
         
             
            end
         
     | 
| 
      
 133 
     | 
    
         
            +
            # 是否创意世界产品(国内)
         
     | 
| 
      
 134 
     | 
    
         
            +
            def isBingoworldApp
         
     | 
| 
      
 135 
     | 
    
         
            +
                bundleId = getProjectBundleIdentifier()
         
     | 
| 
      
 136 
     | 
    
         
            +
                return bundleId === "com.joltrix.bingoworld"
         
     | 
| 
      
 137 
     | 
    
         
            +
            end
         
     | 
| 
       133 
138 
     | 
    
         | 
| 
       134 
139 
     | 
    
         
             
            # 是否矩阵产品
         
     | 
| 
       135 
140 
     | 
    
         
             
            def isMatrixApp
         
     | 
| 
       136 
141 
     | 
    
         
             
                bundleId = getProjectBundleIdentifier()
         
     | 
| 
       137 
142 
     | 
    
         
             
                puts "###bundleId:#{bundleId}###".red
         
     | 
| 
       138 
     | 
    
         
            -
                if (isHanZiApp || isQMWApp || isPinyinAppp || isCourseApp || isMathApp || isABCApp || isCityApp) then
         
     | 
| 
      
 143 
     | 
    
         
            +
                if (isHanZiApp || isQMWApp || isPinyinAppp || isCourseApp || isMathApp || isABCApp || isCityApp || isGameWorldApp || isBingoworldApp) then
         
     | 
| 
       139 
144 
     | 
    
         
             
                    return false
         
     | 
| 
       140 
145 
     | 
    
         
             
                end
         
     | 
| 
       141 
146 
     | 
    
         
             
                return true
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: cocoapods-bb-PodAssistant
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.3.12. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.3.12.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - humin
         
     | 
| 
       8 
8 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       9 
9 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       10 
     | 
    
         
            -
            date: 2025- 
     | 
| 
      
 10 
     | 
    
         
            +
            date: 2025-04-25 00:00:00.000000000 Z
         
     | 
| 
       11 
11 
     | 
    
         
             
            dependencies:
         
     | 
| 
       12 
12 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       13 
13 
     | 
    
         
             
              name: cocoapods-core
         
     | 
| 
         @@ -169,7 +169,6 @@ files: 
     | 
|
| 
       169 
169 
     | 
    
         
             
            - lib/cocoapods-bb-PodAssistant/command/stable/update.rb
         
     | 
| 
       170 
170 
     | 
    
         
             
            - lib/cocoapods-bb-PodAssistant/config/cache_path.rb
         
     | 
| 
       171 
171 
     | 
    
         
             
            - lib/cocoapods-bb-PodAssistant/config/data_config.rb
         
     | 
| 
       172 
     | 
    
         
            -
            - lib/cocoapods-bb-PodAssistant/config/json_parser.rb
         
     | 
| 
       173 
172 
     | 
    
         
             
            - lib/cocoapods-bb-PodAssistant/config/source_manager.rb
         
     | 
| 
       174 
173 
     | 
    
         
             
            - lib/cocoapods-bb-PodAssistant/config/stable_source.rb
         
     | 
| 
       175 
174 
     | 
    
         
             
            - lib/cocoapods-bb-PodAssistant/config/stable_specs.rb
         
     | 
| 
         @@ -1,53 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'json'
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            module BB
         
     | 
| 
       4 
     | 
    
         
            -
                class JsonParser
         
     | 
| 
       5 
     | 
    
         
            -
                    attr_reader :json_data
         
     | 
| 
       6 
     | 
    
         
            -
                  
         
     | 
| 
       7 
     | 
    
         
            -
                    # 初始化,读取并解析 JSON 文件
         
     | 
| 
       8 
     | 
    
         
            -
                    def initialize(file_path)
         
     | 
| 
       9 
     | 
    
         
            -
                        @file_path = file_path
         
     | 
| 
       10 
     | 
    
         
            -
                        @json_data = read_json
         
     | 
| 
       11 
     | 
    
         
            -
                    end
         
     | 
| 
       12 
     | 
    
         
            -
                  
         
     | 
| 
       13 
     | 
    
         
            -
                    # 读取并解析 JSON 文件
         
     | 
| 
       14 
     | 
    
         
            -
                    def read_json
         
     | 
| 
       15 
     | 
    
         
            -
                        begin
         
     | 
| 
       16 
     | 
    
         
            -
                            file_content = File.read(@file_path)
         
     | 
| 
       17 
     | 
    
         
            -
                            JSON.parse(file_content)
         
     | 
| 
       18 
     | 
    
         
            -
                        rescue Errno::ENOENT
         
     | 
| 
       19 
     | 
    
         
            -
                            puts "错误:找不到文件 #{@file_path}"
         
     | 
| 
       20 
     | 
    
         
            -
                            nil
         
     | 
| 
       21 
     | 
    
         
            -
                        rescue JSON::ParserError
         
     | 
| 
       22 
     | 
    
         
            -
                            puts "错误:JSON 解析失败,请检查文件格式"
         
     | 
| 
       23 
     | 
    
         
            -
                            nil
         
     | 
| 
       24 
     | 
    
         
            -
                        end
         
     | 
| 
       25 
     | 
    
         
            -
                    end
         
     | 
| 
       26 
     | 
    
         
            -
                  
         
     | 
| 
       27 
     | 
    
         
            -
                    # 遍历 JSON 并返回 key-value 结构
         
     | 
| 
       28 
     | 
    
         
            -
                    def traverse_json(data = @json_data, prefix = "", result = {})
         
     | 
| 
       29 
     | 
    
         
            -
                        return result unless data
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
                        case data
         
     | 
| 
       32 
     | 
    
         
            -
                        when Hash
         
     | 
| 
       33 
     | 
    
         
            -
                        data.each do |key, value|
         
     | 
| 
       34 
     | 
    
         
            -
                            traverse_json(value, "#{prefix}#{key}.", result)
         
     | 
| 
       35 
     | 
    
         
            -
                        end
         
     | 
| 
       36 
     | 
    
         
            -
                        when Array
         
     | 
| 
       37 
     | 
    
         
            -
                        data.each_with_index do |value, index|
         
     | 
| 
       38 
     | 
    
         
            -
                            traverse_json(value, "#{prefix}[#{index}].", result)
         
     | 
| 
       39 
     | 
    
         
            -
                        end
         
     | 
| 
       40 
     | 
    
         
            -
                        else
         
     | 
| 
       41 
     | 
    
         
            -
                        result[prefix.chomp('.')] = data
         
     | 
| 
       42 
     | 
    
         
            -
                        end
         
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
                        result
         
     | 
| 
       45 
     | 
    
         
            -
                    end
         
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
                    # 提供给业务方的获取 JSON 数据方法
         
     | 
| 
       48 
     | 
    
         
            -
                    def get_json_data
         
     | 
| 
       49 
     | 
    
         
            -
                        return {} unless @json_data
         
     | 
| 
       50 
     | 
    
         
            -
                        traverse_json
         
     | 
| 
       51 
     | 
    
         
            -
                    end
         
     | 
| 
       52 
     | 
    
         
            -
                end
         
     | 
| 
       53 
     | 
    
         
            -
            end
         
     |