cocoapods-packager-ext 0.0.11 → 0.0.12

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: 975c1587853affa9927f595278b2f4a14dbe1c043994dbffff6e79394d4f9519
4
- data.tar.gz: d11655a9c1fd7dadaf3dd5bdb154b1b014aa7e20c2bde9cbe82bc2bf1d9dd2c2
3
+ metadata.gz: 58db525ae0b5173a6d29fc3bf52b373acc3c5464c8ec73f825edcef0842e490a
4
+ data.tar.gz: e3d0f10f47f07e579582c6188146f8eb3d92def26a61c81ffa1888e4f845c9cb
5
5
  SHA512:
6
- metadata.gz: f8694a1df3a49c9b61d084694137626f95315cd1a42fc3d0a5b1587628c042d51d39f54741be2e9010ed145a2e82d475aea02153bc84ded6f51eb77735db1c3d
7
- data.tar.gz: 525356691709d4ca1be7ec7d8d464c417d0d15dea6f4dcb9d27e17fc17d89c074eb26ee433e33f8a09ace24a53671f831d1e304b08705dfaed2bbdb28f8a7f7c
6
+ metadata.gz: 00033ee3fbecaa3740e902a60482e5669368c92ae7e4d08845a4f20d39ff615428a0b4846bb0f61d1bdcfc99db0c6dcff5e816a6a7e67eaf44d0295fc266e9ac
7
+ data.tar.gz: 1d3b69017ead90b8cb023f62c28227a9ddc25480ef1db48809f1e6a872fd62f6a3e4c065bfec54270b9b85888a5a49424e088d9a777f0a93f16c17a373692ed5
@@ -1,3 +1,5 @@
1
+ require 'cocoapods-packager-ext/ext/downloader/path'
2
+ require 'cocoapods-packager-ext/ext/downloader_ext'
1
3
  module Pod
2
4
  class Command
3
5
  # This is an example of a cocoapods plugin adding a top-level subcommand
@@ -15,12 +15,16 @@ module Pod
15
15
  if isBlack
16
16
  return
17
17
  end
18
+ begin
18
19
  if File.directory? path
19
20
  FileUtils.copy_entry(path,"#{@target_dir_ext_ext}/#{File.basename(path)}", false,false, true)
20
21
  else
21
22
  FileUtils.cp(path,"#{@target_dir_ext_ext}/#{File.basename(path)}")
22
- end
23
- return
23
+ end
24
+ rescue Exception => e
25
+ puts e
26
+ end
27
+ return
24
28
  end
25
29
  end
26
30
  if File.directory? path
@@ -0,0 +1,19 @@
1
+ require 'cocoapods-downloader/remote_file'
2
+
3
+ module Pod
4
+ module Downloader
5
+ class LocalPath < RemoteFile
6
+ DEFAULT_PORT = 22
7
+
8
+ private
9
+
10
+ executable :ln
11
+
12
+ def download_file(full_filename)
13
+
14
+ # ln! "-s",url, full_filename
15
+ end
16
+
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,38 @@
1
+ module Pod
2
+ module Downloader
3
+ autoload :LocalPath,'cocoapods-packager-ext/ext/downloader/path'
4
+ class << self
5
+ alias downloader_class_by_key_t downloader_class_by_key
6
+ def downloader_class_by_key
7
+ keys = downloader_class_by_key_t
8
+ keys[:path] = LocalPath
9
+ return keys
10
+ end
11
+ end
12
+ class RemoteFile
13
+ executable :ln
14
+
15
+ alias filename_with_type_t filename_with_type
16
+ def filename_with_type(type = :zip)
17
+ if not type
18
+ "file"
19
+ else
20
+ filename_with_type_t type
21
+ end
22
+ end
23
+ alias extract_with_type_t extract_with_type
24
+ def extract_with_type(full_filename, type = :zip)
25
+ if not type
26
+ unpack_from = url
27
+ unpack_to = @target_path
28
+ FileUtils.rm_rf(unpack_to) if File.exist?(unpack_to)
29
+ FileUtils.rm_rf(unpack_to) if Dir.exist?(unpack_to)
30
+ ln! '-s',unpack_from,unpack_to
31
+ else
32
+ extract_with_type_t full_filename,type
33
+ end
34
+
35
+ end
36
+ end
37
+ end
38
+ end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyle.zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,6 +70,8 @@ files:
70
70
  - lib/cocoapods-packager-ext/command/install_ext.rb
71
71
  - lib/cocoapods-packager-ext/command/package_ext.rb
72
72
  - lib/cocoapods-packager-ext/ext/builder.rb
73
+ - lib/cocoapods-packager-ext/ext/downloader/path.rb
74
+ - lib/cocoapods-packager-ext/ext/downloader_ext.rb
73
75
  - lib/cocoapods-packager-ext/gem_version.rb
74
76
  - lib/cocoapods_plugin.rb
75
77
  - spec/command/ext_spec.rb