cocoapods-packager-ext 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 868d7e73fb6e9cb5b38669e2aee7a90b25f1f74d53d2eeae6994d43f459adcc8
|
4
|
+
data.tar.gz: 773548398b33ae96ae2b475049c044c5c0d1e1143deb443ecb6c3d699d598d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffe4251726e99cd7acdccb176ce31744b8c2975ffb13f64aedbd103bbc9abdcf51330c7f650dee85981cd560580984f747d759586829de0e0eff17e68e298a99
|
7
|
+
data.tar.gz: c7cc9b79e504ad1a93921fc0cebe422a5aa400b15b1a0196d744153e7ab83f03b6530a144fb33bbc391d0ba8bb02301b1a54a38d0bf00657f52514845bf7c1cf
|
@@ -1 +1,2 @@
|
|
1
|
-
require 'cocoapods-packager-ext/command/
|
1
|
+
require 'cocoapods-packager-ext/command/install_ext'
|
2
|
+
require 'cocoapods-packager-ext/command/package_ext'
|
@@ -0,0 +1,70 @@
|
|
1
|
+
module Pod
|
2
|
+
class Installer
|
3
|
+
attr_accessor :dry_deps
|
4
|
+
alias install_t! install!
|
5
|
+
def install!()
|
6
|
+
if @dry_deps
|
7
|
+
prepare
|
8
|
+
resolve_dependencies
|
9
|
+
else
|
10
|
+
install_t!
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
class Command
|
17
|
+
|
18
|
+
# This is an example of a cocoapods plugin adding a top-level subcommand
|
19
|
+
# to the 'pod' command.
|
20
|
+
#
|
21
|
+
# You can also create subcommands of existing or new commands. Say you
|
22
|
+
# wanted to add a subcommand to `list` to show newly deprecated pods,
|
23
|
+
# (e.g. `pod list deprecated`), there are a few things that would need
|
24
|
+
# to change.
|
25
|
+
#
|
26
|
+
# - move this file to `lib/pod/command/list/deprecated.rb` and update
|
27
|
+
# the class to exist in the the Pod::Command::List namespace
|
28
|
+
# - change this class to extend from `List` instead of `Command`. This
|
29
|
+
# tells the plugin system that it is a subcommand of `list`.
|
30
|
+
# - edit `lib/cocoapods_plugins.rb` to require this file
|
31
|
+
#
|
32
|
+
# @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
|
33
|
+
# in the `plugins.json` file, once your plugin is released.
|
34
|
+
#
|
35
|
+
class Install
|
36
|
+
class << self
|
37
|
+
alias options_t options
|
38
|
+
def options
|
39
|
+
o = options_t
|
40
|
+
o.push(['--dry-deps','only test depend'])
|
41
|
+
o.concat(super)
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
alias initialize_t initialize
|
47
|
+
def initialize(argv)
|
48
|
+
@dry_deps = argv.flag?('dry-deps',false)
|
49
|
+
initialize_t argv
|
50
|
+
end
|
51
|
+
|
52
|
+
alias run_t run
|
53
|
+
def run
|
54
|
+
if @dry_deps
|
55
|
+
verify_podfile_exists!
|
56
|
+
installer = installer_for_config
|
57
|
+
installer.repo_update = repo_update?(:default => false)
|
58
|
+
installer.update = false
|
59
|
+
installer.deployment = @deployment
|
60
|
+
installer.clean_install = @clean_install
|
61
|
+
installer.dry_deps = @dry_deps
|
62
|
+
installer.install!
|
63
|
+
else
|
64
|
+
run_t
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
70
|
+
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyle.zhou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -67,7 +67,8 @@ files:
|
|
67
67
|
- cocoapods-packager-ext.gemspec
|
68
68
|
- lib/cocoapods-packager-ext.rb
|
69
69
|
- lib/cocoapods-packager-ext/command.rb
|
70
|
-
- lib/cocoapods-packager-ext/command/
|
70
|
+
- lib/cocoapods-packager-ext/command/install_ext.rb
|
71
|
+
- lib/cocoapods-packager-ext/command/package_ext.rb
|
71
72
|
- lib/cocoapods-packager-ext/ext/builder.rb
|
72
73
|
- lib/cocoapods-packager-ext/gem_version.rb
|
73
74
|
- lib/cocoapods_plugin.rb
|