cocoapods-force-static-framework 0.0.5 → 0.0.6

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
- SHA256:
3
- metadata.gz: f1f422c5fef3b63af4885a2e85d51d5569ae14a1bab869c392210c561601b3e4
4
- data.tar.gz: c3f67ed62bd9a318954ff37aa506f04e3df41136203b7aa64135558d042909f1
2
+ SHA1:
3
+ metadata.gz: '0830ebbce0026639ec237dba570f49370befae7e'
4
+ data.tar.gz: 5fa3cf07617ad993fc8d433e8a8d6cd92b0477a8
5
5
  SHA512:
6
- metadata.gz: 58ada5174baf94baa83629fee0e2be3b3b739bc23db1dd16d9c5ef9e6df2b37e3b93df5333965e29cda67457130f7db4977fe1b5c27d1870578183a166103bc5
7
- data.tar.gz: d831bfe684101586bb85e05dae00b4d75f142831bdc89212260204cc03d9d0af08b75d68bf30971a756f3aa60b89d5b61983cc7f929b28bfcd4b3afae762cfec
6
+ metadata.gz: 5f6bc6f0c52fa2a181460410d4f05b9840784003a22dcce0f9654312f5f1ae8bcddc03503fbe907e518f7c6b5ac7c0c330d70313051d2012486a41b7da464ebd
7
+ data.tar.gz: 4c7dff579496811bc2005a868fd1936dc6ca28f0c8428b2508ab8150fb1b1b937db8a7f6f6f25102aa1dbb5c2261493482d1862b1b90dfe83f5c7b2773dd72e7
@@ -12,12 +12,10 @@ module Pod
12
12
 
13
13
  class Specification
14
14
  def self.from_string(spec_contents, path, subspec_name = nil)
15
- name = ''
16
15
  path = Pathname.new(path).expand_path
17
16
  spec = nil
18
17
  case path.extname
19
18
  when '.podspec'
20
- name = File.basename(path, '.podspec')
21
19
  Dir.chdir(path.parent.directory? ? path.parent : Dir.pwd) do
22
20
  spec = ::Pod._eval_podspec(spec_contents, path)
23
21
  unless spec.is_a?(Specification)
@@ -25,11 +23,17 @@ module Pod
25
23
  end
26
24
  end
27
25
  when '.json'
28
- name = File.basename(path, '.podspec.json')
29
26
  spec = Specification.from_json(spec_contents)
30
27
  else
31
28
  raise Informative, "Unsupported specification format `#{path.extname}` for spec at `#{path}`."
32
29
  end
30
+ name = ''
31
+ case path.extname
32
+ when '.podspec'
33
+ name = File.basename(path, '.podspec')
34
+ when '.json'
35
+ name = File.basename(path, '.podspec.json')
36
+ end
33
37
  if Pod.static_framework_names.include?(name)
34
38
  spec.static_framework = true
35
39
  end
@@ -41,5 +45,11 @@ module Pod
41
45
  end
42
46
 
43
47
  Pod::HooksManager.register('cocoapods-force-static-framework', :pre_install) do |context, options|
44
- Pod.store_static_framework_names(options[:static_frameworks])
48
+ reval = options[:static_frameworks]
49
+ if reval and reval.instance_of? Array
50
+ Pod.store_static_framework_names(reval)
51
+ else
52
+ raise Pod::Informative, "请正确设置:static_frameworks, 示例: plugin 'cocoapods-force-static-framework', :static_frameworks => ['RxSwift']"
53
+ end
54
+
45
55
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsForceStaticFramework
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-force-static-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - maqiang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-14 00:00:00.000000000 Z
11
+ date: 2019-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.0.3
72
+ rubyforge_project:
73
+ rubygems_version: 2.5.2.3
73
74
  signing_key:
74
75
  specification_version: 4
75
76
  summary: A longer description of cocoapods-force-static-framework.