cocoapods-aomi-bin 0.0.2 → 0.0.3
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/cocoapods-lhj-bin/command/bin.rb +1 -1
- data/lib/cocoapods-lhj-bin/command/bin/archive.rb +1 -1
- data/lib/cocoapods-lhj-bin/command/bin/update.rb +1 -1
- data/lib/cocoapods-lhj-bin/gem_version.rb +1 -1
- data/lib/cocoapods-lhj-bin/native/podfile.rb +2 -2
- data/lib/cocoapods-lhj-bin/native/podfile_env.rb +1 -1
- data/lib/cocoapods-lhj-bin/source_provider_hook.rb +3 -3
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ac2be4c4fa9559ae5533deb58daf2abd04e3c84b2ab818d45056cb332aafbee
|
4
|
+
data.tar.gz: 56837043a82db02c5e1325323fa33e8b524399a9bff6437039c961ed61e9141c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ae2e87cb3945b383884b3f7d711b4a45ca22a3563b23349909598034d1f294535d6eea819b0bcb60b057f3d5ec4afae3179b3415ac4d46cb6ef910e6e23724
|
7
|
+
data.tar.gz: bd78e105cc549211c9b09134834b85129cc985448b5d4cd49533b870fda6bfd4be93b02fa56738e1cd3e7cf381aafad5a02268a9ced44bf300b95ca168f259e1
|
@@ -43,7 +43,7 @@ module Pod
|
|
43
43
|
def initialize(argv)
|
44
44
|
@env = argv.option('env') || 'dev'
|
45
45
|
CBin.config.set_configuration_env(@env)
|
46
|
-
UI.warn "====== cocoapods-
|
46
|
+
UI.warn "====== cocoapods-aomi-bin #{CBin::VERSION} 版本 ======== \n "
|
47
47
|
UI.warn "====== #{@env} 环境 ======== \n "
|
48
48
|
|
49
49
|
@code_dependencies = argv.flag?('code-dependencies')
|
@@ -121,7 +121,7 @@ module Pod
|
|
121
121
|
# 把本地和原始到dependencies 合并,设置dependencies
|
122
122
|
local_dependencies.each do |d|
|
123
123
|
UI.message "Development Pod #{d.to_yaml}"
|
124
|
-
if podfile.plugins.keys.include?('cocoapods-
|
124
|
+
if podfile.plugins.keys.include?('cocoapods-aomi-bin')
|
125
125
|
podfile.set_use_source_pods(d.keys.first) if (d.is_a?(Hash) && d.keys.first)
|
126
126
|
end
|
127
127
|
end
|
@@ -72,8 +72,8 @@ module Pod
|
|
72
72
|
private
|
73
73
|
|
74
74
|
def valid_bin_plugin
|
75
|
-
unless plugins.keys.include?('cocoapods-
|
76
|
-
raise Pod::Informative, 'You should add `plugin \'cocoapods-
|
75
|
+
unless plugins.keys.include?('cocoapods-aomi-bin')
|
76
|
+
raise Pod::Informative, 'You should add `plugin \'cocoapods-aomi-bin\'` before using its DSL'
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
@@ -11,7 +11,7 @@ module Pod
|
|
11
11
|
|
12
12
|
module ENVExecutor
|
13
13
|
def execute_with_bin_plugin(&block)
|
14
|
-
execute_with_key(USE_PLUGINS, -> { 'cocoapods-
|
14
|
+
execute_with_key(USE_PLUGINS, -> { 'cocoapods-aomi-bin' }, &block)
|
15
15
|
end
|
16
16
|
|
17
17
|
def execute_with_allow_prerelease(allow_prerelease, &block)
|
@@ -2,7 +2,7 @@ require 'cocoapods-lhj-bin/native/sources_manager'
|
|
2
2
|
require 'cocoapods-lhj-bin/command/bin/repo/update'
|
3
3
|
require 'cocoapods/user_interface'
|
4
4
|
|
5
|
-
Pod::HooksManager.register('cocoapods-
|
5
|
+
Pod::HooksManager.register('cocoapods-aomi-bin', :pre_install) do |_context, _|
|
6
6
|
require 'cocoapods-lhj-bin/native'
|
7
7
|
|
8
8
|
#pod bin update || install 不走这里
|
@@ -13,7 +13,7 @@ Pod::HooksManager.register('cocoapods-lhj-bin', :pre_install) do |_context, _|
|
|
13
13
|
Pod::Command::Bin::Repo::Update.new(CLAide::ARGV.new([])).run
|
14
14
|
|
15
15
|
# 有插件/本地库 且是dev环境下,默认进入源码白名单 过滤 archive命令
|
16
|
-
if _context.podfile.plugins.keys.include?('cocoapods-
|
16
|
+
if _context.podfile.plugins.keys.include?('cocoapods-aomi-bin') && _context.podfile.configuration_env == 'dev'
|
17
17
|
dependencies = _context.podfile.dependencies
|
18
18
|
dependencies.each do |d|
|
19
19
|
next unless d.respond_to?(:external_source) &&
|
@@ -44,7 +44,7 @@ Pod::HooksManager.register('cocoapods-lhj-bin', :pre_install) do |_context, _|
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
Pod::HooksManager.register('cocoapods-
|
47
|
+
Pod::HooksManager.register('cocoapods-aomi-bin', :source_provider) do |context, _|
|
48
48
|
#pod bin update || install 不走这里
|
49
49
|
if $ARGV[1] == 'update' || $ARGV[1] != 'install'
|
50
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-aomi-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lihaijian
|
@@ -42,16 +42,30 @@ dependencies:
|
|
42
42
|
name: parallel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.20.1
|
48
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.20.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: aliyun-sdk
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.8.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.8.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|