cocoapods-zaPaaSTest 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 69308249bc6f1d9dfc8a7fe36db28f1e097ff61a2436c69eb009f7ba12833e88
4
+ data.tar.gz: e59773b3d2d117628324090700bf5f8565b3ac2b6d08d4105857715b3ceb4e91
5
+ SHA512:
6
+ metadata.gz: 5d47a5a844830e12382a0f65165d63b0cc15dd7d38bf3d1560bdaa7829e7aa2d9cdb8fbdad1bdf6660a3ae4ae49c195e22318e6b8426a974c44da4eda3b01eb0
7
+ data.tar.gz: 8b1336b0c0fdd70eb433ddca80f4495adbc0a8507df7818c5bb4cc988abebc0f9bb595d4348b804a8c479753f475db63497981af0582c2cc166a1cfdc59ae19a
@@ -0,0 +1,26 @@
1
+ module Pod
2
+ class Source
3
+ class Manager
4
+
5
+ # 私有源 source
6
+ def private_source
7
+ url = 'https://git.zhonganinfo.com/chenliqun/zhonganinfo-za_spec.git'
8
+ source = source_with_url(url)
9
+ return source if source
10
+ Command::Repo::Add.parse(['zhonganinfo-za_spec', url, 'master']).run
11
+ source_with_url(url)
12
+ end
13
+
14
+ # 公有源 source
15
+ def public_source
16
+ url = 'https://github.com/CocoaPods/Specs.git'
17
+ source = source_with_url(url)
18
+ return source if source
19
+ Command::Repo::Add.parse(['master', url, 'master']).run
20
+ source_with_url(url)
21
+ end
22
+
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,26 @@
1
+ # 提供zaPaaS_pod方法替换工程中的pod方法
2
+ module Pod
3
+ class Podfile
4
+ module DSL
5
+
6
+ public
7
+
8
+ def zaPaaS_pod(name)
9
+
10
+ # 处理传进来的库
11
+ if name == "ZAIMapManager"
12
+ pod name, :git => "https://git.zhonganinfo.com/chenminghui/#{name.downcase}"
13
+ else
14
+ pod name, :git => "https://git.zhonganinfo.com/chenliqun/#{name.downcase}"
15
+ end
16
+
17
+ # 加一下些基础库
18
+ pod 'ZAICategory', :git => 'https://git.zhonganinfo.com/chenliqun/zaicategory'
19
+ pod 'ZAISecurity', :git => 'https://git.zhonganinfo.com/chenliqun/zaisecurity', :tag => '0.1.5'
20
+ pod 'ZAIDeviceCommon', :git => 'https://git.zhonganinfo.com/chenliqun/zaidevicecommon'
21
+ pod 'ZAIAutoCoding', :git => 'https://git.zhonganinfo.com/chenliqun/zaiautocoding'
22
+ pod 'ZAIMapManager', :git => 'https://git.zhonganinfo.com/chenminghui/zaimapmanager'
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,44 @@
1
+ module Pod
2
+ class Command
3
+ # This is an example of a cocoapods plugin adding a top-level subcommand
4
+ # to the 'pod' command.
5
+ #
6
+ # You can also create subcommands of existing or new commands. Say you
7
+ # wanted to add a subcommand to `list` to show newly deprecated pods,
8
+ # (e.g. `pod list deprecated`), there are a few things that would need
9
+ # to change.
10
+ #
11
+ # - move this file to `lib/pod/command/list/deprecated.rb` and update
12
+ # the class to exist in the the Pod::Command::List namespace
13
+ # - change this class to extend from `List` instead of `Command`. This
14
+ # tells the plugin system that it is a subcommand of `list`.
15
+ # - edit `lib/cocoapods_plugins.rb` to require this file
16
+ #
17
+ # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
18
+ # in the `plugins.json` file, once your plugin is released.
19
+ #
20
+ class Zapaastest < Command
21
+ self.summary = 'Short description of cocoapods-zaPaaSTest.'
22
+
23
+ self.description = <<-DESC
24
+ Longer description of cocoapods-zaPaaSTest.
25
+ DESC
26
+
27
+ self.arguments = 'NAME'
28
+
29
+ def initialize(argv)
30
+ @name = argv.shift_argument
31
+ super
32
+ end
33
+
34
+ def validate!
35
+ super
36
+ help! 'A Pod name is required.' unless @name
37
+ end
38
+
39
+ def run
40
+ UI.puts "Add your implementation for the cocoapods-zaPaaSTest plugin in #{__FILE__}"
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,3 @@
1
+ require 'cocoapods-zaPaaSTest/command/zaPaaSTest'
2
+ require 'cocoapods-zaPaaSTest/command/addZAPaasMethod'
3
+ require 'cocoapods-zaPaaSTest/command/addSource'
@@ -0,0 +1,3 @@
1
+ module CocoapodsZapaastest
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-zaPaaSTest/gem_version'
@@ -0,0 +1,19 @@
1
+ require 'cocoapods-zaPaaSTest/command'
2
+
3
+ # 引用 cocoapods 包
4
+ require 'cocoapods'
5
+
6
+ module CocoapodsZapaastest
7
+ # 注册 pod install 钩子
8
+ Pod::HooksManager.register('cocoapods-zaPaaSTest', :post_install) do |context|
9
+ # 测试打印
10
+ # p "hello world!"
11
+ end
12
+
13
+ Pod::HooksManager.register('cocoapods-zaPaaSTest', :source_provider) do |context|
14
+ sources_manager = Pod::Config.instance.sources_manager
15
+ context.add_source(sources_manager.private_source)
16
+ context.add_source(sources_manager.public_source)
17
+ end
18
+
19
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cocoapods-zaPaaSTest
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - chenminghui
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-08-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: A short description of cocoapods-zaPaaSTest.
42
+ email:
43
+ - chenminghui@zhongan.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/cocoapods-zaPaaSTest.rb
49
+ - lib/cocoapods-zaPaaSTest/command.rb
50
+ - lib/cocoapods-zaPaaSTest/command/addSource.rb
51
+ - lib/cocoapods-zaPaaSTest/command/addZAPaasMethod.rb
52
+ - lib/cocoapods-zaPaaSTest/command/zaPaaSTest.rb
53
+ - lib/cocoapods-zaPaaSTest/gem_version.rb
54
+ - lib/cocoapods_plugin.rb
55
+ homepage: https://github.com/EXAMPLE/cocoapods-zaPaaSTest
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubygems_version: 3.0.3.1
75
+ signing_key:
76
+ specification_version: 4
77
+ summary: A longer description of cocoapods-zaPaaSTest.
78
+ test_files: []