subpod 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 3f84f22fa84b98acd0b14d75aa779c1965ffc775
4
- data.tar.gz: 412cef82b3f109ff14b4f7aa7ee07d1a3f3f2876
3
+ metadata.gz: 407775dba82d87bffa21658e7542ad197651ddbe
4
+ data.tar.gz: 2b9a845075228713bbc10b7fe2f78f76121ac570
5
5
  SHA512:
6
- metadata.gz: fdaba5d504b0b0f8edcec088843900458614ba75db481860a5c17a9894cc7be295d01320747810d638d249a33da89c79bb0048c826f767ea55b2442158331c10
7
- data.tar.gz: d124774279ae96e0b6654a3c20be6153290d5190c50d8e50c945960574f81eb33834e54ef5929b6d07abf00603a469c151e49bcdcfd5b4bb6936631bcb7d3f48
6
+ metadata.gz: c86ec8f853a1ebf4d45e561174bb5c3fcf20fc15df7c7d7dc386937e9b635b14579676ba2c5f136fbd6172fff71a40c40170d8e26fc97f2a37f902c133b55dd1
7
+ data.tar.gz: eca4fb24ed671d3eea0fe9467539a3dfc2a90b6f3c5d1c50de130f180eee271fae2509d905769e0da337ac3ca8321a07117ee1f8210a03986b5ceb42a3370cba
data/bin/subpod CHANGED
@@ -15,3 +15,9 @@ CLActive.subcmd :install do |install|
15
15
  SubPod.run(:install)
16
16
  end
17
17
  end
18
+
19
+ CLActive.subcmd :update do |update|
20
+ update.action do |opt|
21
+ SubPod.run(:install, true)
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module SubPod
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/lib/subpod.rb CHANGED
@@ -7,19 +7,19 @@ module SubPod
7
7
  module Delegate
8
8
  module_function
9
9
 
10
- def install
10
+ def install(update_mode = false)
11
11
  cfg = Pod::Config.instance
12
12
  cfg.podfile or fail Pod::Informative, "No `Podfile` found in the current working directory."
13
13
  installer = Installer.new(cfg.sandbox, cfg.podfile, cfg.lockfile)
14
- installer.update_mode = false
14
+ installer.update_mode = update_mode
15
15
  installer.install!
16
16
  end
17
17
  end
18
18
 
19
19
  module_function
20
20
 
21
- def run cmd
22
- Delegate.send cmd
21
+ def run(cmd, *args, &block)
22
+ Delegate.send(cmd, *args, &block)
23
23
  rescue StandardError => e
24
24
  puts e.message
25
25
  rescue Exception => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subpod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tang Tianyong