cocoapods-packager-ext 0.0.8 → 0.0.9

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: bde6209b36fbd764e913f1d0ff422b53911af653372adf1c8060f90aaa09fb3a
4
- data.tar.gz: 04f905fde5bfb3fc6e56226f79e5857b8d850ca73ea83c4e1d4e7824525bf8ad
3
+ metadata.gz: 868d7e73fb6e9cb5b38669e2aee7a90b25f1f74d53d2eeae6994d43f459adcc8
4
+ data.tar.gz: 773548398b33ae96ae2b475049c044c5c0d1e1143deb443ecb6c3d699d598d35
5
5
  SHA512:
6
- metadata.gz: 2edc0c4b2ac1a7f1622b12ff22effb2fa5d052a2afd7e07fef9823996c54b618e545e32967bcc36b095b23fe692407bc9d82159cf8b8f6d42a6368cd30ba161f
7
- data.tar.gz: a60ba2ca993f9a755af67c8a709e0b3ae821ab3ce65627f495552215bc2c3677ce07d1d8c66bc42086ebe71cbfa1c62395c018ef631552716a7f36394a068979
6
+ metadata.gz: ffe4251726e99cd7acdccb176ce31744b8c2975ffb13f64aedbd103bbc9abdcf51330c7f650dee85981cd560580984f747d759586829de0e0eff17e68e298a99
7
+ data.tar.gz: c7cc9b79e504ad1a93921fc0cebe422a5aa400b15b1a0196d744153e7ab83f03b6530a144fb33bbc391d0ba8bb02301b1a54a38d0bf00657f52514845bf7c1cf
@@ -1 +1,2 @@
1
- require 'cocoapods-packager-ext/command/ext'
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
@@ -25,7 +25,7 @@ module Pod
25
25
  o.push(['--all-deps','add all-depends'])
26
26
  o.push(['--archs','select archs'])
27
27
  o.push(['--black-deps','select exclude deps'])
28
-
28
+ o.concat(super)
29
29
  end
30
30
 
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  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.8
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: 2020-11-20 00:00:00.000000000 Z
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/ext.rb
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