cocoapods-packager-ext 0.0.10 → 0.0.11

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: 9b528b82748243fe242fdd5de031d79a94f501900c45c31fc27a055600d33db5
4
- data.tar.gz: 06e6ce8b5a4563a51a470cce8164a5c03845996b39b5fc624875afdb1942770d
3
+ metadata.gz: 975c1587853affa9927f595278b2f4a14dbe1c043994dbffff6e79394d4f9519
4
+ data.tar.gz: d11655a9c1fd7dadaf3dd5bdb154b1b014aa7e20c2bde9cbe82bc2bf1d9dd2c2
5
5
  SHA512:
6
- metadata.gz: f9dc5b6c3327b3ad93d2424f82f7dd25e26de28f34dfc6a374fa0608153f54c7a7c30a2c7f210aa784ae9f2472c6c5a5ad9122cbe3f7b29a655681bd7933c57d
7
- data.tar.gz: 3344d225c8bb06e167c79a312a65f9e9a95f8a35abc8e735921e6dfb22325f312c2243142de30e3235ea0fd956a102170e86319c348b36934b583383e748b511
6
+ metadata.gz: f8694a1df3a49c9b61d084694137626f95315cd1a42fc3d0a5b1587628c042d51d39f54741be2e9010ed145a2e82d475aea02153bc84ded6f51eb77735db1c3d
7
+ data.tar.gz: 525356691709d4ca1be7ec7d8d464c417d0d15dea6f4dcb9d27e17fc17d89c074eb26ee433e33f8a09ace24a53671f831d1e304b08705dfaed2bbdb28f8a7f7c
@@ -13,59 +13,79 @@ module Pod
13
13
 
14
14
  end
15
15
 
16
- class Command
16
+ class Command
17
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)
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
+ def self.options
37
+ [
38
+ ['--repo-update', 'Force running `pod repo update` before install'],
39
+ ['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'],
40
+ ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \
41
+ 'applies to projects that have enabled incremental installation'],
42
+ ['--dry-deps','only test depend'],
43
+ ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
44
+ end
45
+ # class << self
46
+ # alias options_t options
47
+ # def options
48
+ # o = options_t
49
+ # o.push(['--dry-deps','only test depend'])
50
+ # o.concat(super)
51
+ # end
52
+ #
53
+ # end
54
+ def initialize(argv)
55
+ super
56
+ @deployment = argv.flag?('deployment', false)
57
+ @clean_install = argv.flag?('clean-install', false)
58
+ @dry_deps = argv.flag?('dry-deps',false)
42
59
  end
43
60
 
44
- end
45
-
46
- def initialize(argv)
47
- super
48
- @deployment = argv.flag?('deployment', false)
49
- @clean_install = argv.flag?('clean-install', false)
50
- @dry_deps = argv.flag?('dry-deps',false)
51
- end
52
-
53
- alias run_t run
54
- def run
55
- if @dry_deps
61
+ # alias run_t run
62
+ # def run
63
+ # if @dry_deps
64
+ # verify_podfile_exists!
65
+ # installer = installer_for_config
66
+ # installer.repo_update = repo_update?(:default => false)
67
+ # installer.update = false
68
+ # installer.deployment = @deployment
69
+ # installer.clean_install = @clean_install
70
+ # installer.dry_deps = @dry_deps
71
+ # installer.install!
72
+ # else
73
+ # run_t
74
+ # end
75
+ # end
76
+ def run
56
77
  verify_podfile_exists!
57
78
  installer = installer_for_config
58
79
  installer.repo_update = repo_update?(:default => false)
59
80
  installer.update = false
60
81
  installer.deployment = @deployment
61
82
  installer.clean_install = @clean_install
62
- installer.dry_deps = @dry_deps
83
+ if @dry_deps
84
+ installer.dry_deps = @dry_deps
85
+ end
63
86
  installer.install!
64
- else
65
- run_t
66
87
  end
67
- end
68
88
 
89
+ end
69
90
  end
70
- end
71
91
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyle.zhou